aaa02eff17ffc9e934a644652d31f3b2d9cd11a3
[gnulib.git] / ChangeLog
1 2010-11-13  Bruno Haible  <bruno@clisp.org>
2
3         rename, renameat: Avoid test failures at NFS mounted locations.
4         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5         functions.
6         (test_rename): Use assert_nonexistent.
7         * tests/test-rename.c: Include <dirent.h>.
8         * tests/test-renameat.c: Likewise.
9         Reported by Gary V. Vaughan <gary@gnu.org>.
10
11         rename, renameat: Document Linux bug with NFS
12         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14         * doc/posix-functions/renameat.texi: Likewise.
15         Suggested by Eric Blake.
16
17 2010-11-13  Bruno Haible  <bruno@clisp.org>
18
19         rename test: Add comments.
20         * tests/test-rename.h (test_rename): Add structure and comments.
21
22 2010-11-13  Eric Blake  <eblake@redhat.com>
23
24         maintainer-makefile: cover a few more files
25         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26         scripts generated within C files, for libvirt.
27
28 2010-11-13  Bruno Haible  <bruno@clisp.org>
29
30         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
31         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
32         character, return the number of bytes that belong together, not always
33         1.
34         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
35         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
36         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
37         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
38         number of bytes of an invalid character.
39         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
40         (main): Invoke it.
41         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test results.
42         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
43         malformed byte sequences.
44         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
45         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
46         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47         Reported by Ben Pfaff and Paolo Bonzini.
48
49 2010-11-13  Bruno Haible  <bruno@clisp.org>
50
51         openat: Work around glibc bug with fchownat() and empty file names.
52         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
53         (gl_FUNC_FCHOWNAT): Invoke it.
54         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
55         * doc/posix-functions/fchownat.texi: Document the glibc bug.
56         Reported by Gary V. Vaughan <gary@gnu.org>.
57
58 2010-11-13  Bruno Haible  <bruno@clisp.org>
59
60         openat: Ensure autoconf macro ordering.
61         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62         gl_USE_SYSTEM_EXTENSIONS.
63         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
64
65 2010-11-13  Bruno Haible  <bruno@clisp.org>
66
67         Update comments.
68         * lib/unistr/u8-check.c: Update file name in comments.
69         * lib/unistr/u8-mblen.c: Likewise.
70         * lib/unistr/u8-prev.c: Likewise.
71         * lib/unistr/u8-strmblen.c: Likewise.
72         * lib/unistr/u8-strmbtouc.c: Likewise.
73
74 2010-11-13  Jim Meyering  <meyering@redhat.com>
75
76         tests: avoid test failure on Solaris 10 due to lack of PATH export
77         * tests/test-update-copyright.sh: Don't forget to export PATH.
78
79         init.sh: ensure that IFS is defined, just in case...
80         * tests/init.sh (setup_): Ensure that IFS is defined,
81         so that saving and restoring it works as expected.  This
82         appears to be useful at least for an old version of dash
83         from a long time ago (RH 6).  See here for details:
84         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
85
86         maint.mk: tighten "test a == b" check
87         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
88         test to files that contain something like #!/bin/sh.
89         Without this, coreutils would get two false positives in
90         the comments of C source files.
91
92 2010-11-12  Eric Blake  <eblake@redhat.com>
93
94         bootstrap: fix typo in previous attempt
95         * build-aux/bootstrap (buildreq): Correct the grouping.
96         Reported by Paul Eggert.
97
98         maintainer-makefile: prohibit test x == x
99         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
100         Based on a report by Matthias Bolte.
101
102         bootstrap: allow FreeBSD gzip
103         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
104         which has no '.' and goes to stderr.
105         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
106         Reported by Matthias Bolte.
107
108         maintainer-makefile: check for i18n setup
109         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
110         will likely work.
111
112 2010-11-12  Bruno Haible  <bruno@clisp.org>
113
114         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
115         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
116         * lib/nanosleep.c (nanosleep): Likewise.
117
118 2010-11-11  Bruno Haible  <bruno@clisp.org>
119
120         fcntl-h: Fix for use of C++ on glibc systems.
121         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
122         also on glibc systems in C++ mode.
123         Reported by Gary V. Vaughan <gary@gnu.org>.
124
125 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
126
127         mknod: avoid false failure with dash
128         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
129
130 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
131
132         unlink: Fix "is it should" typo in diagnostic.
133         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
135
136 2010-11-11  Bruno Haible  <bruno@clisp.org>
137
138         Tests for module 'strerror_r-posix'.
139         * modules/strerror_r-posix-tests: New file.
140         * tests/test-strerror_r.c: New file.
141         * tests/test-string-c++.cc: Check the signature of strerror_r.
142
143         New module 'strerror_r-posix'.
144         * lib/string.in.h (strerror_r): New declaration.
145         * lib/strerror_r.c: New file.
146         * m4/strerror_r.m4: New file.
147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
148         of strerror_r.
149         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
150         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
151         * modules/strerror_r-posix: New file.
152         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
153         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
154         * doc/posix-functions/strerror_r.texi: Mention the new module and the
155         portability problems.
156
157 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
158
159         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
160         line is also considered for output. Quoted function name in shell
161         command, so temporary files for functions like MyClass::operator()
162         are removed correctly without errors.
163
164 2010-11-09  Bruno Haible  <bruno@clisp.org>
165
166         * doc/posix-functions/strerror.texi: List more failing platforms.
167
168         * doc/posix-functions/strerror.texi: Add a comment.
169
170 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
171
172         fdopendir: fix bug on MacOS X when low on file descriptors
173
174         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
175         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
176         All callers changed.
177         (fdopendir): Invoke save_cwd at the top level, not after using
178         multiple dup() calls to use up file descriptors.  Then retry
179         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
180         less than the maximum number of open file descriptors, because
181         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
182         on Mac OS X 10.6.4 for tar 1.24
183         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
184         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
185         and for tar 1.25
186         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
187
188 2010-11-07  Bruno Haible  <bruno@clisp.org>
189
190         vasnprintf: Support I flag on glibc systems.
191         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
192         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
193         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
194         snprintf function.
195         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
196         glibc systems.
197         * tests/test-vasnprintf-posix3.c: New file.
198         * modules/vasnprintf-posix-tests (Files): Add it.
199         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
200
201 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
202
203         [html] Fix copy/paste bug: Use unique name for compiler warnings.
204         * MODULES.html.sh: For compiler warnings, use name
205         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
206
207 2010-11-05  Eric Blake  <eblake@redhat.com>
208
209         ceil, floor: avoid spurious failure with icc
210         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
211         [denormals-as-zero] when optimizing without -mieee-fp option.
212         * tests/test-floorf2.c (floorf_reference): Likewise.
213         * tests/test-ceilf1.c (dummy): New function.
214         (main): Use it to outsmart icc's optimization.
215         * tests/test-floorf1.c (dummy, main): Likewise.
216
217         tests: require working signbit
218         * modules/ceilf-tests (Depends-on): Add signbit.
219         * modules/ceill-tests (Depends-on): Likewise.
220         * modules/floorf-tests (Depends-on): Likewise.
221         * modules/floorl-tests (Depends-on): Likewise.
222         * modules/round-tests (Depends-on): Likewise.
223         * modules/roundf-tests (Depends-on): Likewise.
224         * modules/roundl-tests (Depends-on): Likewise.
225         * modules/trunc-tests (Depends-on): Likewise.
226         * modules/truncf-tests (Depends-on): Likewise.
227         * modules/truncl-tests (Depends-on): Likewise.
228
229         strtod: work around icc bug
230         * lib/strtod.c (minus_zero): Define to working value.
231         (strtod): Use it to avoid icc bug.
232
233         copysign: enhance tests
234         * modules/copysign-tests (Files): Add minus-zero.h.
235         * tests/test-copysign.c (main): Also test zeros.
236
237 2010-11-04  Eric Blake  <eblake@redhat.com>
238
239         ceil, floor, round, trunc: enhance tests of -0
240         * tests/test-ceilf1.c (main): Ensure correct sign of result.
241         * tests/test-ceill.c (main): Likewise.
242         * tests/test-floorf1.c (main): Likewise.
243         * tests/test-floorl.c (main): Likewise.
244         * tests/test-round1.c (main): Likewise.
245         * tests/test-roundf1.c (main): Likewise.
246         * tests/test-roundl.c (main): Likewise.
247         * tests/test-trunc1.c (main): Likewise.
248         * tests/test-truncf1.c (main): Likewise.
249         * tests/test-truncl.c (main): Likewise.
250
251 2010-11-04  Eric Blake  <eblake@redhat.com>
252
253         frexp, tests: work around ICC bug with -zero
254         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
255         works with more compilers.
256         * tests/minus-zero.h: New file.
257         * modules/ceilf-tests (Files): Include it.
258         * modules/ceill-tests (Files): Likewise.
259         * modules/floorf-tests (Files): Likewise.
260         * modules/floorl-tests (Files): Likewise.
261         * modules/frexp-nolibm-tests (Files): Likewise.
262         * modules/frexp-tests (Files): Likewise.
263         * modules/frexpl-nolibm-tests (Files): Likewise.
264         * modules/frexpl-tests (Files): Likewise.
265         * modules/isnan-tests (Files): Likewise.
266         * modules/isnand-nolibm-tests (Files): Likewise.
267         * modules/isnand-tests (Files): Likewise.
268         * modules/isnanf-nolibm-tests (Files): Likewise.
269         * modules/isnanf-tests (Files): Likewise.
270         * modules/isnanl-nolibm-tests (Files): Likewise.
271         * modules/isnanl-tests (Files): Likewise.
272         * modules/round-tests (Files): Likewise.
273         * modules/roundf-tests (Files): Likewise.
274         * modules/roundl-tests (Files): Likewise.
275         * modules/ldexpl-tests (Files): Likewise.
276         * modules/signbit-tests (Files): Likewise.
277         * modules/snprintf-posix-tests (Files): Likewise.
278         * modules/sprintf-posix-tests (Files): Likewise.
279         * modules/strtod-tests (Files): Likewise.
280         * modules/trunc-tests (Files): Likewise.
281         * modules/truncf-tests (Files): Likewise.
282         * modules/truncl-tests (Files): Likewise.
283         * modules/vsnprintf-posix-tests (Files): Likewise.
284         * modules/vsprintf-posix-tests (Files): Likewise.
285         * modules/vasnprintf-posix-tests (Files): Likewise.
286         * modules/vasprintf-posix-tests (Files): Likewise.
287         * tests/test-ceilf1.c (main): Use it.
288         * tests/test-ceill.c (main): Likewise.
289         * tests/test-floorf1.c (main): Likewise.
290         * tests/test-floorl.c (main): Likewise.
291         * tests/test-frexp.c (main): Likewise.
292         * tests/test-frexpl.c (main): Likewise.
293         * tests/test-isnan.c (main): Likewise.
294         * tests/test-isnand.h (main): Likewise.
295         * tests/test-isnanf.h (main): Likewise.
296         * tests/test-isnanl.h (main): Likewise.
297         * tests/test-ldexpl.c (main): Likewise.
298         * tests/test-round.c (main): Likewise.
299         * tests/test-roundf.c (main): Likewise.
300         * tests/test-roundl.c (main): Likewise.
301         * tests/test-signbit.c (test_signbitf, test_signbitd)
302         (test_signbitl): Likewise.
303         * tests/test-snprintf-posix.h (test_function): Likewise.
304         * tests/test-sprintf-posix.h (test_function): Likewise.
305         * tests/test-strtod.c (main): Likewise.
306         * tests/test-trunc1.c (main): Likewise.
307         * tests/test-truncf1.c (main): Likewise.
308         * tests/test-truncl.c (main): Likewise.
309
310         isnanl: work around icc bug
311         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
312
313 2010-11-03  Eric Blake  <eblake@redhat.com>
314
315         tests: fix compiler warnings
316         * tests/test-getopt.h (test_getopt): Fix condition.
317         * tests/test-getopt_long.h (test_getopt_long): Likewise.
318         * tests/test-pipe2.c (main): Likewise.
319         * tests/test-quotearg-simple.c (main): Avoid icc warning.
320
321         utimens: fix broken m4 test
322         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
323
324 2010-10-28  Bruno Haible  <bruno@clisp.org>
325
326         posix_spawn*, getdtablesize: Relax license.
327         * modules/posix_spawn (License): Change to LGPLv2+.
328         * modules/posix_spawnp (License): Likewise.
329         * modules/posix_spawn-internal (License): Likewise.
330         * modules/posix_spawnattr_init (License): Likewise.
331         * modules/posix_spawnattr_getflags (License): Likewise.
332         * modules/posix_spawnattr_setflags (License): Likewise.
333         * modules/posix_spawnattr_getpgroup (License): Likewise.
334         * modules/posix_spawnattr_setpgroup (License): Likewise.
335         * modules/posix_spawnattr_getschedparam (License): Likewise.
336         * modules/posix_spawnattr_setschedparam (License): Likewise.
337         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
338         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
339         * modules/posix_spawnattr_getsigdefault (License): Likewise.
340         * modules/posix_spawnattr_setsigdefault (License): Likewise.
341         * modules/posix_spawnattr_getsigmask (License): Likewise.
342         * modules/posix_spawnattr_setsigmask (License): Likewise.
343         * modules/posix_spawnattr_destroy (License): Likewise.
344         * modules/posix_spawn_file_actions_init (License): Likewise.
345         * modules/posix_spawn_file_actions_addclose (License): Likewise.
346         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
347         * modules/posix_spawn_file_actions_addopen (License): Likewise.
348         * modules/posix_spawn_file_actions_destroy (License): Likewise.
349         * modules/getdtablesize (License): Likewise.
350         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
351
352 2010-10-26  Bruno Haible  <bruno@clisp.org>
353
354         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
355         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
356         Cygwin and mingw.
357         Suggested by Eric Blake.
358
359 2010-10-26  Bruno Haible  <bruno@clisp.org>
360
361         stdio: Work around compilation error due to renameat() on Solaris 10.
362         * lib/stdio.in.h: Include <unistd.h> on Solaris.
363         * lib/renameat.c: Don't include <unistd.h> here.
364         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
365         Reported by Paul Eggert and Eric Blake.
366
367 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
368
369         renameat: port to Solaris 10, which declares renameat in unistd.h
370
371         * lib/renameat.c: Include unistd.h before stdio.h, because
372         Solaris 10 declares renameat in unistd.h.  Problem encountered
373         when building GNU tar 1.24 on Solaris 10.
374
375 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
376
377         fdopendir: fix C89 compilation
378         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
379         compilers.
380
381 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
382
383         inttostr: simplify by removing unnecessary redundancy
384         * lib/anytostr.c: Don't include verify.h.
385         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
386         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
387         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
388         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
389         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
390         Likewise.
391         * modules/inttostr (Depends-on): Remove 'verify'.
392
393 2010-10-23  Bruno Haible  <bruno@clisp.org>
394
395         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
396         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
397         Reported by Eric Blake.
398
399 2010-10-23  Bruno Haible  <bruno@clisp.org>
400
401         Tests: Fix LOCALE_JA on MirBSD 10.
402         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
403         to an UTF-8 locale.
404         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
405         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
406         Reported by Eric Blake.
407
408 2010-10-21  Bruno Haible  <bruno@clisp.org>
409
410         nl_langinfo test: Avoid test failure on NetBSD 5.
411         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
412         Reported by Eric Blake.
413
414 2010-10-21  Eric Blake  <eblake@redhat.com>
415
416         c-stack: work around libsigsegv 2.8 bug
417         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
418         overflow on at least PowerPC64.
419
420 2010-10-17  Bruno Haible  <bruno@clisp.org>
421
422         userspec: Drop redundant file.
423         * modules/userspec (Files): Remove lib/inttostr.h.
424
425 2010-10-17  Bruno Haible  <bruno@clisp.org>
426
427         nl_langinfo tests: Silence some warnings.
428         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
429         Reported by Jim Meyering.
430
431 2010-10-17  Bruno Haible  <bruno@clisp.org>
432
433         Make use of GCC's attribute __alloc_size__.
434         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
435         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
436         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
437         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
438         __alloc_size__.
439         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
440         Suggested by Jim Meyering.
441
442 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
443
444         bootstrap: anchor .gitignore entries.
445         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
446         with...
447         (insert_vc_ignore): ... this new function, which prepends `/' to
448         all .gitignore entries before passing them to
449         insert_sorted_if_absent.
450
451 2010-10-16  Bruno Haible  <bruno@clisp.org>
452
453         nextafter: Fix configure check.
454         * modules/nextafter (configure.ac): Correct expected prototype.
455
456 2010-10-16  Bruno Haible  <bruno@clisp.org>
457
458         termios: Update documentation.
459         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
460
461 2010-10-16  Bruno Haible  <bruno@clisp.org>
462
463         tests: Make them compile with TinyCC.
464         * tests/test-strstr.c (main): Remove parentheses around array
465         initializer.
466
467 2010-10-15  Eric Blake  <eblake@redhat.com>
468
469         ignore-value: make header idempotent
470         * lib/ignore-value.h: Add double-inclusion guards.
471         Reported by Stefan Berger.
472
473 2010-10-15  Jim Meyering  <meyering@redhat.com>
474
475         GNUmakefile: handle "stable" target, not "major"
476         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
477         lists in maint.mk and announce-gen.  Without this, "make stable"
478         would fail to ensure that $(VERSION) is up to date.
479
480 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
481
482         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
483         & co.
484
485 2010-10-14  Bruno Haible  <bruno@clisp.org>
486
487         vasnprintf: Don't set errno to 0.
488         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
489         block that sets it to 0.
490         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
491
492 2010-10-14  Bruno Haible  <bruno@clisp.org>
493
494         socketlib: Fix.
495         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
496         gl_PREREQ_SYS_H_WINSOCK2.
497         Reported by Ian Beckwith <ianb@erislabs.net>.
498
499 2010-10-13  Jim Meyering  <meyering@redhat.com>
500
501         test-select-stdin.c: avoid warn_unused_result warnings
502         * tests/test-select-stdin.c: Include "macros.h".
503         ASSERT that read and fflush succeed.
504
505 2010-10-13  Jim Meyering  <meyering@redhat.com>
506
507         git-version-gen: do require git-VC'd files in cwd
508         * build-aux/git-version-gen: Reject a git version string
509         if there are no commits associated with the current directory.
510         This avoids an unlikely false-positive (unrelated dir whose parent
511         repository also contains a tag matching v*), as pointed out
512         by Giuseppe Scrivano in
513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
514
515 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
516
517         argv-iter: omit nonconforming declaration
518         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
519         enum arg_iter_err declaration, which doesn't conform to C99.
520         Solaris 10 cc warns about this.
521
522 2010-10-13  Eric Blake  <eblake@redhat.com>
523
524         termios: fix compilation on mingw
525         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
526         (gl_TERMIOS_H): Adjust it on mingw.
527         * modules/termios (Makefile.am): Substitute new key.
528         * lib/termios.in.h (includes): Make include_next conditional.
529         * doc/posix-headers/termios.texi (termios.h): Update
530         documentation.
531         Reported by Daniel P. Berrange.
532
533 2010-10-13  Jim Meyering  <meyering@redhat.com>
534
535         git-version-gen: don't require that .git/ be in the current dir
536         * build-aux/git-version-gen: Adjust this script so that it works
537         when run from any working directory beneath the top-level .git/-
538         containing directory.  Inspired by a patch from Giuseppe Scrivano,
539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
540
541         test-select: avoid warn_unused_result warnings
542         * tests/test-select.c: Include "macros.h".
543         ASSERT that each call to read, write, and pipe succeeds.
544         While not technically required, also check each "close".
545         * modules/select-tests (Files): Add tests/macros.h.
546
547         test-symlinkat: remove declaration of unused local
548         * tests/test-symlinkat.c (main): Remove unused local, "buf".
549
550         test-inttostr: avoid shadowing warnings
551         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
552         and use malloc rather than the stack for the same reason as
553         mentioned in the comment justifying the other allocation.
554
555 2010-10-11  Bruno Haible  <bruno@clisp.org>
556
557         stdlib: Allow multiple gnulib generated replacements to coexist.
558         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
559         Reported by Sam Steingold <sds@gnu.org>.
560
561 2010-10-11  Jim Meyering  <meyering@redhat.com>
562
563         fix a documentation typo
564         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
565
566 2010-10-11  Eric Blake  <eblake@redhat.com>
567
568         futimens: work around Solaris 11 bug
569         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
570         * tests/test-futimens.h (test_futimens): Enhance, rather than
571         weaken test.
572         * doc/posix-functions/futimens.texi (futimens): Document the bug.
573
574 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
575
576         Indentation.
577         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
578         higher-level operators more to the left.
579
580 2010-10-11  Jim Meyering  <meyering@redhat.com>
581
582         test-futimens: avoid unwarranted test failure on Solaris 5.11
583         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
584         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
585         because it tries to dereference the NULL name argument.
586
587 2010-10-11  Bruno Haible  <bruno@clisp.org>
588
589         Indentation.
590         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
591         indentation.
592
593 2010-10-11  Jim Meyering  <meyering@redhat.com>
594
595         spawn.in.h: make indentation consistent with parentheses
596         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
597         Make indentation consistent with parentheses.
598
599 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
600
601         Fix mismatched parens in previous commit
602         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
603         parens.
604
605 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
606
607         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
608
609         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
610         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
611         * lib/malloca.c: Include "verify.h".
612         (verify1): Remove, replacing with a verify call.
613         * lib/relocwrapper.c (verify1): Likewise.
614         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
615         Likewise.
616         * modules/malloca (Depends-on): Add 'verify'.
617         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
618         * modules/vasnprintf (Depends-on): Add 'verify'.
619         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
620         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
621         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
622         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
623         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
624         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
625         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
626
627         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
628
629         Formerly the style was sometimes 2*X - 1, because the C standard
630         was wrongly thought to disallow ?: in integral constant expressions.
631         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
632         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
633         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
634         * lib/stdint.in.h (_verify_intmax_size): Likewise.
635         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
636         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
637         verify that time_t cannot be floating.
638
639 2010-10-08  Eric Blake  <eblake@redhat.com>
640
641         time: enforce recent POSIX ruling that time_t is integral
642         * lib/time.in.h (__time_t_must_be_integral): Detect any
643         problematic systems, allowing the rest of gnulib to assume POSIX.
644
645 2010-10-08  Jim Meyering  <meyering@redhat.com>
646
647         fdopendir: fix a bug on systems lacking openat and /proc support
648         OpenBSD 4.7 is one such system.  The most noticeable effect was
649         failure of any application making nontrivial use of fts: rm, du,
650         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
651           ./rm: traversal failed: `a': Bad file descriptor
652         Debugging that, you see that even though FD 6 was closed just
653         prior to the opendir call in fd_clone_opendir, its resulting
654         dir->dd_fd was 8, rather than the expected value of 6:
655
656         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
657         93                close (fd);
658         (gdb) n
659         94                dir = fd_clone_opendir (dupfd);
660         (gdb) n
661         95                saved_errno = errno;
662         (gdb) p dir->dd_fd
663         $11 = 8
664
665         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
666         The problem is that on OpenBSD, fd_clone_opendir has to resort
667         to using the old-style save/restore CWD mechanism, due to its
668         lack of openat/proc support, and *that* would steal the FD (6)
669         that opendir was supposed to use.
670
671         The fix is to squirrel away the desired FD so that save_cwd uses a
672         different one, and then free the dest FD right before calling opendir.
673         That guarantees opendir will use the required file descriptor.
674
675         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
676
677 2010-10-08  Bruno Haible  <bruno@clisp.org>
678
679         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
680         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
681
682 2010-10-08  Bruno Haible  <bruno@clisp.org>
683
684         nanosleep: Make replacement POSIX compliant.
685         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
686         is out of range.
687         Reported by Jim Meyering.
688
689 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
690
691         bootstrap: add hook for altering gnulib.mk, for Bison
692         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
693         the Bison bootstrapping process can rewrite file names and variables
694         in this file before later parts of 'bootstrap' use the file.
695         Bison wants to include lib/gnulib.mk from the top-level makefile,
696         so it needs the file names in this file to be relative to the top
697         level, not relative to lib; plus it needs variable names to be
698         rewritten.
699         (slurp): Use the new function.
700
701         bootstrap: reformat for readability
702         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
703
704 2010-10-08  Eric Blake  <eblake@redhat.com>
705
706         docs: update cygwin progress
707         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
708         1.7.7.
709         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
710         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
711         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
712         * doc/posix-functions/carg.texi (carg): Likewise.
713         * doc/posix-functions/cargf.texi (cargf): Likewise.
714         * doc/posix-functions/casin.texi (casin): Likewise.
715         * doc/posix-functions/casinf.texi (casinf): Likewise.
716         * doc/posix-functions/casinh.texi (casinh): Likewise.
717         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
718         * doc/posix-functions/catan.texi (catan): Likewise.
719         * doc/posix-functions/catanf.texi (catanf): Likewise.
720         * doc/posix-functions/catanh.texi (catanh): Likewise.
721         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
722         * doc/posix-functions/ccos.texi (ccos): Likewise.
723         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
724         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
725         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
726         * doc/posix-functions/cexp.texi (cexp): Likewise.
727         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
728         * doc/posix-functions/cimag.texi (cimag): Likewise.
729         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
730         * doc/posix-functions/clog.texi (clog): Likewise.
731         * doc/posix-functions/clogf.texi (clogf): Likewise.
732         * doc/posix-functions/conj.texi (conj): Likewise.
733         * doc/posix-functions/conjf.texi (conjf): Likewise.
734         * doc/posix-functions/cpow.texi (cpow): Likewise.
735         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
736         * doc/posix-functions/cproj.texi (cproj): Likewise.
737         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
738         * doc/posix-functions/creal.texi (creal): Likewise.
739         * doc/posix-functions/crealf.texi (crealf): Likewise.
740         * doc/posix-functions/csin.texi (csin): Likewise.
741         * doc/posix-functions/csinf.texi (csinf): Likewise.
742         * doc/posix-functions/csinh.texi (csinh): Likewise.
743         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
744         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
745         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
746         * doc/posix-functions/ctan.texi (ctan): Likewise.
747         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
748         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
749         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
750         * doc/posix-headers/complex.texi (complex.h): Likewise.
751
752 2010-10-07  Jim Meyering  <meyering@redhat.com>
753
754         parse-datetime: avoid compilation failure on OpenBSD 4.7
755         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
756         This works around a compilation failure on OpenBSD 4.7:
757         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
758
759 2010-10-07  Eric Blake  <eblake@redhat.com>
760
761         docs: update cygwin progress
762         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
763         1.7.6.
764         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
765         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
766         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
767         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
768         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
769         Likewise.
770         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
771         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
772         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
773         Likewise.
774         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
775         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
776         Likewise.
777         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
778         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
779         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
780         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
781         Likewise.
782         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
783         Likewise.
784         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
785
786         docs: update parse-datetime history
787         * doc/parse-datetime.texi (Authors of parse_datetime): Better
788         documentation of this function's history and alternatives.
789
790         cygwin: use more robust version check
791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
792         exclude an eventual cygwin 1.9.1.
793         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
795         (gl_FUNC_STRCASESTR): Likewise.
796         Reported by Bruno Haible.
797
798 2010-10-06  Bruno Haible  <bruno@clisp.org>
799
800         string, sys_select: Avoid #including large headers unless necessary.
801         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
802         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
803         OSF/1, BeOS, Haiku.
804         Reported by Jim Meyering.
805
806 2010-10-05  Eric Blake  <eblake@redhat.com>
807
808         memmem, strstr, strcasestr: fix bug with long periodic needle
809         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
810         periodic needle having false positive.
811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
812         and cygwin 1.7.7.
813         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
815         (gl_FUNC_STRCASESTR): Likewise.
816         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
817         * tests/test-memmem.c (main): Expose the bug.
818         * tests/test-strcasestr.c (main): Likewise.
819         * tests/test-strstr.c (main): Likewise.
820         * tests/test-c-strcasestr.c (main): Likewise.
821         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
822         * doc/posix-functions/strstr.texi (strstr): Likewise.
823         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
824         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
825
826 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
827
828         parse-datetime: do some more renaming
829         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
830         parse_datetime, not get_date.  Mention the renaming.
831         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
832         in comments.
833         * m4/bison.m4: Likewise.
834
835 2010-10-05  Eric Blake  <eblake@redhat.com>
836
837         parse-datetime: better name than get_date
838         * NEWS: Reword the deprecation notice.
839         * modules/get_date: Rename to modules/parse-datetime.
840         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
841         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
842         * lib/get_date.y: Rename to lib/parse-datetime.y.
843         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
844         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
845         * doc/getdate.texi: Provide fallback wrapper.
846         * lib/getdate.h: Move guts, and wrap...
847         * lib/parse-datetime.h: ...new file.
848         * lib/parse-datetime.y (get_date): Rename...
849         (parse_datetime): ...to this.
850         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
851         (gl_PARSE_DATETIME): ...to this.
852         * doc/posix-functions/getdate.texi (get_date): Provide fallback
853         documentation.
854         * modules/getdate (Files): Provide fallback docs and header.
855         (Notice, Depends-on): Update references.
856         * tests/test-parse-datetime.c: Likewise.
857         * DEPENDENCIES: Likewise.
858         * MODULES.html.sh (Date and time <time.h>): Likewise.
859         * doc/parse-datetime.texi (Date input formats)
860         (Authors of parse_datetime): Likewise.
861         * modules/parse-datetime (Files, configure.ac, Makefile.am)
862         (Include): Likewise.
863         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
864         * gnulib-tool: Likewise.
865         * m4/bison.m4 (gl_BISON): Likewise.
866         Suggested by Bruno Haible.
867
868 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
869
870         more ports to Solaris tr, which needs [] around ranges
871         * gnulib-tool: Solaris tr needs [] around ranges.
872         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
873         * tests/test-pipe-filter-gi1.c (main): Likewise.
874         * tests/test-pipe-filter-ii1.c (main): Likewise.
875
876 2010-10-05  Eric Blake  <eblake@redhat.com>
877
878         bootstrap: fix Solaris regression
879         * build-aux/bootstrap (check_versions): Solaris tr still needs []
880         around ranges.
881         Reported by Pádraig Brady.
882
883         bootstrap: work with pkg-config
884         * build-aux/bootstrap (check_versions): Also transliterate - in
885         prerequisite name.
886         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
887         prerequisites that were already found, to avoid confusion.
888         Reported by Justin Clift.
889
890         faccessat: remove unused wrappers
891         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
892         presence of these wrappers dragged in -lgen on Solaris.
893         Reported by Clemens Brogi; fix suggested by Paul Eggert.
894
895 2010-10-05  Jim Meyering  <meyering@redhat.com>
896
897         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
898         * Makefile (sc_pragma_columns): New syntax-check rule.
899
900 2010-10-04  Bruno Haible  <bruno@clisp.org>
901
902         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
903         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
904         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
905         Reported by Bruce Korb and Eric Blake.
906
907 2010-10-04  Bruno Haible  <bruno@clisp.org>
908
909         threadlib: Make option --with-libpth-prefix work.
910         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
911         use $LIBPTH, not just -lpth.
912
913 2010-10-04  Bruno Haible  <bruno@clisp.org>
914
915         Avoid line length limitation from HP NonStop system header files.
916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
917         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
918         * lib/ctype.in.h: Likewise.
919         * lib/dirent.in.h: Likewise.
920         * lib/errno.in.h: Likewise.
921         * lib/fcntl.in.h: Likewise.
922         * lib/float.in.h: Likewise.
923         * lib/getopt.in.h: Likewise.
924         * lib/iconv.in.h: Likewise.
925         * lib/inttypes.in.h: Likewise.
926         * lib/langinfo.in.h: Likewise.
927         * lib/locale.in.h: Likewise.
928         * lib/math.in.h: Likewise.
929         * lib/netdb.in.h: Likewise.
930         * lib/netinet_in.in.h: Likewise.
931         * lib/poll.in.h: Likewise.
932         * lib/pthread.in.h: Likewise.
933         * lib/pty.in.h: Likewise.
934         * lib/sched.in.h: Likewise.
935         * lib/se-selinux.in.h: Likewise.
936         * lib/search.in.h: Likewise.
937         * lib/signal.in.h: Likewise.
938         * lib/spawn.in.h: Likewise.
939         * lib/stdarg.in.h: Likewise.
940         * lib/stddef.in.h: Likewise.
941         * lib/stdint.in.h: Likewise.
942         * lib/stdio.in.h: Likewise.
943         * lib/stdlib.in.h: Likewise.
944         * lib/string.in.h: Likewise.
945         * lib/strings.in.h: Likewise.
946         * lib/sys_file.in.h: Likewise.
947         * lib/sys_ioctl.in.h: Likewise.
948         * lib/sys_select.in.h: Likewise.
949         * lib/sys_socket.in.h: Likewise.
950         * lib/sys_stat.in.h: Likewise.
951         * lib/sys_time.in.h: Likewise.
952         * lib/sys_times.in.h: Likewise.
953         * lib/sys_utsname.in.h: Likewise.
954         * lib/sys_wait.in.h: Likewise.
955         * lib/sysexits.in.h: Likewise.
956         * lib/termios.in.h: Likewise.
957         * lib/time.in.h: Likewise.
958         * lib/unistd.in.h: Likewise.
959         * lib/wchar.in.h: Likewise.
960         * lib/wctype.in.h: Likewise.
961         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
962         * modules/ctype (Makefile.am): Likewise.
963         * modules/dirent (Makefile.am): Likewise.
964         * modules/errno (Makefile.am): Likewise.
965         * modules/fcntl-h (Makefile.am): Likewise.
966         * modules/float (Makefile.am): Likewise.
967         * modules/getopt-posix (Makefile.am): Likewise.
968         * modules/iconv-h (Makefile.am): Likewise.
969         * modules/inttypes (Makefile.am): Likewise.
970         * modules/langinfo (Makefile.am): Likewise.
971         * modules/locale (Makefile.am): Likewise.
972         * modules/math (Makefile.am): Likewise.
973         * modules/netdb (Makefile.am): Likewise.
974         * modules/netinet_in (Makefile.am): Likewise.
975         * modules/poll-h (Makefile.am): Likewise.
976         * modules/pthread (Makefile.am): Likewise.
977         * modules/pty (Makefile.am): Likewise.
978         * modules/sched (Makefile.am): Likewise.
979         * modules/search (Makefile.am): Likewise.
980         * modules/selinux-h (Makefile.am): Likewise.
981         * modules/signal (Makefile.am): Likewise.
982         * modules/spawn (Makefile.am): Likewise.
983         * modules/stdarg (Makefile.am): Likewise.
984         * modules/stddef (Makefile.am): Likewise.
985         * modules/stdint (Makefile.am): Likewise.
986         * modules/stdio (Makefile.am): Likewise.
987         * modules/stdlib (Makefile.am): Likewise.
988         * modules/string (Makefile.am): Likewise.
989         * modules/strings (Makefile.am): Likewise.
990         * modules/sys_file (Makefile.am): Likewise.
991         * modules/sys_ioctl (Makefile.am): Likewise.
992         * modules/sys_select (Makefile.am): Likewise.
993         * modules/sys_socket (Makefile.am): Likewise.
994         * modules/sys_stat (Makefile.am): Likewise.
995         * modules/sys_time (Makefile.am): Likewise.
996         * modules/sys_times (Makefile.am): Likewise.
997         * modules/sys_utsname (Makefile.am): Likewise.
998         * modules/sys_wait (Makefile.am): Likewise.
999         * modules/sysexits (Makefile.am): Likewise.
1000         * modules/termios (Makefile.am): Likewise.
1001         * modules/time (Makefile.am): Likewise.
1002         * modules/unistd (Makefile.am): Likewise.
1003         * modules/wchar (Makefile.am): Likewise.
1004         * modules/wctype (Makefile.am): Likewise.
1005
1006 2010-10-04  Bruno Haible  <bruno@clisp.org>
1007
1008         read-file tests: Avoid a test failure on NonStop Kernel.
1009         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1010         a regular file.
1011         Reported by Joachim Schmitz <schmitz@hp.com>.
1012
1013 2010-10-03  Bruno Haible  <bruno@clisp.org>
1014
1015         gnulib-tool: Fixes for --create-testdir with --libtool.
1016         * gnulib-tool (func_get_automake_snippet): Don't augment
1017         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1018         an executable.
1019         (func_create_testdir): Handle module 'alloca' like func_import.
1020         Reported by Bruce Korb <bruce.korb@gmail.com>.
1021
1022 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1023
1024         Avoid some lines longer than 80 characters.
1025         * lib/stdint.in.h: Break long comment lines.
1026         * lib/math.in.h: Likewise.
1027         (_GL_NUM_UINT_WORDS): New macro, for readability.
1028         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1029         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1030         * lib/stdlib.in.h: Likewise.
1031         * lib/spawn.in.h: Likewise.
1032         * lib/sys_socket.in.h: Update an URL.
1033         * lib/sys_stat.in.h: Break long line.
1034
1035 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1036
1037         Improve pmccabe2html.
1038         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1039         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1040         when the sources change. Remove the line in the HTML about "Used
1041         ranges" (which implied that there might be other unused ranges),
1042         rename "Resume" to "Summary" (easier to understand for more users).
1043         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1044         styles, and some unnecessary blank lines.
1045
1046 2010-10-03  Bruno Haible  <bruno@clisp.org>
1047             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1048
1049         acl: Add support for ACLs on NonStop Kernel.
1050         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1051         Check whether the function aclsort() exists.
1052         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1053         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1054         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1055         (acl_nontrivial [HAVE_ACLSORT]: New function.
1056         (file_has_acl): Implement for NonStop Kernel.
1057         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1058         (qset_acl): Implement for NonStop Kernel.
1059         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1060         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1061         (main): Implement for NonStop Kernel.
1062         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1063         Kernel. Handle this flavor.
1064         * tests/test-set-mode-acl.sh: Likewise.
1065         * tests/test-copy-acl.sh: Likewise.
1066         * tests/test-copy-file.sh: Likewise.
1067
1068 2010-10-03  Bruno Haible  <bruno@clisp.org>
1069
1070         Info about ACLs on NonStop Kernel.
1071         * doc/acl-resources.txt: Add info about NonStop Kernel.
1072         References by Joachim Schmitz <schmitz@hp.com>.
1073
1074 2010-10-02  Bruno Haible  <bruno@clisp.org>
1075
1076         Define missing EDQUOT on NonStop Kernel.
1077         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1078         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1079         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1080         missing.
1081         * doc/posix-headers/errno.texi: Mention the NSK bug.
1082         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1083         Reported by Joachim Schmitz <schmitz@hp.com>.
1084
1085 2010-10-02  Bruno Haible  <bruno@clisp.org>
1086
1087         Update doc for POSIX:2008.
1088         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1089         Update URL of POSIX specification.
1090
1091 2010-10-02  Bruno Haible  <bruno@clisp.org>
1092
1093         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1094         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1095         from gnulib, not from Automake.
1096
1097 2010-10-02  Bruno Haible  <bruno@clisp.org>
1098
1099         New module 'system-posix'.
1100         * modules/system-posix: New file.
1101         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1102         module is present.
1103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1104         GNULIB_SYSTEM_POSIX.
1105         * modules/stdlib (Depends-on): Remove sys_wait.
1106         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1107         * doc/posix-functions/system.texi: Mention the new module.
1108         * doc/posix-headers/stdlib.texi: Likewise.
1109         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1110         define test_sys_wait_macros to a no-op.
1111         Reported by Sam Steingold <sds@gnu.org>.
1112
1113 2010-09-30  Bruno Haible  <bruno@clisp.org>
1114
1115         More renaming from 'getdate' to 'get_date'.
1116         * doc/get_date.texi: Renamed from doc/getdate.texi.
1117         * modules/get_date (Files): Update.
1118         * MODULES.html.sh (Date and time <time.h>): Update.
1119         * DEPENDENCIES: Update.
1120         * gnulib-tool: Update comment.
1121         * m4/bison.m4 (gl_BISON): Likewise.
1122         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1123
1124 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1125
1126         bootstrap: support ACLOCAL_FLAGS during aclocal
1127         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1128         can add additional -I dir for third-party .m4 files.
1129
1130 2010-09-30  Eric Blake  <eblake@redhat.com>
1131
1132         bootstrap: use glibtoolize on MacOS
1133         * build-aux/bootstrap (check_versions): Convert libtool into
1134         libtoolize.
1135         (tool search): Move libtool check earlier, and look for
1136         glibtoolize for MacOS.
1137         (gnulib_tool_options): Auto-add --libtool when appropriate.
1138         Reported by Justin Clift.
1139
1140         poll: fix typo that broke test on MacOS
1141         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1142         Reported by Justin Clift.
1143
1144         getdate: rename to get_date
1145         Note: getdate.h is not renamed, to minimize client impact.
1146         * modules/getdate: Mark obsolete.  Move old contents...
1147         * modules/get_date: ...to new module name.
1148         * modules/getdate-tests: Move...
1149         * modules/get_date-tests: ...here.
1150         * m4/getdate.m4: Move...
1151         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1152         * lib/getdate.y: Move...
1153         * lib/get_date.y: ...here.
1154         * tests/test-getdate.c: Move...
1155         * tests/test-get_date.c: ...here.
1156         * doc/posix-functions/getdate.texi (getdate): Update name.
1157         * NEWS: Mention the change.
1158
1159 2010-09-29  Bruno Haible  <bruno@clisp.org>
1160
1161         Separate the module 'waitpid' from the module 'sys_wait'.
1162         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1163         present.
1164         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1165         gl_MODULE_INDICATOR_FOR_TESTS.
1166         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1167         * modules/sys_wait (Depends-on): Remove waitpid.
1168         (Makefile.am): Substitute GNULIB_WAITPID.
1169         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1170         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1171         signature only if the 'waitpid' module is present.
1172         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1173         * NEWS: Mention the change.
1174         * modules/grantpt (Depends-on): Add waitpid.
1175         * modules/wait-process (Depends-on): Likewise.
1176
1177 2010-09-29  Bruno Haible  <bruno@clisp.org>
1178
1179         More tests for module 'sys_wait'.
1180         * modules/sys_wait-c++-tests: New file.
1181         * tests/test-sys_wait-c++.cc: New file.
1182         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1183         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1184
1185 2010-09-29  Bruno Haible  <bruno@clisp.org>
1186
1187         New module 'waitpid'.
1188         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1189         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1190         Don't include <process.h>.
1191         (waitpid): Declare only, using modern idiom.
1192         * m4/waitpid.m4: New file.
1193         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1194         * modules/waitpid: New file.
1195         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1196         (Makefile.am): Update.
1197         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1198
1199 2010-09-28  Bruno Haible  <bruno@clisp.org>
1200
1201         poll: Assume ANSI C.
1202         * lib/poll.c (poll): Use an ANSI C declaration.
1203
1204 2010-09-28  Bruno Haible  <bruno@clisp.org>
1205
1206         poll-h: Create poll.h on all platforms.
1207         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1208         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1209         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1210         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1211         (gl_REPLACE_POLL_H): Don't set POLL_H.
1212         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1213         * modules/poll-h (Depends-on): Add include_next.
1214         (Makefile.am): Create poll.h unconditionally. Substitute also
1215         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1216
1217 2010-09-28  Bruno Haible  <bruno@clisp.org>
1218
1219         Tests for module 'poll-h'.
1220         * modules/poll-h-c++-tests: New file.
1221         * tests/test-poll-h-c++.cc: New file.
1222
1223         Tests for module 'poll-h'.
1224         * modules/poll-h-tests: New file.
1225         * tests/test-poll-h.c: New file.
1226
1227 2010-09-28  Bruno Haible  <bruno@clisp.org>
1228
1229         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1230         * modules/poll-h (Depends-on): Add 'extensions'.
1231
1232 2010-09-28  Bruno Haible  <bruno@clisp.org>
1233
1234         New module 'poll-h'.
1235         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1236         (poll): Use modern idiom.
1237         * modules/poll-h: New file.
1238         * modules/poll (Files): Remove lib/poll.in.h.
1239         (Depends-on): Add poll-h.
1240         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1241         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1242         * m4/poll_h.m4: New file.
1243         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1244         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1245         and invoke gl_REPLACE_POLL_H.
1246         * lib/poll.c: Use common idiom.
1247         * tests/test-poll.c: Likewise.
1248         * doc/posix-headers/poll.texi: Mention the poll-h module.
1249         Suggested by Eric Blake.
1250
1251 2010-09-26  Bruno Haible  <bruno@clisp.org>
1252
1253         sys_wait: Implement WSTOPSIG.
1254         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1255         Reported by Simon Josefsson.
1256
1257 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1258
1259         stdlib, sys_wait: Avoid compilation error on mingw.
1260         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1261
1262 2010-09-26  Bruno Haible  <bruno@clisp.org>
1263
1264         stdlib tests: Avoid code duplication.
1265         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1266         * modules/sys_wait-tests (Files): Likewise.
1267         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1268         * tests/test-stdlib.c: Include test-sys_wait.h.
1269         (main): Invoke test_sys_wait_macros.
1270         * tests/test-sys_wait.c: Include test-sys_wait.h.
1271         (main): Invoke test_sys_wait_macros.
1272
1273 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1274
1275         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1276         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1277         sure Windows sockets are working before calling getaddrinfo.
1278         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1279         * doc/gnulib.texi (Windows sockets): Fix typo.
1280
1281 2010-09-25  Bruno Haible  <bruno@clisp.org>
1282
1283         Tests for module 'regex-quote'.
1284         * modules/regex-quote-tests: New file.
1285         * tests/test-regex-quote.c: New file.
1286
1287         New module 'regex-quote'.
1288         * lib/regex-quote.h: New file.
1289         * lib/regex-quote.c: New file.
1290         * modules/regex-quote: New file.
1291         Suggested by Reuben Thomas <rrt@sc3d.org>.
1292
1293 2010-09-24  Bruno Haible  <bruno@clisp.org>
1294
1295         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1296         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1297
1298 2010-09-23  Bruno Haible  <bruno@clisp.org>
1299
1300         setenv: Relax license.
1301         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1302         Blake.
1303         Requested by Eric Blake.
1304
1305 2010-09-22  Bruno Haible  <bruno@clisp.org>
1306
1307         termios: Relax license.
1308         * modules/termios (License): Change to LGPLv2+.
1309         Requested by Eric Blake.
1310
1311 2010-09-22  Bruno Haible  <bruno@clisp.org>
1312
1313         threadlib: Allow the package to change the default to 'no'.
1314         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1315         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1316         Reported by Paul Eggert.
1317
1318 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1319             Bruno Haible  <bruno@clisp.org>
1320
1321         Fix endless loop in mbmemcasecoll.
1322         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1323         byte.
1324         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1325
1326 2010-09-22  Bruno Haible  <bruno@clisp.org>
1327
1328         Tests for module 'memcoll'.
1329         * modules/memcoll-tests: New file.
1330         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1331
1332         memcoll, xmemcoll: Clarify size vs. length.
1333         * modules/memcoll.c (memcoll0): Clarify specification.
1334         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1335         passed to collate_error.
1336
1337 2010-09-22  Bruno Haible  <bruno@clisp.org>
1338
1339         Tests for module 'memcasecmp'.
1340         * modules/memcasecmp-tests: New file.
1341         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1342
1343 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         * lib/pthread.in.h: Add split double-inclusion guard, and include
1346         system <pthread.h> if there is one.  Use @@-style as in other
1347         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1348         pthread.h doesn't.
1349         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1350         (pthread_mutexattr_settype, pthread_mutex_trylock):
1351         New static inline functions, if there's no system <pthread.h>.
1352         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1353         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1354         Approximate with mutexes if the system lacks spinlocks, as in
1355         MacOS.
1356         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1357         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1358         @@-style.  Check for spinlocks separately.
1359         (gl_PTHREAD_DEFAULTS): New macro.
1360         * modules/pthread: Redo to use a more typical style for in.h files.
1361
1362 2010-09-21  Eric Blake  <eblake@redhat.com>
1363
1364         net_if: enhance tests
1365         * tests/test-net_if.c (main): Move signature checks earlier.
1366         Print failures to stderr.
1367         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1368         Document the bug that we do not yet fix.
1369
1370 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1371
1372         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1373         about gnulib, not GSS.
1374
1375 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1376
1377         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1378         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1379         for Emacs.
1380         * build-aux/pmccabe2html: Make Makefile.am example code more
1381         cut-and-paste friendly.
1382
1383 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1384
1385         * tests/test-net_if.c: New file.
1386         * modules/net_if-tests: New file.
1387
1388 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1389
1390         pthread: add pthread_spin_destroy
1391         * lib/pthread.in.h (pthread_spin_destroy): New function.
1392
1393 2010-09-19  Bruno Haible  <bruno@clisp.org>
1394
1395         gnulib-tool: Fix --help output.
1396         * gnulib-tool (func_usage): Fix help message.
1397         Reported by Reuben Thomas <rrt@sc3d.org>.
1398
1399 2010-09-18  Jim Meyering  <meyering@redhat.com>
1400
1401         maint.mk: avoid unexpanded \n in two diagnostics
1402         * top/maint.mk (sc_prohibit_always_true_header_tests):
1403         Don't use a literal \n in a halt=... assignment.  It would not be
1404         expanded, and the two \n bytes would appear in the diagnostic output
1405         rather than the desired newline.  Use halt=$$(printf ... instead.
1406         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1407
1408 2010-09-18  Bruno Haible  <bruno@clisp.org>
1409
1410         netinet_in: Doc tweak.
1411         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1412         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1413
1414 2010-09-18  Jim Meyering  <meyering@redhat.com>
1415
1416         init.sh: correct an outdated comment
1417         * tests/init.sh (create_exe_shims_):  s/function/alias/
1418
1419         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1420         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1421         a file named "*.exe" is removed between the glob expansion and the
1422         processing of that oddly named file.
1423
1424 2010-09-17  Eric Blake  <eblake@redhat.com>
1425
1426         mirbsd: add some more support
1427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1428         in BSD family.
1429         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1430         devices as OpenBSD.
1431         * m4/host-os.m4 (mirbsd): Add MirBSD.
1432
1433         tests: fix unportable assumption on sys/wait.h
1434         * tests/test-sys_wait.c (main): Relax test.
1435         * tests/test-stdlib.c (main): Likewise.
1436
1437         init.sh: accomodate directory with no .exes
1438         * tests/init.sh: Accomodate directory containing only scripts.
1439
1440         tests: avoid compiler warning
1441         * tests/test-stdlib.c (main): Use the variable.
1442
1443         fdutimens, fdutimensat: update signature, again
1444         * lib/utimens.h (gl_futimens): Delete, and move signature...
1445         (fdutimens): ...here.
1446         (fdutimensat): Rearrange signature.
1447         (lutimensat): Rename variable for clarity.
1448         * lib/fdutimensat.c (fdutimensat): Update signature.
1449         * lib/utimens.c (fdutimens): Likewise.
1450         (gl_futimens): Delete.
1451         (utimens, lutimens): Update callers.
1452         * lib/futimens.c (futimens): Likewise.
1453         * tests/test-fdutimensat.c: Likewise.
1454         * tests/test-utimens.c: Likewise.
1455         * tests/test-futimens.h: Update comment.
1456         * NEWS: Mention this.
1457         Suggested by Paul Eggert.
1458
1459 2010-09-17  Bruno Haible  <bruno@clisp.org>
1460
1461         Take over the maintenance of some older macros from Autoconf.
1462         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1463         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1464         GNU Autoconf.
1465         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1466         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1467
1468 2010-09-17  Eric Blake  <eblake@redhat.com>
1469
1470         fdutimensat: drop atflag validation
1471         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1472         with valid fd, to close a race scenario where futimens is
1473         unsupported and FILE was replaced by a symlink.
1474         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1475         accordingly.
1476         Suggested by Paul Eggert.
1477
1478 2010-09-16  Bruno Haible  <bruno@clisp.org>
1479
1480         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1481         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1482
1483 2010-09-16  Bruno Haible  <bruno@clisp.org>
1484
1485         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1486         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1487         login_tty exists.
1488         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1489
1490 2010-09-16  Bruno Haible  <bruno@clisp.org>
1491
1492         login_tty: Make the replacement code work on BSD systems.
1493         * lib/login_tty.c: Include <sys/ioctl.h>.
1494         (login_tty): Use ioctl TIOCSCTTY when available.
1495         * modules/login_tty (Depends-on): Add sys_ioctl.
1496         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1497
1498 2010-09-16  Bruno Haible  <bruno@clisp.org>
1499
1500         login_tty: Stricter unit test.
1501         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1502         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1503         and tcgetsid() after login_tty.
1504         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1505
1506 2010-09-16  Bruno Haible  <bruno@clisp.org>
1507
1508         New module 'tcgetsid'.
1509         * lib/tcgetsid.c: New file.
1510         * m4/tcgetsid.m4: New file.
1511         * modules/tcgetsid: New file.
1512         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1513         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1514         GNULIB_TCGETSID, HAVE_TCGETSID.
1515         * lib/termios.in.h: Include <sys/types.h>.
1516         (tcgetsid): New declaration.
1517         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1518         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1519         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1520         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1521
1522 2010-09-16  Bruno Haible  <bruno@clisp.org>
1523
1524         Tests for module 'termios'.
1525         * modules/termios-c++-tests: New file.
1526         * modules/termios-tests: New file.
1527         * tests/test-termios-c++.cc: New file.
1528         * tests/test-termios.c: New file.
1529
1530         New module 'termios'.
1531         * modules/termios: New file.
1532         * lib/termios.in.h: New file.
1533         * m4/termios_h.m4: New file.
1534         * doc/posix-headers/termios.texi: Mention the new module.
1535
1536 2010-09-16  Eric Blake  <eblake@redhat.com>
1537
1538         fdutimensat: add an atflag parameter
1539         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1540         * lib/utimens.h (fdutimensat): Update prototype.
1541         * tests/test-fdutimensat.c: Adjust test to match.
1542         * NEWS: Document the change.
1543         Suggested by Paul Eggert.
1544
1545 2010-09-16  Bruno Haible  <bruno@clisp.org>
1546
1547         Fix typos in comments.
1548         * lib/striconveh.h: Fix typo in comment.
1549         * lib/login_tty.c (login_tty): Likewise.
1550
1551 2010-09-15  Bruno Haible  <bruno@clisp.org>
1552
1553         stdlib: clarify MirBSD WEXITSTATUS bug
1554         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1555         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1556
1557 2010-09-15  Eric Blake  <eblake@redhat.com>
1558
1559         stdlib: work around MirBSD WEXITSTATUS bug
1560         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1561         * modules/stdlib (Depends-on): Add sys_wait.
1562         * tests/test-sys_wait.c (main): Enhance test.
1563         * tests/test-stdlib.c (main): Likewise.
1564         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1565
1566         docs: mention MacOS issue with WEXITSTATUS(constant)
1567         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1568         issue.
1569         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1570
1571         strnlen: add tests
1572         * modules/strnlen-tests: New file.
1573         * tests/test-strnlen.c: Likewise.
1574
1575 2010-09-14  Bruno Haible  <bruno@clisp.org>
1576
1577         unistr/base: Avoid link errors when module 'libunistring' is also used.
1578         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1579         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1580         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1581         Declare also when HAVE_LIBUNISTRING is set.
1582         Reported by Pádraig Brady <P@draigbrady.com>.
1583
1584 2010-09-14  Eric Blake  <eblake@redhat.com>
1585
1586         test-rawmemchr: make more robust
1587         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1588         (Depends-on, configure.ac): Add needed prerequisites to use it.
1589         * modules/memchr-tests (Files, Depends-on, configure.ac):
1590         Likewise, to avoid implicit reliance on memchr module prereqs.
1591         * tests/test-memchr.c (main): Ensure proper masking.
1592         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1593         reads.
1594
1595         memchr: detect glibc Alpha bug
1596         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1597         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1598         Alpha.
1599         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1600         * tests/test-memchr.c (main): Enhance test.
1601         Reported by Nelson H. F. Beebe.
1602
1603 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1604
1605         fts, getcwd, glob: audit for dirfd returning -1
1606         * lib/fts.c (opendir): Remove #define; no longer used.
1607         (opendirat): New arg PDIR_FD.  All callers changed.
1608         (fts_build, _opendir2): Use new opendirat to avoid the need for
1609         dirfd, or for checking whether dirfd returns a negative value.
1610         Don't use opendir; always use openat followed by fdopendir.
1611         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1612         it.
1613         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1614         returns -1 here.
1615         * modules/fts (Depends-on): Remove dirfd.
1616         * modules/getcwd (Depends-on): Likewise.
1617
1618 2010-09-13  Eric Blake  <eblake@redhat.com>
1619
1620         float: fix broken MirBSD header
1621         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1622         * doc/posix-headers/float.texi (float.h): Document it.
1623
1624 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1625
1626         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1627         * lib/fts.c (opendirat): New arg extra_flags.
1628         (__opendir2): Use it to avoid following symlinks when opening
1629         a directory, if symlinks are not supposed to be followed.  See
1630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1631
1632         fdopendir: preserve argument fd before returning
1633         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1634         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1635         (fdopendir): Use them, arranging for FD to be open to the same
1636         directory that it was when it started.  (It might be temporarily
1637         closed while fdopendir is running, so this not thread- or
1638         signal-safe.)  Be careful to do the right thing even when file
1639         descriptors are scarce and dup fails with errno == EMFILE.  See
1640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1641
1642 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1643
1644         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1645         * NEWS: Document change.
1646         * m4/regex.m4: Disable test for regoff_t size.
1647
1648 2010-09-13  Jim Meyering  <meyering@redhat.com>
1649
1650         fts: don't operate on an invalid file descriptor after failed dup
1651         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1652         negative file descriptor.
1653
1654 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1655
1656         savedir: add streamsavedir, deprecate fdsavedir
1657         * NEWS: Mention deprecation of fdsavedir.
1658         * lib/savedir.c (streamsavedir): New extern function, whose name
1659         ends in "savedir" to be consistent with the others.  This differs
1660         from savedirstream in that it doesn't close its argument.  The
1661         next version of GNU tar will use this instead of fdsavedir, to
1662         avoid some race conditions and conserve file descriptors.
1663         (savedirstream): Reimplement as a wrapper around streamsavedir.
1664         (fdsavedir): Add a comment deprecating this function.  As far as
1665         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1666         * lib/savedir.h (streamsavedir): New decl.
1667         (fdsavedir): Add a comment deprecating this.
1668
1669 2010-09-10  Bruno Haible  <bruno@clisp.org>
1670
1671         langinfo: Fix last commit.
1672         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1673         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1675
1676 2010-09-10  Bruno Haible  <bruno@clisp.org>
1677
1678         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1679         * lib/progreloc.c (O_EXEC): Define fallback.
1680
1681 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1682
1683         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1684         * NEWS: Document recent changes to fcntl-h.
1685         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1686         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1687         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1688         Similarly for O_SEARCH; this last was already true, but not documented.
1689         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1690         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1691         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1692         Likewise.
1693         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1694         is zero, not whether it is defined.
1695         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1696         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1697         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1698
1699 2010-09-10  Bruno Haible  <bruno@clisp.org>
1700
1701         langinfo, nl_langinfo: Fix for IRIX 5.3.
1702         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1703         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1704         HAVE_LANGINFO_YESEXPR.
1705         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1706         HAVE_LANGINFO_YESEXPR.
1707         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1708         HAVE_LANGINFO_T_FMT_AMPM is 0.
1709         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1710         HAVE_LANGINFO_YESEXPR is 0.
1711         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1712         NOEXPR.
1713         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1714         * doc/posix-functions/nl_langinfo.texi: Likewise.
1715         Reported by Eric Blake.
1716
1717 2010-09-10  Bruno Haible  <bruno@clisp.org>
1718
1719         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1720         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1721         on FreeBSD 8.0 and OpenBSD 4.6.
1722         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1723         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1724         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1725         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1726         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1727         ac_includes_default.
1728         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1729
1730 2010-09-09  Eric Blake  <eblake@redhat.com>
1731
1732         strsignal: work around NetBSD bug
1733         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1734         * lib/string.in.h (includes): Likewise.
1735         * doc/posix-functions/strsignal.texi (strsignal): Document the
1736         bug.
1737         Reported by Nelson H. F. Beebe.
1738
1739         gnulib-tool: work with NetBSD /bin/sh
1740         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1741         (func_get_description, func_get_comment, func_get_status)
1742         (func_get_notice, func_get_applicability, func_get_filelist)
1743         (func_get_dependencies, func_get_autoconf_early_snippet)
1744         (func_get_autoconf_snippet, func_get_automake_snippet)
1745         (func_get_include_directive, func_get_link_directive)
1746         (func_get_license, func_get_maintainer, func_import): Avoid
1747         shell syntax errors from parsing syntax extensions.
1748
1749 2010-09-09  Bruno Haible  <bruno@clisp.org>
1750
1751         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1752         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1753         a reliable way to determine whether the 'alias' command works.
1754
1755 2010-09-08  Jim Meyering  <meyering@redhat.com>
1756
1757         init.sh: penalize a set-x-impaired shell; don't disqualify it
1758         * tests/init.sh: Too many shells corrupt application stderr when
1759         you set -x, so we can't afford to disqualify them, since at least
1760         on Irix-6.5, that would disqualify all bourne shells.
1761         Instead, use a two-pass approach.
1762         On the first pass, try to find a shell that meets the stricter
1763         condition that set -x does not corrupt stderr.
1764         If no shell meets the stricter condition, retest each candidate
1765         shell, but without that extra condition.  Finally, when
1766         VERBOSE=yes is requested and set -x might cause trouble, simply
1767         issue a warning and refrain from enabling debug output.
1768
1769 2010-09-08  Eric Blake  <eblake@redhat.com>
1770
1771         unsetenv: fix OpenBSD bug
1772         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1773         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1774         documentation.
1775         Reported by Jim Meyering.
1776
1777         strtod: work around IRIX 6.5 bug
1778         * lib/strtod.c (strtod): Reparse number on shorter string if
1779         exponent parse was invalid.
1780         * tests/test-strtod.c (main): Add check for "0x1p 2".
1781         Reported by Tom G. Christensen.
1782
1783         getopt: optimize previous patch
1784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1785         empty variable.  Speed up awk script.
1786         Reported by Paolo Bonzini.
1787
1788 2010-09-08  Jim Meyering  <meyering@redhat.com>
1789
1790         test.sh: disqualify shells for which set -x corrupts stderr
1791         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1792         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1793         appear in stderr output.  For example, this command:
1794             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1795         prints "P=1" on those two systems:
1796
1797 2010-09-08  Bruno Haible  <bruno@clisp.org>
1798
1799         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1800         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1801         commands, because some shells ignore redirections when there is an
1802         error in the command lookup.
1803         Reported by Eric Blake.
1804
1805 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1806
1807         * lib/regex.h: Fix a mention of `regex_compile' (should be
1808         `re_compile_pattern').
1809         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1810         (re_set_registers): Correct name of parameter in comment.
1811
1812         * doc/regex.texi: Add documentation for missing syntax flags.
1813         Remove commented-out documentation of defunct syntax option
1814         RE_NO_EMPTY_ALTS.
1815         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1816         Add documentation of re_set_registers.
1817         Document trick to re-use a pattern buffer by setting fastmap manually.
1818         Update documentation of struct re_pattern_buffer per public members.
1819         Uncomment documentation of equivalence class operators and
1820         collating symbol operators, since they are now implemented,
1821         Explain leftmost-longest matching in relation to alternatives.
1822         Tidy documentation of substring matching.
1823         Remove POSIX documentation, which is done better in
1824         glibc, and refer the reader there. Keep BSD API documentation, as
1825         that is not readily available elsewhere.
1826
1827 2010-09-07  Eric Blake  <eblake@redhat.com>
1828
1829         getopt: handle POSIXLY_CORRECT set but not exported
1830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1831         export state of POSIXLY_CORRECT, due to bash set -o posix.
1832         Reported by Dustin J. Mitchell.
1833
1834 2010-09-05  Bruno Haible  <bruno@clisp.org>
1835
1836         gnulib-tool: Highlight the changed options.
1837         * gnulib-tool (func_usage): Display the --import, --add-import,
1838         --remove-import explanations in bold font.
1839
1840 2010-09-06  Karl Berry  <karl@gnu.org>
1841
1842         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1843
1844 2010-09-05  Bruno Haible  <bruno@clisp.org>
1845
1846         uniwidth/width: Update comment.
1847         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1848         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1849
1850 2010-09-05  Bruno Haible  <bruno@clisp.org>
1851
1852         isinf, isnan: Relax license.
1853         * modules/isinf (License): Change from GPL to LGPL, with consent from
1854         Ben Pfaff.
1855         * modules/isnan (License): Likewise.
1856         Requested by Ludovic Courtès.
1857
1858 2010-09-04  Bruno Haible  <bruno@clisp.org>
1859
1860         gnulib-tool: Help migration from --import to --add-import or --update.
1861         * gnulib-tool: Emit a verbose error message when --import is used
1862         without any module name.
1863
1864 2010-09-04  Bruno Haible  <bruno@clisp.org>
1865
1866         Update doc about gnulib-tool.
1867         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1868         'gnulib-tool --update' in more detail.
1869         Reported by Eric Blake.
1870
1871 2010-09-04  Bruno Haible  <bruno@clisp.org>
1872
1873         gnulib-tool: Change --import. New options --add/remove-import.
1874         * gnulib-tool: New options --add-import, --remove-import.
1875         (func_usage): Document them.
1876         (have_associative): Define always.
1877         (func_import): In import mode, don't merge the specified settings with
1878         the cached settings. Implement remove-import mode.
1879         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1880         Explain when to use them versus --import.
1881         (Simple update): Use --add-import instead of --import.
1882         * NEWS: Mention the change.
1883
1884 2010-09-04  Bruno Haible  <bruno@clisp.org>
1885
1886         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1887         separate gnulib.mk.
1888
1889 2010-09-04  Bruno Haible  <bruno@clisp.org>
1890
1891         gnulib-tool: Don't talk about CVS any more.
1892         * gnulib-tool (func_usage, func_import): Write "version control"
1893         instead of CVS.
1894
1895 2010-09-04  Jim Meyering  <meyering@redhat.com>
1896
1897         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1898         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1899         false positives (whose names may be ill-chosen) when searching
1900         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1901         would cause a false-positive.
1902
1903         avoid coreutils "make distcheck" failure
1904         Coreutils tests with an absolute build directory name that contains
1905         a space.  Not quoting this directory name caused a failure.
1906         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1907         * tests/test-vc-list-files-cvs.sh: Likewise.
1908
1909 2010-09-04  Bruno Haible  <bruno@clisp.org>
1910
1911         gnulib-tool: Avoid error when run in a package without Makefile.am.
1912         * gnulib-tool: When collecting the m4dirs in a package that does not
1913         have a Makefile.am, eliminate those directories that contain no
1914         gnulib-cache.m4. Fix expression that counts these directories.
1915
1916 2010-09-04  Bruno Haible  <bruno@clisp.org>
1917
1918         update-copyright test: Improve output when perl is missing or too old.
1919         * tests/test-update-copyright.sh: Move test of Perl version down after
1920         the test whether Perl exists. Provide an explanation relating Perl's
1921         error message to Automake's SKIP: message.
1922
1923 2010-09-04  Bruno Haible  <bruno@clisp.org>
1924
1925         Don't augment PATH in TESTS_ENVIRONMENT.
1926         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1927         set abs_aux_dir instead of augmenting PATH.
1928         * modules/vc-list-files-tests (Makefile.am): Likewise.
1929         * tests/test-update-copyright.sh: Augment PATH here.
1930         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1931         path_prepend_.
1932         * tests/test-vc-list-files-git.sh: Likewise.
1933
1934 2010-09-04  Jim Meyering  <meyering@redhat.com>
1935
1936         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
1937         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
1938
1939 2010-09-04  Bruno Haible  <bruno@clisp.org>
1940
1941         strdup: Fix compilation error in C++ mode.
1942         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
1943         the macro.
1944
1945 2010-09-04  Bruno Haible  <bruno@clisp.org>
1946
1947         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
1948         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
1949         macro into a function.
1950         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1951
1952 2010-09-04  Bruno Haible  <bruno@clisp.org>
1953
1954         Set PATH_SEPARATOR the same way autoconf does.
1955         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
1956         the value of PATH_SEPARATOR the same way autoconf-generated configure
1957         scripts do.
1958         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
1959         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1960
1961 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1962
1963         Set PATH_SEPARATOR the same way autoconf does.
1964         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
1965         the same way autoconf-generated configure scripts do.
1966         * posix-modules: Likewise.
1967
1968 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1969
1970         hash: fix safe_hasher const typo
1971         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
1972         const; otherwise, there is a type error later.
1973
1974 2010-09-02  Jim Meyering  <meyering@redhat.com>
1975
1976         test-update-copyright.sh: require perl 5.8.0
1977         * tests/test-update-copyright.sh: Require 5.8.0,
1978         which Tom G. Christensen has confirmed is adequate,
1979         while 5.6.1 is not.
1980
1981 2010-09-02  Eric Blake  <eblake@redhat.com>
1982
1983         tests: init.sh improvements for re-exec'ing with zsh
1984         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
1985         -vx through shell re-exec.
1986         Reported by Tom G. Christensen.
1987
1988         wctype: fix typo in previous commit
1989         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
1990         Reported by Ludovic Courtès.
1991
1992 2010-09-02  Jim Meyering  <meyering@redhat.com>
1993
1994         test-update-copyright.sh: skip test if Perl is too old
1995         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
1996         Reported by Tom G. Christensen.
1997
1998 2010-09-02  Bruno Haible  <bruno@clisp.org>
1999
2000         wctype: Avoid compilation error on IRIX 6.5.30.
2001         * lib/wctype.in.h (iswblank): Declare with a replacement if
2002         REPLACE_ISWBLANK is set.
2003         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2004         declared. Set REPLACE_ISWBLANK.
2005         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2006         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2007         * doc/posix-headers/wctype.texi: Likewise.
2008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2009
2010 2010-09-01  Bruno Haible  <bruno@clisp.org>
2011
2012         New module 'socketlib'.
2013         * modules/socketlib: New file.
2014         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2015         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2016         * modules/sockets (Depends-on): Add socketlib.
2017         Suggested by Sam Steingold <sds@gnu.org>.
2018
2019 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2020
2021         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2022
2023         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2024         when one needs search access to a directory but not read access.
2025         On systems where it is available, it works in some cases where
2026         O_RDONLY does not, namely on directories that are searchable but
2027         not readable, and which need only to be searchable.  If O_SEARCH
2028         is not available, fall back to the traditional method of using
2029         O_RDONLY.
2030
2031         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2032         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2033         when opening a directory that needs only to be searchable.
2034         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2035         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2036         * lib/openat-proc.c (openat_proc_name): Likewise.
2037         * lib/openat.c (openat_needs_fchdir): Likewise.
2038         * lib/save-cwd.c (save_cwd): Likewise.
2039         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2040
2041 2010-08-28  Bruno Haible  <bruno@clisp.org>
2042
2043         New module 'host-cpu-c-abi'.
2044         * modules/host-cpu-c-abi: New file.
2045         * m4/host-cpu-c-abi.m4: New file, based on part of
2046         clisp/src/m4/general.m4.
2047         Requested by Sam Steingold <sds@gnu.org>.
2048
2049 2010-08-31  Eric Blake  <eblake@redhat.com>
2050         and Jim Meyering  <meyering@redhat.com>
2051
2052         hash: factor, and guard against misbehaving hasher function
2053         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2054         of table->hasher's return value.  Also protect against a hash value
2055         so large that adding it to table->bucket results in a NULL pointer.
2056         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2057         Use it in place of open-coded check-and-abort.
2058
2059 2010-08-30  Bruno Haible  <bruno@clisp.org>
2060
2061         hash: silence spurious clang warning
2062         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2063         Reported by Eric Blake.
2064
2065 2010-08-30  Eric Blake  <eblake@redhat.com>
2066
2067         strstr, memmem, strcasestr: avoid leaked shell message
2068         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2069         FreeBSD.
2070         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2072
2073         tests: silence clang warning
2074         * tests/test-malloca.c (do_allocation): Avoid dead store.
2075
2076 2010-08-29  Bruno Haible  <bruno@clisp.org>
2077
2078         gettext: Fix recent mistake.
2079         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2080
2081 2010-08-29  Bruno Haible  <bruno@clisp.org>
2082
2083         selinux-h: Offer a --without-selinux option.
2084         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2085         --without-selinux was specified, skip all tests and define
2086         HAVE_SELINUX_SELINUX_H to 0.
2087         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2088         set LIB_SELINUX to empty.
2089         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2090         gl_LIBSELINUX. If --without-selinux was specified, replace
2091         selinux/context.h.
2092         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2093
2094 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2095             Bruno Haible  <bruno@clisp.org>
2096
2097         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2098         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2099         of HAVE_REALLOC.
2100         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2101         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2102         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2103         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2104
2105 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2106             Bruno Haible  <bruno@clisp.org>
2107
2108         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2109         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2110         HAVE_CALLOC.
2111         * lib/xmalloc.c: Update accordingly.
2112         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2113         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2114         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2115
2116 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2117             Bruno Haible  <bruno@clisp.org>
2118
2119         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2120         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2121         HAVE_MALLOC.
2122         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2123         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2124         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2125
2126 2010-08-29  Bruno Haible  <bruno@clisp.org>
2127
2128         Update modules list.
2129         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2130         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2131         (String handling <string.h>): Add astrxfrm.
2132         (File system functions): Add readlinkat.
2133
2134 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2135
2136         Tests for module 'realloc-gnu'.
2137         * modules/realloc-gnu-tests: New file.
2138         * tests/test-realloc-gnu.c: New file.
2139
2140         Tests for module 'calloc-gnu'.
2141         * modules/calloc-gnu-tests: New file.
2142         * tests/test-calloc-gnu.c: New file.
2143
2144         Tests for module 'malloc-gnu'.
2145         * modules/malloc-gnu-tests: New file.
2146         * tests/test-malloc-gnu.c: New file.
2147
2148 2010-08-28  Bruno Haible  <bruno@clisp.org>
2149
2150         Rename module 'realloc' -> 'realloc-gnu'.
2151         * modules/realloc-gnu: New file, copied from modules/realloc.
2152         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2153         obsolete.
2154         * modules/mgetgroups (Depends-on): Update.
2155         * doc/posix-functions/realloc.texi: Update.
2156         * NEWS: Mention the change.
2157
2158         Rename module 'calloc' -> 'calloc-gnu'.
2159         * modules/calloc-gnu: New file, copied from modules/calloc.
2160         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2161         obsolete.
2162         * doc/posix-functions/calloc.texi: Update.
2163         * NEWS: Mention the change.
2164
2165         Rename module 'malloc' -> 'malloc-gnu'.
2166         * modules/malloc-gnu: New file, copied from modules/malloc.
2167         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2168         obsolete.
2169         * modules/argp (Depends-on): Update.
2170         * modules/regex (Depends-on): Update.
2171         * doc/posix-functions/malloc.texi: Update.
2172         * NEWS: Mention the change.
2173
2174 2010-08-28  Eric Blake  <eblake@redhat.com>
2175
2176         pread, pwrite: add missing dependency
2177         * modules/pread (Depends-on): Add extensions.
2178         * modules/pwrite (Depends-on): Likewise.
2179
2180 2010-08-28  Bruno Haible  <bruno@clisp.org>
2181
2182         unistr/u*-strchr: Fix tests dependencies.
2183         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2184         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2185         Reported by Ian Beckwith <ianb@erislabs.net>.
2186
2187 2010-08-28  Bruno Haible  <bruno@clisp.org>
2188
2189         read-file: Don't occupy too much unused memory.
2190         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2191
2192 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2193             Eric Blake  <eblake@redhat.com>
2194             Bruno Haible  <bruno@clisp.org>
2195
2196         read-file: Avoid memory reallocations with regular files.
2197         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2198         (fread_file): With regular files, use the remaining length as the
2199         initial buffer size.  Check against overflow.
2200         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2201         sys_stat.
2202
2203 2010-08-28  Bruno Haible  <bruno@clisp.org>
2204
2205         ftello: Relax license.
2206         * modules/ftello (License): Relax to LGPLv2+.
2207         Reported by Eric Blake.
2208
2209 2010-08-28  Bruno Haible  <bruno@clisp.org>
2210
2211         Avoid relocwrapper link errors due to gnulib replacement functions.
2212         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2213         function.
2214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2215
2216 2010-08-28  Bruno Haible  <bruno@clisp.org>
2217
2218         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2219         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2220         defined.
2221         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2222         Suggested by Eric Blake.
2223
2224 2010-08-28  Bruno Haible  <bruno@clisp.org>
2225
2226         sys_socket, netdb: Ensure socklen_t gets defined.
2227         * modules/sys_socket (Depends-on): Add socklen.
2228         * modules/netdb (Depends-on): Likewise.
2229         * modules/getaddrinfo (Depends-on): Remove socklen.
2230         * modules/getsockopt (Depends-on): Likewise.
2231         * modules/setsockopt (Depends-on): Likewise.
2232         * tests/test-sys_socket.c: Check that socklen_t is defined.
2233         * tests/test-netdb.c: Likewise.
2234         * m4/socklen.m4: Update comments.
2235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2236
2237 2010-08-27  Eric Blake  <eblake@redhat.com>
2238
2239         login_tty: add missing dependency
2240         * modules/login_tty (Depends-on): Add pty.
2241
2242 2010-08-26  Eric Blake  <eblake@redhat.com>
2243
2244         lib-symbol-versions: fix m4 quoting
2245         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2246         format for AC_LINK_IFELSE.
2247
2248         glob: fix compile test
2249         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2250
2251         btowc: fix missing file
2252         * modules/btowc (Files): Also ship locale-fr.m4.
2253
2254         lseek: fix link test
2255         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2256         AC_LINK_IFELSE.
2257
2258         include_next: silence autoconf 2.68 warning
2259         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2260         AC_COMPILE_IFELSE as special.
2261         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2262         autoconf < 2.68.
2263
2264         acl: fix compilation test
2265         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2266         AC_COMPILE_IFELSE.
2267
2268 2010-08-26  Bruno Haible  <bruno@clisp.org>
2269
2270         Modernize AC_TRY_RUN invocations.
2271         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2272         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2273         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2274         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2275         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2276         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2279         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2280         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2282         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2283         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2284         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2285         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2286         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2287         gl_MBRLEN_NUL_RETVAL): Likewise.
2288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2289         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2290         Likewise.
2291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2292         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2293         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2294         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2295         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2296         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2297         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2298         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2299         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2300         Likewise.
2301         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2302         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2303         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2304         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2305         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2306         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2307         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2308         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2309         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2311
2312 2010-08-26  Bruno Haible  <bruno@clisp.org>
2313
2314         Modernize AC_TRY_LINK invocations.
2315         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2316         AC_TRY_LINK.
2317         * m4/argp.m4 (gl_ARGP): Likewise.
2318         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2319         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2320         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2321         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2322         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2323         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2324         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2325         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2326         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2327         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2328         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2329         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2330         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2331         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2332         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2333         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2334         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2335         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2336         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2337         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2338         Likewise.
2339         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2340         Likewise.
2341         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2342         Likewise.
2343         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2345         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2346         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2347         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2348         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2349         * m4/servent.m4 (gl_SERVENT): Likewise.
2350         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2351         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2352         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2353         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2354         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2355         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2356         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2358         * modules/tsearch-tests (configure.ac): Likewise.
2359
2360 2010-08-26  Bruno Haible  <bruno@clisp.org>
2361
2362         Modernize AC_TRY_COMPILE invocations.
2363         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2364         AC_TRY_COMPILE.
2365         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2366         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2367         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2368         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2369         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2370         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2371         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2372         * m4/lock.m4 (gl_LOCK): Likewise.
2373         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2374         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2375         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2376         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2377         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2378         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2379         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2381         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2382         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2383         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2384         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2385         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2386         extraneous semicolon.
2387
2388 2010-08-26  Jim Meyering  <meyering@redhat.com>
2389
2390         stat-time: relax license LGPL
2391         * modules/stat-time (License): Change from GPL to LGPL,
2392         with consent from all contributors, for use in libguile.
2393         Requested by Ludovic Courtès.
2394
2395 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2396
2397         poll: return immediately on POLLHUP.
2398         * lib/poll.c (poll): Always set timeout before wait_timeout is
2399         computed.
2400
2401 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2402
2403         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2404         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2405         rmdir ("dir/.//"), unlinkat.
2406
2407 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         stdbool: avoid spurious failure with modern xlc
2410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2411
2412 2010-08-24  Bruno Haible  <bruno@clisp.org>
2413
2414         getloadavg: simplify code
2415         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2416         gl_have_func. Update comments.
2417
2418 2010-08-24  Eric Blake  <eblake@redhat.com>
2419
2420         getloadavg: don't define SVR4 on cygwin
2421         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2422         only define SVR4 when -lkvm is required.
2423         Reported by Yaakov Selkowitz.
2424
2425 2010-08-24  Bruno Haible  <bruno@clisp.org>
2426
2427         priv-set: fix comment
2428         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2429
2430 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2431
2432         priv-set: fix comments
2433         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2434         to match code, as suggested by David Bartley in:
2435         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2436
2437 2010-08-23  Eric Blake  <eblake@redhat.com>
2438
2439         stdbool: avoid rejecting clang
2440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2441         * tests/test-stdbool.c: Enable more tests if using the system
2442         <stdbool.h> instead of the gnulib replacement.
2443         (main): Move xlc bug test to a runtime test for all compilers.
2444         Reported by Anders Kaseorg.
2445
2446         argz: fix shell quoting issue
2447         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2448         Reported by Charles Wilson.
2449
2450 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2451             Erik Faye-Lund <kusmabite@gmail.com>
2452
2453         poll, select: handle ERROR_BROKEN_PIPE.
2454         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2455         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2456         * lib/select.c (win32_compute_revents): Do not mark a pipe
2457         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2458
2459 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2460
2461         fts: allow compilation with C++
2462         * lib/fts_.h: Specify extern "C" linkage with C++.
2463
2464 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2465
2466         Fix gnulib-tool sed script de-commentation for AIX sed.
2467         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2468         sed.
2469
2470 2010-08-17  Eric Blake  <eblake@redhat.com>
2471
2472         test-stddef: test for (some) offsetof bugs
2473         * tests/test-stddef.c: Enhance test to ensure correct type of
2474         offsetof.
2475         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2476         that we are not fixing at this time.
2477
2478 2010-08-15  Bruno Haible  <bruno@clisp.org>
2479
2480         stpncpy: Allow stpncpy to be defined as a macro.
2481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2482         if it's already correctly declared.
2483         * lib/string.in.h (stpncpy): Undefine before redefining.
2484         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2485
2486 2010-08-14  Bruno Haible  <bruno@clisp.org>
2487
2488         Rename module 'memxfrm' to 'amemxfrm'.
2489         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2490         (amemxfrm): Renamed from memxfrm.
2491         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2492         (amemxfrm): Renamed from memxfrm.
2493         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2494         * NEWS: Mention the change.
2495         * MODULES.html.sh (String handling <string.h>): Update.
2496         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2497         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2498         * lib/unicase/u16-casexfrm.c: Likewise.
2499         * lib/unicase/u32-casexfrm.c: Likewise.
2500         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2501         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2502         * lib/uninorm/u16-normxfrm.c: Likewise.
2503         * lib/uninorm/u32-normxfrm.c: Likewise.
2504         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2505         memxfrm.
2506         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2507         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2508         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2509         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2510         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2511         Suggested by Paul Eggert.
2512
2513 2010-08-14  Bruno Haible  <bruno@clisp.org>
2514
2515         Tests for module 'astrxfrm'.
2516         * modules/astrxfrm-tests: New file.
2517         * tests/test-astrxfrm.c: New file.
2518
2519         New module 'astrxfrm'.
2520         * lib/astrxfrm.h: New file.
2521         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2522         * modules/astrxfrm: New file.
2523
2524 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2525
2526         regex: Tweak doc.
2527         * doc/regex.texi (Overview): Don't mention regex.c.
2528         (GNU Regular Expression Compiling): Likewise.
2529         (Match-end-of-line Operator): Mention 'not_eol'.
2530
2531 2010-08-14  Brian Gough  <bjg@gnu.org>
2532             Bruno Haible  <bruno@clisp.org>
2533
2534         git-merge-changelog: add doc relating to use with bzr and hg.
2535         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2536
2537 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2538
2539         pthread: fix pthread.h creation for srcdir != builddir
2540         * modules/pthread (Makefile.am): Fix the rule to work also in a
2541         non-srcdir build.
2542
2543 2010-08-13  Karl Berry  <karl@gnu.org>
2544
2545         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2546         * doc/posix-*/*: force line break before @url of POSIX
2547         specifications.
2548         Suggested by Werner Lemberg.
2549
2550 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2551
2552         strtod: fix const diagnostic
2553         * lib/strtod.c (strtod): Don't assign const char * to char *,
2554         as this elicits a warning from GCC when warnings are enabled.
2555
2556 2010-08-10  Pádraig Brady <P@draigbrady.com>
2557         and Eric Blake  <eblake@redhat.com>
2558
2559         copy-acl: ignore ENOTSUP on HP-UX
2560         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2561         so that it is available for HP-UX.
2562         * lib/copy-acl.c (qcopy_acl): Use it.
2563         Reported by Patrick M. Callahan.
2564
2565 2010-08-10  Eric Blake  <eblake@redhat.com>
2566
2567         open, chown: relax license
2568         * modules/open (License): Change to LGPLv2+, with consent by all
2569         authors, for use in augeas.
2570         * modules/chown (License): Likewise.
2571         * modules/lchown (Likewise): Likewise.
2572         Requested by Adam Stokes.
2573
2574 2010-08-09  Karl Berry  <karl@gnu.org>
2575
2576         * build-aux/ar-lib: new file, import from Automake.
2577         * config/srclist.txt: autocheck for updates.
2578
2579 2010-08-09  Eric Blake  <eblake@redhat.com>
2580
2581         readlinkat: adjust client modules
2582         * modules/areadlinkat (Depends-on): Use readlinkat, not
2583         symlinkat.
2584         * modules/areadlinkat-with-size (Depends-on): Likewise.
2585
2586         mknod: be more vocal about danger of running tests as root
2587         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2588         root, since that is just asking for problems.
2589         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2590
2591         readlinkat: split into its own module
2592         * modules/symlinkat: Split readlinkat...
2593         * modules/readlinkat: ...into separate module.
2594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2595         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2596         * lib/symlinkat.c (readlinkat): Move...
2597         * lib/readlinkat.c: ...into new file.
2598         * modules/symlinkat-tests: Split readlinkat test...
2599         * modules/readlinkat-tests: ...into separate module.
2600         * tests/test-symlinkat.c: Split...
2601         * tests/test-readlinkat.c: ...into new file.
2602         * NEWS: Document the split.
2603         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2604         * lib/unistd.in.h (readlinkat): Likewise.
2605         Suggested by Bruno Haible.
2606
2607 2010-08-08  Bruno Haible  <bruno@clisp.org>
2608
2609         memxfrm: Speed up.
2610         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2611         that usually only one call to strxfrm is necessary for each string
2612         part.
2613         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2614
2615 2010-08-07  Karl Berry  <karl@gnu.org>
2616
2617         * doc/posix-headers/limits.texi,
2618         * doc/posix-functions/malloc.texi,
2619         * doc/posix-functions/strsignal.texi: missing @item.
2620         * doc/ld-version-script.texi: spurious leading i.
2621         * doc/regex.texi (Interval Operators): no commas inside @var.
2622
2623 2010-08-01  Bruno Haible  <bruno@clisp.org>
2624
2625         Integrate the regex documentation.
2626         * doc/gnulib.texi: Define 'cn' index.
2627         (Regular expressions): New a chapter that includes regex.texi and
2628         regexprops-generic.texi.
2629         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2630         syntax.
2631
2632         Whitespace cleanup.
2633         * doc/regex.texi: Remove trailing spaces.
2634
2635         Add regex documentation.
2636         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2637         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2638         Written by Kathy A. Hargreaves and Karl Berry.
2639
2640 2010-08-01  Bruno Haible  <bruno@clisp.org>
2641
2642         link: Update documentation.
2643         * doc/posix-functions/link.texi: Update regarding Solaris.
2644
2645 2010-07-31  Bruno Haible  <bruno@clisp.org>
2646
2647         Update modules list.
2648         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2649         (String handling <string.h>): Add memcmp2, memxfrm.
2650         (Container data structures): Add xlist, xsublist, xoset.
2651         (Core language properties): Add alignof, unused-parameter.
2652         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2653         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2654         (Unibyte characters <ctype.h>): New section.
2655         (String handling <string.h>): New section.
2656         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2657         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2658         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2659         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2660         tan, tanh, tanl, y0, y1, yn.
2661         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2662         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2663         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2664         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2665         unlockpt, vdprintf, vdprintf-posix.
2666         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2667         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2668         xconcat-filename.
2669         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2670         getdtablesize, pipe2, pipe2-safer.
2671         (Security): New section.
2672         (Networking functions): Add accept4.
2673         (Signal handling): Add sigpipe.
2674         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2675         mbmemcasecoll.
2676         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2677         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2678         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2679         pipe-filter-ii.
2680         (Misc): Add argp-version-etc, login_tty, parse-duration.
2681
2682 2010-07-31  Bruno Haible  <bruno@clisp.org>
2683
2684         Improve doc in MODULES.html.
2685         * modules/linkat (Description): Add the word "function".
2686         * modules/mkfifo (Description): Likewise.
2687         * modules/mknod (Description): Likewise.
2688         * modules/remove (Description): Likewise.
2689         * modules/renameat (Description): Likewise.
2690         * modules/stat (Description): Likewise.
2691         * modules/symlink (Description): Likewise.
2692         * modules/unlink (Description): Likewise.
2693
2694 2010-07-31  Bruno Haible  <bruno@clisp.org>
2695
2696         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2697         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2698         option --enable/disable-c++ instead of --enable/disable-cxx.
2699         * NEWS: Mention the change.
2700
2701 2010-07-31  Bruno Haible  <bruno@clisp.org>
2702
2703         readlink, areadlink: Relax test a bit.
2704         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2705         alternative to ENOTDIR.
2706         * tests/test-areadlink.h (test_areadlink): Likewise.
2707         Reported by Rainer Tammer.
2708
2709 2010-07-31  Bruno Haible  <bruno@clisp.org>
2710
2711         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2712         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2713         character, perform the search using U_STRCHR.
2714         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2715         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2716         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2717         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2718         Suggested by Paolo Bonzini.
2719
2720 2010-07-31  Bruno Haible  <bruno@clisp.org>
2721
2722         unistr/u*-strstr: Fix dependencies.
2723         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2724         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2725         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2726
2727 2010-07-31  Bruno Haible  <bruno@clisp.org>
2728
2729         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2730         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2731         the beginning of the loop.
2732         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2733         cases in 'switch' statement.
2734
2735         unistr/u8-strchr: Fix several bugs.
2736         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2737         the string. When not found, return NULL, not a pointer near the end.
2738
2739         More tests for unistr/u8-strchr.
2740         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2741         that the function does not read past the first occurrence of the byte
2742         being searched.
2743         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2744         * tests/unistr/test-u16-strchr.c (main): New function.
2745         * tests/unistr/test-u32-strchr.c (main): New function.
2746
2747 2010-07-31  Bruno Haible  <bruno@clisp.org>
2748
2749         posix-modules: Ignore backup files of documentation files.
2750         * posix-modules: grep only through files named *.texi.
2751
2752 2010-07-31  Bruno Haible  <bruno@clisp.org>
2753
2754         symlinkat: Fix documentation.
2755         * doc/posix-functions/readlinkat.texi: Fix module name.
2756
2757 2010-07-31  Bruno Haible  <bruno@clisp.org>
2758
2759         fchownat: Replace also when chown has the trailing slash bug.
2760         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2761         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2762         introduced on 2010-04-10.
2763         Reported by Rainer Tammer.
2764
2765 2010-07-31  Bruno Haible  <bruno@clisp.org>
2766
2767         linkat: Work around AIX 7.1 bug.
2768         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2769         whether linkat handles trailing slash correctly. If not, replace linkat
2770         and define LINKAT_TRAILING_SLASH_BUG.
2771         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2772         check whether (fd1,file1) points to a directory if file1 or file2 ends
2773         in a slash. Code taken from lib/link.c.
2774         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2775         Reported by Rainer Tammer.
2776
2777 2010-07-31  Bruno Haible  <bruno@clisp.org>
2778
2779         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2780         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2781         This disables an xlc optimization that was causing wrong test results.
2782         Reported by Rainer Tammer.
2783
2784 2010-07-31  Bruno Haible  <bruno@clisp.org>
2785
2786         iconv: Work around AIX 6.1..7.1 bug.
2787         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2788         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2789         cross-compiling, guess no on all versions of AIX.
2790         Reported by Rainer Tammer.
2791
2792 2010-07-31  Bruno Haible  <bruno@clisp.org>
2793
2794         readlink: Relax test a bit.
2795         * tests/test-readlink.h (test_readlink): Allow different errno value
2796         when readlink is called with a file name that ends in / and refers to
2797         a file.
2798         Suggested by Eric Blake.
2799         Reported by Rainer Tammer.
2800
2801 2010-07-31  Bruno Haible  <bruno@clisp.org>
2802
2803         copysign: Does not require -lm on glibc systems.
2804         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2805         gl_COMMON_DOUBLE_MATHFUNC.
2806         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2807
2808 2010-07-31  Bruno Haible  <bruno@clisp.org>
2809
2810         duplocale: Work around AIX 7.1 bug.
2811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2812         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2813         * lib/duplocale.c (rpl_duplocale): Update comment.
2814         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2815         Reported by Rainer Tammer.
2816
2817 2010-07-30  Bruno Haible  <bruno@clisp.org>
2818
2819         dirfd: Avoid link error on AIX 7.1.
2820         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2821         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2822         exist, set REPLACE_DIRFD.
2823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2824         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2825         * doc/posix-functions/dirfd.texi: Update.
2826         Reported by Rainer Tammer.
2827
2828 2010-07-30  Eric Blake  <eblake@redhat.com>
2829
2830         strtod: next round of AIX fixes
2831         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2832         exponent.
2833         * tests/test-strtod.c (main): Enhance tests.
2834         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2835         Reported by Rainer Tammer.
2836
2837         futimens: fix configure check
2838         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2839         Reported by Bruno Haible.
2840
2841 2010-07-30  Bruno Haible  <bruno@clisp.org>
2842
2843         getline: Update regarding AIX.
2844         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2845         Reported by Rainer Tammer.
2846
2847 2010-07-30  Bruno Haible  <bruno@clisp.org>
2848
2849         wcwidth: Drop replacement on AIX 7.
2850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2851         AIX 7.
2852         Reported by Rainer Tammer.
2853
2854 2010-07-30  Bruno Haible  <bruno@clisp.org>
2855
2856         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2858         a 'char *'.
2859         Reported by Rainer Tammer.
2860
2861 2010-07-30  Bruno Haible  <bruno@clisp.org>
2862
2863         unlink: Update regarding AIX.
2864         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2865         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2866         Reported by Rainer Tammer.
2867
2868 2010-07-30  Bruno Haible  <bruno@clisp.org>
2869
2870         symlink: Update regarding AIX.
2871         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2872         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2873         Reported by Rainer Tammer.
2874
2875 2010-07-30  Bruno Haible  <bruno@clisp.org>
2876
2877         strndup: Update regarding AIX.
2878         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2879         AIX 7.
2880         Reported by Rainer Tammer.
2881
2882 2010-07-30  Bruno Haible  <bruno@clisp.org>
2883
2884         stat: Update regarding AIX.
2885         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2886         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2887         Reported by Rainer Tammer.
2888
2889 2010-07-30  Bruno Haible  <bruno@clisp.org>
2890
2891         truncl: Fix autoconf test.
2892         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2893         whether truncl works.
2894         Reported by Rainer Tammer.
2895
2896 2010-07-30  Bruno Haible  <bruno@clisp.org>
2897
2898         round: Update regarding AIX.
2899         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2900         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2901         Reported by Rainer Tammer.
2902
2903 2010-07-30  Bruno Haible  <bruno@clisp.org>
2904
2905         rename: Update regarding AIX.
2906         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2907         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2908         Reported by Rainer Tammer.
2909
2910 2010-07-30  Bruno Haible  <bruno@clisp.org>
2911
2912         printf.m4: Update regarding AIX.
2913         * m4/printf.m4: Update comments regarding AIX.
2914         Reported by Rainer Tammer.
2915
2916 2010-07-30  Bruno Haible  <bruno@clisp.org>
2917
2918         iconv: Update regarding AIX.
2919         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2920         AIX 7.
2921         Reported by Rainer Tammer.
2922
2923 2010-07-30  Bruno Haible  <bruno@clisp.org>
2924
2925         getopt: Update regarding AIX.
2926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2927         no on AIX.
2928         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2929         Reported by Rainer Tammer.
2930
2931 2010-07-30  Bruno Haible  <bruno@clisp.org>
2932
2933         ldexpl; Update regarding AIX.
2934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2935         on AIX 7.
2936         Reported by Rainer Tammer.
2937
2938 2010-07-30  Bruno Haible  <bruno@clisp.org>
2939
2940         frexpl: Update regarding AIX.
2941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
2942         on AIX 7.
2943         Reported by Rainer Tammer.
2944
2945 2010-07-30  Bruno Haible  <bruno@clisp.org>
2946
2947         open, fopen: Update regarding AIX.
2948         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
2949         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2950         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
2951         * doc/posix-functions/fopen.texi: Likewise.
2952         Reported by Rainer Tammer.
2953
2954 2010-07-30  Bruno Haible  <bruno@clisp.org>
2955
2956         chown: Update doc regarding AIX.
2957         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
2958         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
2959         Reported by Rainer Tammer.
2960
2961 2010-07-30  Eric Blake  <eblake@redhat.com>
2962
2963         strtod: fix bug in replacement function on AIX
2964         * lib/strtod.c (strtod): Special case broken "0x" parse in
2965         underlying strtod.
2966         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
2967         * doc/posix-functions/strtod.texi (strtod): Likewise.
2968         Reported by Rainer Tammer.
2969
2970 2010-07-30  Bruno Haible  <bruno@clisp.org>
2971
2972         mbrlen: Fix cross-compilation guess for AIX.
2973         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
2974         guess. Leftover from 2008-12-22.
2975
2976 2010-07-30  Bruno Haible  <bruno@clisp.org>
2977
2978         mbrtowc: Fix cross-compilation guess for AIX.
2979         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
2980         guess. Leftover from 2008-12-21.
2981
2982 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2983
2984         init.sh: work around trap limitation of some shells
2985         * tests/init.sh (setup_): Move exit trap outside of shell function.
2986
2987 2010-07-29  Eric Blake  <eblake@redhat.com>
2988
2989         strtod: aid debugging
2990         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
2991         understanding why strtod is rejected.
2992
2993 2010-07-28  Bruno Haible  <bruno@clisp.org>
2994
2995         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
2996         * lib/unistr/u8-chr.c: Include <string.h>.
2997         * tests/unistr/test-u8-chr.c: Likewise.
2998         * tests/unistr/test-u16-chr.c: Likewise.
2999         * tests/unistr/test-u32-chr.c: Likewise.
3000         * tests/unistr/test-u8-strchr.c: Likewise.
3001         * tests/unistr/test-u16-strchr.c: Likewise.
3002         * tests/unistr/test-u32-strchr.c: Likewise.
3003         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3004         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3005         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3006         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3007
3008 2010-07-28  Bruno Haible  <bruno@clisp.org>
3009
3010         Use spaces for indentation, not tabs.
3011         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3012
3013 2010-07-27  Bruno Haible  <bruno@clisp.org>
3014
3015         mbspcasecmp: Fix function specification.
3016         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3017         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3018         Reported by Eric Blake <eblake@redhat.com>.
3019
3020 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3021
3022         timespec: use cast and not conditional, as truncation isn't possible
3023         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3024         instead of a conditional.  Comment about the situation in more detail.
3025         This undoes most of the 2009-10-29 patch.
3026
3027 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3028
3029         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3030         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3031         * lib/unistr/u8-strchr.c: Likewise.
3032         * modules/unistr/u8-chr: Depend on memchr.
3033
3034         unistr/u*-strchr: add tests
3035         * modules/unistr/u8-strchr-tests: New file.
3036         * modules/unistr/u16-strchr-tests: New file.
3037         * modules/unistr/u32-strchr-tests: New file.
3038         * tests/unistr/test-strchr.h: New file.
3039         * tests/unistr/test-u8-strchr.c: New file.
3040         * tests/unistr/test-u16-strchr.c: New file.
3041         * tests/unistr/test-u32-strchr.c: New file.
3042
3043         unistr/u*-chr: test multibyte sequences more
3044         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3045         test vector.
3046         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3047         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3048         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3049
3050         unistr/u*-chr: test multibyte sequences
3051         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3052
3053         unistr/u*-chr: prepare for multibyte tests
3054         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3055         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3056         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3057         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3058         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3059         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3060
3061 2010-07-18  Bruno Haible  <bruno@clisp.org>
3062
3063         unistr/u8-strchr: Optimize non-ASCII argument case.
3064         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3065         because the first byte often matches anyway.
3066         Reported by Pádraig Brady <P@draigbrady.com>.
3067
3068 2010-07-15  Karl Berry  <karl@gnu.org>
3069
3070         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3071
3072 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3073
3074         getcwd: on Solaris, work better if ancestors are inaccessible
3075         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3076         buffer and size, try again with a large buffer.  This works better
3077         on Solaris, since its getcwd succeeds even if the path to the root
3078         is inaccessible, and this is helpful in common cases such as .zfs
3079         hidden directories.  Problem reported by J Chapman Flack in
3080         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3081         Use system getcwd if it's declared, not merely if it's partly
3082         working; use the partly-working test only to avoid needless effort
3083         if the system getcwd fails.
3084         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3085         comment that was already obsolete and is now even more obsolete.
3086         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3087         now might call strdup.
3088
3089 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3090
3091         pthread: Add enough so that coreutils/src/sort.c compiles.
3092         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3093         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3094         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3095         Include <sys/types.h>, in case it defines pthread_t.
3096         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3097         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3098         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3099         (pthread_rwlockattr_t, pthread_spinlock_t):
3100         New typedefs, if HAVE_PTHREAD_T is not defined.
3101         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3102         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3103         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3104         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3105         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3106         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3107         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3108         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3109         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3110         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3111         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3112         New macros.
3113         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3114         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3115         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3116         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3117         (pthread_spin_unlock): New dummy functions.
3118         (pthread_create): Return EAGAIN; don't set errno.
3119         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3120         require AC_C_INLINE.
3121         * modules/pthread (Depends-on): Add sched, time.
3122         (pthread.h): Use AM_V_GEN.
3123
3124 2010-07-13  Bruno Haible  <bruno@clisp.org>
3125
3126         striconveh: Don't malloc memory if the result buffer is sufficient.
3127         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3128         buffer if its size is sufficient.
3129         Reported by Ludovic Courtès <ludo@gnu.org>.
3130
3131 2010-07-13  Bruno Haible  <bruno@clisp.org>
3132
3133         strtod: Add safety check.
3134         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3135
3136 2010-07-12  Bruno Haible  <bruno@clisp.org>
3137
3138         Unify tests that set gl_cv_func_ldexpl_no_libm.
3139         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3140         gl_FUNC_LDEXPL.
3141         (gl_FUNC_LDEXPL): Invoke it.
3142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3143
3144 2010-07-12  Bruno Haible  <bruno@clisp.org>
3145
3146         Unify tests that set gl_cv_func_ldexp_no_libm.
3147         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3148         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3149         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3150         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3151         * modules/strtod (Files): Add m4/ldexp.m4.
3152
3153 2010-07-12  Bruno Haible  <bruno@clisp.org>
3154
3155         Unify tests that set gl_cv_func_frexpl_no_libm.
3156         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3157         gl_FUNC_FREXPL_NO_LIBM.
3158         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3159         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3160
3161 2010-07-12  Bruno Haible  <bruno@clisp.org>
3162
3163         Unify tests that set gl_cv_func_frexp_no_libm.
3164         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3165         gl_FUNC_FREXP_NO_LIBM.
3166         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3167         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3168
3169 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3170
3171         memcoll: clarify sizes versus lengths, document better, and tweak perf
3172         * lib/memcoll.c (strcoll_loop, memcoll0):
3173         Improve quality of descriptive comments.  Name variables
3174         consistently as to whether they are lengths (which do not include
3175         terminating null) versus sizes (which do).
3176         * lib/xmemcoll.c (xmemcoll0): Likewise.
3177         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3178         returned when s1size == 0; this is easier to compile and saves
3179         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3180
3181 2010-07-12  Bruno Haible  <bruno@clisp.org>
3182
3183         Tests for module '_Exit'.
3184         * modules/_Exit-tests: New file.
3185         * tests/test-_Exit.sh: New file.
3186         * tests/test-_Exit.c: New file.
3187
3188         New module '_Exit'.
3189         * lib/stdlib.in.h (__attribute__): New macro.
3190         (_Exit): New declaration.
3191         * lib/_Exit.c: New file.
3192         * m4/_Exit.m4: New file.
3193         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3194         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3195         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3196         * modules/_Exit: New file.
3197         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3198         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3199
3200 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3201
3202         strtod: make it more-accurate typically, and don't require libm
3203         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3204         Include limits.h.  Don't include string.h.
3205         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3206         (locale_isspace): New function, so that no casts are needed to
3207         check whether *s is a space.
3208         (ldexp): Provide an unused dummy if not available.
3209         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3210         (strtod): Use them.  This implementation prefers to use the
3211         underlying strtod if available, falling back on our own code
3212         only to fix known bugs.  This is more likely to produce an
3213         accurate result.  Also, it avoids the use of libm functions.
3214         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3215         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3216         was absent, but it caused a test failure with coreutils.
3217         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3218         with libm.
3219         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3220         * modules/strtod-tests (Makefile.am): Likewise.
3221
3222 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3223             Bruno Haible  <bruno@clisp.org>
3224
3225         unistr/u8-strchr: Optimize ASCII argument case.
3226         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3227
3228 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3229
3230         (x)memcoll: minor tweaks
3231         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3232         is after the type that it qualifies.
3233         (memcoll0): Likewise.
3234         * lib/memcoll.h (memcoll0): Likewise.
3235         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3236         * lib/xmemcoll.h (xmemcoll0): Likewise.
3237         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3238         differs from memcoll in that the NUL byte is part of the argument.
3239         Omit the abort-checks, as performance is a real issue here.  Plus,
3240         the checks were wrong anyway (an off-by-one error).  Omit local
3241         variable 'diff', as it's a bit clearer that way.
3242         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3243         no longer needed.
3244
3245 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3246
3247         (x)memcoll: speedup when input is known to be NUL delimited
3248         * lib/memcoll.c: Include stdlib.
3249         (memcoll0) New function.
3250         (strcoll_loop) New function, refactored for use in both memcoll
3251         and memcoll0.
3252         * lib/memcoll.h: Add prototype for memcoll0.
3253         * lib/xmemcoll.c: (xmemcoll0) New function.
3254         (collate_error) New function, refactored for use in both xmemcoll
3255         and xmemcoll0.
3256         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3257         * m4/memcoll.m4: add inline invocation.
3258
3259 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3260
3261         * build-aux/bootstrap: Remove any local translations
3262         from the translation project synchronization directory,
3263         so that local only translations are not distributed.
3264
3265 2010-07-04  Bruno Haible  <bruno@clisp.org>
3266
3267         fsusage: Clarify which code applies to which platforms.
3268         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3269         platform.
3270         * lib/fsusage.c (get_fs_usage): Likewise.
3271
3272 2010-07-04  Bruno Haible  <bruno@clisp.org>
3273
3274         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3275         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3276         Reported by Martin Lambers <marlam@marlam.de>.
3277
3278 2010-07-04  Jim Meyering  <meyering@redhat.com>
3279
3280         hash: once again explicitly disallow insertion of NULL
3281         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3282         inserting a NULL pointer cannot work with these functions.
3283         Add a comment with details.
3284         This reverts part of the 2010-07-01 commit, 5bef1a35
3285         "hash: extend module to deal with non-pointer keys".
3286
3287 2010-07-01  Bruno Haible  <bruno@clisp.org>
3288
3289         stdbool: Update doc.
3290         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3291         Info from Christian Weisgerber <naddy@mips.inka.de>.
3292
3293 2010-07-01  Jim Meyering  <meyering@redhat.com>
3294
3295         hash: extend module to deal with non-pointer keys
3296         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3297         but that allows insertion of non-pointer entries.
3298         Do not disallow an ENTRY value of NULL.
3299         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3300         * lib/hash.h (hash_insert0): Declare.
3301
3302 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3303
3304         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3305         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3306         not present (i.e. with autoconf 2.59 and when using gettextize, not
3307         gnulib), require AC_GNU_SOURCE instead.
3308
3309 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3310
3311         idpriv-drop: Fix tests.
3312         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3313         not to the test-idpriv-droptemp program.
3314
3315 2010-06-29  Bruno Haible  <bruno@clisp.org>
3316
3317         string: Fix syntax error with g++ 2.96.
3318         * lib/string.in.h (__pure__): Remove definition.
3319         (_GL_ATTRIBUTE_PURE): New macro.
3320         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3321         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3322         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3323
3324 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3325
3326         unitypes: Fix bug introduced on 2010-05-18.
3327         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3328
3329 2010-06-22  Eric Blake  <eblake@redhat.com>
3330
3331         memmem: slight optimization
3332         * lib/str-two-way.h (critical_factorization): Update comments.
3333         Reduce work during factorization phase.
3334         Reported by Carlos Bueno <carlos@bueno.org>.
3335
3336 2010-06-21  Bruno Haible  <bruno@clisp.org>
3337
3338         Fix HAVE_CALLOC_POSIX misnomer.
3339         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3340         !HAVE_CALLOC_POSIX.
3341         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3342         HAVE_CALLOC_POSIX.
3343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3344         instead of HAVE_CALLOC_POSIX.
3345         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3346         HAVE_CALLOC_POSIX.
3347
3348         Use modern idiom for calloc() replacement.
3349         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3350         AC_FUNC_CALLOC.
3351         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3352         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3353         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3354         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3355         (gl_REPLACE_CALLOC): New macro.
3356
3357 2010-06-21  Bruno Haible  <bruno@clisp.org>
3358
3359         Fix HAVE_REALLOC_POSIX misnomer.
3360         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3361         !HAVE_REALLOC_POSIX.
3362         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3363         HAVE_REALLOC_POSIX.
3364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3365         instead of HAVE_REALLOC_POSIX.
3366         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3367         HAVE_REALLOC_POSIX.
3368
3369         Use modern idiom for realloc() replacement.
3370         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3371         AC_FUNC_REALLOC.
3372         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3373         Autoconf's AC_FUNC_REALLOC.
3374         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3375         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3376         (gl_REPLACE_REALLOC): New macro.
3377         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3378
3379 2010-06-21  Bruno Haible  <bruno@clisp.org>
3380
3381         Fix HAVE_MALLOC_POSIX misnomer.
3382         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3383         !HAVE_MALLOC_POSIX.
3384         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3385         HAVE_MALLOC_POSIX.
3386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3387         instead of HAVE_MALLOC_POSIX.
3388         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3389         HAVE_MALLOC_POSIX.
3390
3391         Use modern idiom for malloc() replacement.
3392         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3393         AC_FUNC_MALLOC.
3394         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3395         Autoconf's AC_FUNC_MALLOC.
3396         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3397         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3398         (gl_REPLACE_MALLOC): New macro.
3399         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3400
3401 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3402
3403         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3404         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3405         This macro takes 3 arguments, not 4.
3406
3407 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3408
3409         ipv6: fix detection under mingw
3410         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3411         in6_addr.
3412
3413 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3414
3415         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3416         that strtod() works when cross-compiling to a glibc version known
3417         to work.
3418
3419 2010-06-15  Bruno Haible  <bruno@clisp.org>
3420
3421         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3422
3423 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3424
3425         select: Correct timeout.
3426         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3427
3428 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3429
3430         git-version-gen: init shell var to avoid env var influence
3431         * build-aux/git-version-gen (v): Init shell var to empty.
3432
3433 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3434
3435         priv-set: Don't assume that priv.h exists merely because getppriv does.
3436         See Jan Andersen's bug report about AIX 5L in
3437         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3438         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3439         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3440         * lib/priv-set.h: Likewise.
3441         * tests/test-priv-set.c: Likewise.
3442
3443 2010-06-13  Bruno Haible  <bruno@clisp.org>
3444
3445         relocatable: Make it easier to test whether to install wrappers.
3446         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3447         RELOCATABLE_VIA_WRAPPER.
3448
3449 2010-06-13  Bruno Haible  <bruno@clisp.org>
3450
3451         gnulib-tool: Display specified modules and dependencies differently.
3452         * gnulib-tool (func_show_module_list): New function.
3453         (func_import, func_create_testdir): Invoke it.
3454         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3455
3456 2010-06-13  Bruno Haible  <bruno@clisp.org>
3457
3458         gnulib-tool: Align code of func_import and func_create_testdir.
3459         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3460         specified_modules.
3461
3462 2010-06-12  Jim Meyering  <meyering@redhat.com>
3463
3464         test-inttostr: avoid spurious failure on Solaris 9
3465         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3466         to accept "%ju".  Reported by Bruno Haible.
3467
3468 2010-06-11  Jim Meyering  <meyering@redhat.com>
3469
3470         test-sys_socket: mark variables as used more readably
3471         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3472         as "used" explicitly via (void) statement casts.  This is more
3473         readable than using them in an artificial return expression.
3474         Suggestion from Bruno Haible.
3475
3476 2010-06-11  Bruno Haible  <bruno@clisp.org>
3477
3478         Avoid some more warnings from "gcc -Wwrite-strings".
3479         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3480         to 'const char *'.
3481         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3482         * tests/test-c-strcasestr.c (main): Likewise.
3483         * tests/test-mbscasestr1.c (main): Likewise.
3484         * tests/test-mbscasestr2.c (main): Likewise.
3485         * tests/test-memmem.c (main): Likewise.
3486         * tests/test-strstr.c (main): Likewise.
3487         * tests/test-strcasestr.c (main): Likewise.
3488
3489 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3490
3491         init.sh: change framework_failure_ to fail with status 99, not 1
3492         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3493         automake's parallel-tests rule that this is an unexpected failure,
3494         even if the test is listed in XFAIL_TESTS.
3495
3496 2010-06-11  Jim Meyering  <meyering@redhat.com>
3497
3498         test-inttostr: avoid warnings about 4-6KB literal strings
3499         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3500         Include "macros.h", for its definition of ASSERT.
3501         (CK): s/assert/ASSERT/
3502         * modules/inttostr-tests (Files): Add macros.h.
3503
3504         init.sh: don't use $ME_ or skip_ before they are defined
3505         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3506         their first uses.  Also hoist their companions: warn_, fail_,
3507         framework_failure_, $stderr_fileno.  Prompted by a patch from
3508         Stefano Lattarini.
3509
3510         test-sys_socket: avoid set-but-not-used warnings from gcc
3511         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3512         avoid warning about set-but-not-used variables.
3513
3514         test-xvasprintf: avoid 'const' discard warnings
3515         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3516         "const" when assigning from literal strings.
3517         (test_xasprintf): Add "void" in function argument list to placate
3518         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3519
3520         tests: avoid compilation warnings in argmatch and exclude tests...
3521         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3522         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3523         Since it always exits, declare with the "noreturn" attribute.
3524         * tests/test-argmatch.c: Likewise.
3525
3526         tests: avoid 'const' discard warnings in mbsstr tests
3527         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3528         * tests/test-mbsstr2.c (main): Likewise.
3529
3530         test-verify: avoid warning from gcc's -Wmissing-declarations
3531         * tests/test-verify.c (function): Declare to be static.
3532
3533         test-inttostr.c: include <string.h> for use of strcmp
3534         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3535
3536         test-linkat: avoid failed assertion on "other" architectures
3537         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3538         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3539         sparc: https://bugs.launchpad.net/bugs/591968
3540
3541 2010-06-11  Jim Meyering  <meyering@redhat.com>
3542
3543         printf.m4: avoid autoconf's "Expanded Before Required" warning
3544         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3545         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3546         autoconf warning.
3547
3548 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3549
3550         Replacement header templates are now named with ".in", not "_".
3551         * doc/gnulib-intro.texi: Correct.
3552
3553 2010-06-10  Jim Meyering  <meyering@redhat.com>
3554
3555         inttostr-tests: depend on snprintf, not snprintf-posix
3556         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3557         snprintf-posix, to avoid this aclocal failure:
3558           missing file gnulib-tests/vasnprintf.c
3559           configure.ac:45: error: expected source file, required through \
3560           AC_LIBSOURCES, not found
3561
3562 2010-06-10  Jim Meyering  <meyering@redhat.com>
3563
3564         inttostr: add a new function, inttostr, and tests
3565         The namesake function was not available.  The existence of the
3566         template file, inttostr.c makes its addition nontrivial.
3567         * lib/anytostr.c: Rename from inttostr.c.
3568         (anytostr): Rename from inttostr.
3569         * lib/inttostr.c: New file.
3570         * modules/inttostr (Files): Add anytostr.c.
3571         (Makefile.am): Set lib_SOURCES instead of ...
3572         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3573         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3574         * lib/offtostr.c: Likewise.
3575         * lib/uinttostr.c: Likewise.
3576         * lib/umaxtostr.c: Likewise.
3577         * modules/inttostr-tests: New file.
3578         * tests/test-inttostr.c: New file.  Test these functions.
3579
3580 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3581             Bruno Haible  <bruno@clisp.org>
3582
3583         Add "Extending Gnulib" chapter to manual.
3584         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3585         chapter.
3586         (Extending Gnulib): New chapter.
3587         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3588         chapter.
3589
3590 2010-06-09  Bruno Haible  <bruno@clisp.org>
3591
3592         Avoid relocwrapper link errors due to gnulib replacement functions.
3593         * lib/areadlink.c: Use the system's malloc, realloc functions.
3594         (areadlink): Set errno to ENOMEM explicitly.
3595         * modules/areadlink (Depends-on): Remove malloc-posix.
3596         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3597
3598 2010-06-09  Bruno Haible  <bruno@clisp.org>
3599
3600         Avoid relocwrapper link errors due to gnulib replacement functions.
3601         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3602         * lib/malloca.c: Likewise.
3603         * lib/relocatable.c: Likewise.
3604         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3605         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3606         * lib/setenv.c: Use the system's malloc, realloc functions.
3607         * lib/strerror.c: Use the system's sprintf function.
3608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3609
3610 2010-06-04  Bruno Haible  <bruno@clisp.org>
3611
3612         Prefer documented low-level autoconf macro names.
3613         * m4/lib-link.m4: Use m4_translit instead of translit.
3614         * m4/environ.m4: Likewise.
3615         * m4/mathfunc.m4: Likewise.
3616         * m4/onceonly.m4: Likewise.
3617         * m4/stdint.m4: Likewise.
3618         Suggested by Eric Blake.
3619
3620 2010-06-04  Martin Lambers  <marlam@marlam.de>
3621             Bruno Haible  <bruno@clisp.org>
3622
3623         havelib: Allow library names with '+' characters.
3624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3625         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3626
3627 2010-06-09  Bruno Haible  <bruno@clisp.org>
3628
3629         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3630         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3631         realloc failed.
3632
3633 2010-06-08  Peter Simons  <simons@cryp.to>
3634
3635         maint.mk: make the news-check rule more configurable
3636         * top/maint.mk (news-check-lines-spec) New variable.
3637         (news-check): Use "sed -n 1,10p" in place of "head".
3638
3639 2010-06-07  Jim Meyering  <meyering@redhat.com>
3640
3641         do-release-commit-and-tag: fix typo in --help
3642         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3643
3644         regex: avoid new dead-code warning with gcc-4.6.0
3645         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3646         if-block containing a while-loop.  It's been unused for at least
3647         5 years.
3648
3649 2010-06-05  Bruno Haible  <bruno@clisp.org>
3650
3651         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3652         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3653
3654 2010-06-04  Bruno Haible  <bruno@clisp.org>
3655
3656         Update to GNU gettext 0.18.1.
3657         * modules/gettext (configure.ac): Require gettext infrastructure from
3658         version 0.18.1.
3659
3660 2010-06-03  Bruno Haible  <bruno@clisp.org>
3661
3662         Don't use AC_LIBOBJ with file names in subdirectories.
3663         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3664         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3665         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3666         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3667         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3668         gl_LIBUNISTRING_LIBSOURCE.
3669         (Makefile.am): Augment lib_SOURCES here, conditionally.
3670         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3671
3672 2010-06-03  Bruno Haible  <bruno@clisp.org>
3673
3674         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3675         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3676         expansion does not end with a newline.
3677         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3678         unnecessary newline.
3679
3680 2010-06-03  Bruno Haible  <bruno@clisp.org>
3681
3682         Reduce dependencies.
3683         * tests/test-quotearg.h: New file, extracted from
3684         tests/test-quotearg.c.
3685         * tests/test-quotearg-simple.c: New file, extracted from
3686         tests/test-quotearg.c.
3687         * tests/test-quotearg.c: Don't include <ctype.h>.
3688         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3689         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3690         use_quote_double_quotes, use_quotearg_colon): Moved to
3691         tests/test-quotearg.h.
3692         (results_g, flag_results, custom_quotes, custom_results): Moved
3693         to tests/test-quotearg-simple.c.
3694         (main): Moved the part that does not depend on gettext to
3695         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3696         performed.
3697         * modules/quotearg-simple: New file.
3698         * modules/quotearg-simple-tests: New file.
3699         * modules/quotearg (Depends-on): Add quotearg-simple.
3700         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3701         (Files): Add tests/test-quotearg.h.
3702         Reported by Paolo Bonzini.
3703
3704 2010-06-03  Bruno Haible  <bruno@clisp.org>
3705
3706         Reduce dependencies.
3707         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3708
3709 2010-06-03  Bruno Haible  <bruno@clisp.org>
3710
3711         time: Undefine more broken macros.
3712         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3713         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3714         Reported by Eric Blake.
3715
3716 2010-06-03  Bruno Haible  <bruno@clisp.org>
3717
3718         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3719         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3720         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3721         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3722         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3723         Reported by Ludovic Courtès <ludo@gnu.org>.
3724
3725 2010-06-02  Eric Blake  <eblake@redhat.com>
3726
3727         time: work with mingw + pthreads-win32 library
3728         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3729         if timespec is defined only in pthread.h.
3730         * modules/time (Makefile.am): Substitute it.
3731         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3732         <pthread.h>, when needed.
3733         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3734         from the library.
3735
3736 2010-05-31  Bruno Haible  <bruno@clisp.org>
3737
3738         Avoid expanding two macros in the wrong order.
3739         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3740         gl_LIBUNISTRING if it is defined.
3741         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3742         autoconf >= 2.64.
3743         Reported by Ludovic Courtès <ludo@gnu.org>.
3744
3745 2010-05-27  Jim Meyering  <meyering@redhat.com>
3746
3747         maint.mk: also prohibit "#undef" of always-defined symbols
3748         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3749         Allow more than one space before the symbol name.
3750         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3751         the regexp uses alternation.
3752
3753 2010-05-26  Eric Blake  <eblake@redhat.com>
3754
3755         maint.mk: avoid echo -e
3756         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3757         Convert all uses of echo -* to printf.
3758         Reported by Matthias Bolte.
3759
3760 2010-05-25  Bruno Haible  <bruno@clisp.org>
3761
3762         Update to GNU gettext 0.18, part 2.
3763         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3764         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3765
3766 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3767
3768         Add missing include in test-pwrite.c.
3769         * tests/test-pwrite.c: Include string.h, for strcmp.
3770
3771 2010-05-24  Bruno Haible  <bruno@clisp.org>
3772
3773         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3774
3775 2010-05-24  Bruno Haible  <bruno@clisp.org>
3776
3777         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3778         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3779         iconveh_error argument.
3780         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3781         U_STRCONV_TO_LOCALE.
3782         * lib/unistr/u16-strcoll.c: Likewise.
3783         * lib/unistr/u32-strcoll.c: Likewise.
3784         * modules/unistr/u8-strcoll (Depends-on): Add
3785         uniconv/u8-strconv-to-enc, localcharset. Remove
3786         uniconv/u8-strconv-to-locale.
3787         (configure.ac): Bump version number.
3788         * modules/unistr/u16-strcoll (Depends-on): Add
3789         uniconv/u16-strconv-to-enc, localcharset. Remove
3790         uniconv/u16-strconv-to-locale.
3791         (configure.ac): Bump version number.
3792         * modules/unistr/u32-strcoll (Depends-on): Add
3793         uniconv/u32-strconv-to-enc, localcharset. Remove
3794         uniconv/u32-strconv-to-locale.
3795         (configure.ac): Bump version number.
3796
3797 2010-05-24  Bruno Haible  <bruno@clisp.org>
3798
3799         Avoid a test failure on NetBSD 5.0.
3800         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3801         an iconv() bug.
3802
3803 2010-05-24  Bruno Haible  <bruno@clisp.org>
3804
3805         Adjust #include directive style.
3806         * modules/regex (Includes): Recommend to write <regex.h>.
3807
3808 2010-05-24  Bruno Haible  <bruno@clisp.org>
3809
3810         regex: Don't require alloca.
3811         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3812         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3813         only inside if (0).
3814
3815 2010-05-23  Jim Meyering  <meyering@redhat.com>
3816
3817         test-renameat.c: include <sys/stat.h>
3818         * tests/test-renameat.c: Include <sys/stat.h>; required for
3819         definition of S_IS* macros.
3820
3821 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3822
3823         Update maintainer documentation for 'relocatable-prog' module.
3824         * doc/relocatable-maint.texi: Update.
3825         Comments by Bruno Haible.
3826
3827 2010-05-23  Bruno Haible  <bruno@clisp.org>
3828
3829         git-merge-changelog: Enable --split-merged-entry by default.
3830         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3831         (usage): Don't mention this option any more.
3832         Reported by Ralf Wildenhues.
3833
3834 2010-05-23  Jim Meyering  <meyering@redhat.com>
3835
3836         test-pwrite: do not leave behind a test file named "out"
3837         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3838         The trivial-looking use of init.sh is really necessary.
3839         It ensures that the temporary file, "out", is created in
3840         a temporary directory, and removed upon termination.
3841         * tests/test-pwrite.sh: Re-add file.
3842         * modules/pwrite-tests: Reference it.
3843
3844 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3845
3846         Fix output redirection buglet in init.sh.
3847         * tests/init.sh: Fix redirection of stderr.
3848
3849 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3850
3851         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3852
3853 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3854
3855         * modules/valgrind-tests: New file.
3856         * m4/valgrind-tests.m4: New file.
3857         * doc/valgrind-tests.texi: New file.
3858         * doc/gnulib.texi (Running self-tests under valgrind): New
3859         section.
3860
3861 2010-05-19  Bruno Haible  <bruno@clisp.org>
3862
3863         Clean up dead code in recent commit.
3864         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3865         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3866         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3867         Suggested by Paolo Bonzini.
3868
3869 2010-05-19  Bruno Haible  <bruno@clisp.org>
3870
3871         Avoid valgrind error reports from libunistring.
3872         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3873         * modules/libunistring (Files): Add it.
3874         * modules/libunistring-optional (Files): Likewise.
3875
3876 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3877             Bruno Haible  <bruno@clisp.org>
3878
3879         New module 'libunistring-optional'.
3880         * modules/libunistring-optional: New file.
3881         * m4/libunistring-base.m4: New file.
3882         * m4/libunistring-optional.m4: New file.
3883         * lib/unicase.in.h: Renamed from lib/unicase.h.
3884         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3885         * lib/unictype.in.h: Renamed from lib/unictype.h.
3886         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3887         * lib/uniname.in.h: Renamed from lib/uniname.h.
3888         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3889         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3890         * lib/unistr.in.h: Renamed from lib/unistr.h.
3891         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3892         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3893         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3894         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3895         gl_LIBUNISTRING. If the library was found, determine the installed
3896         version and set LIBUNISTRING_VERSION.
3897         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3898         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3899         handle a configuration option --with-included-libunistring.
3900         * modules/libunistring (Files): Add m4/absolute-header.m4.
3901         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3902         Add m4/libunistring-base.m4.
3903         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3904         (Makefile.am): Build unicase.h from unicase.in.h.
3905         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3906         Add m4/libunistring-base.m4.
3907         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3908         (Makefile.am): Build uniconv.h from uniconv.in.h.
3909         * modules/unictype/base (Files): Use unictype.in.h instead of
3910         unictype.h. Add m4/libunistring-base.m4.
3911         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3912         (Makefile.am): Build unictype.h from unictype.in.h.
3913         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3914         Add m4/libunistring-base.m4.
3915         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3916         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3917         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3918         Add m4/libunistring-base.m4.
3919         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3920         (Makefile.am): Build uniname.h from uniname.in.h.
3921         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3922         Add m4/libunistring-base.m4.
3923         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3924         (Makefile.am): Build uninorm.h from uninorm.in.h.
3925         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3926         unistdio.h. Add m4/libunistring-base.m4.
3927         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3928         (Makefile.am): Build unistdio.h from unistdio.in.h.
3929         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3930         Add m4/libunistring-base.m4.
3931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3932         (Makefile.am): Build unistr.h from unistr.in.h.
3933         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3934         Add m4/libunistring-base.m4.
3935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3936         (Makefile.am): Build unitypes.h from unitypes.in.h.
3937         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
3938         Add m4/libunistring-base.m4.
3939         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3940         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
3941         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
3942         uniwidth.h. Add m4/libunistring-base.m4.
3943         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3944         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
3945         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
3946         instead of augmenting lib_SOURCES.
3947         * modules/unicase/empty-suffix-context: Likewise.
3948         * modules/unicase/locale-language: Likewise.
3949         * modules/unicase/tolower: Likewise.
3950         * modules/unicase/totitle: Likewise.
3951         * modules/unicase/toupper: Likewise.
3952         * modules/unicase/u8-casecmp: Likewise.
3953         * modules/unicase/u8-casecoll: Likewise.
3954         * modules/unicase/u8-casefold: Likewise.
3955         * modules/unicase/u8-casexfrm: Likewise.
3956         * modules/unicase/u8-ct-casefold: Likewise.
3957         * modules/unicase/u8-ct-tolower: Likewise.
3958         * modules/unicase/u8-ct-totitle: Likewise.
3959         * modules/unicase/u8-ct-toupper: Likewise.
3960         * modules/unicase/u8-is-cased: Likewise.
3961         * modules/unicase/u8-is-casefolded: Likewise.
3962         * modules/unicase/u8-is-lowercase: Likewise.
3963         * modules/unicase/u8-is-titlecase: Likewise.
3964         * modules/unicase/u8-is-uppercase: Likewise.
3965         * modules/unicase/u8-prefix-context: Likewise.
3966         * modules/unicase/u8-suffix-context: Likewise.
3967         * modules/unicase/u8-tolower: Likewise.
3968         * modules/unicase/u8-totitle: Likewise.
3969         * modules/unicase/u8-toupper: Likewise.
3970         * modules/unicase/u16-casecmp: Likewise.
3971         * modules/unicase/u16-casecoll: Likewise.
3972         * modules/unicase/u16-casefold: Likewise.
3973         * modules/unicase/u16-casexfrm: Likewise.
3974         * modules/unicase/u16-ct-casefold: Likewise.
3975         * modules/unicase/u16-ct-tolower: Likewise.
3976         * modules/unicase/u16-ct-totitle: Likewise.
3977         * modules/unicase/u16-ct-toupper: Likewise.
3978         * modules/unicase/u16-is-cased: Likewise.
3979         * modules/unicase/u16-is-casefolded: Likewise.
3980         * modules/unicase/u16-is-lowercase: Likewise.
3981         * modules/unicase/u16-is-titlecase: Likewise.
3982         * modules/unicase/u16-is-uppercase: Likewise.
3983         * modules/unicase/u16-prefix-context: Likewise.
3984         * modules/unicase/u16-suffix-context: Likewise.
3985         * modules/unicase/u16-tolower: Likewise.
3986         * modules/unicase/u16-totitle: Likewise.
3987         * modules/unicase/u16-toupper: Likewise.
3988         * modules/unicase/u32-casecmp: Likewise.
3989         * modules/unicase/u32-casecoll: Likewise.
3990         * modules/unicase/u32-casefold: Likewise.
3991         * modules/unicase/u32-casexfrm: Likewise.
3992         * modules/unicase/u32-ct-casefold: Likewise.
3993         * modules/unicase/u32-ct-tolower: Likewise.
3994         * modules/unicase/u32-ct-totitle: Likewise.
3995         * modules/unicase/u32-ct-toupper: Likewise.
3996         * modules/unicase/u32-is-cased: Likewise.
3997         * modules/unicase/u32-is-casefolded: Likewise.
3998         * modules/unicase/u32-is-lowercase: Likewise.
3999         * modules/unicase/u32-is-titlecase: Likewise.
4000         * modules/unicase/u32-is-uppercase: Likewise.
4001         * modules/unicase/u32-prefix-context: Likewise.
4002         * modules/unicase/u32-suffix-context: Likewise.
4003         * modules/unicase/u32-tolower: Likewise.
4004         * modules/unicase/u32-totitle: Likewise.
4005         * modules/unicase/u32-toupper: Likewise.
4006         * modules/unicase/ulc-casecmp: Likewise.
4007         * modules/unicase/ulc-casecoll: Likewise.
4008         * modules/unicase/ulc-casexfrm: Likewise.
4009         * modules/uniconv/u8-conv-from-enc: Likewise.
4010         * modules/uniconv/u8-conv-to-enc: Likewise.
4011         * modules/uniconv/u8-strconv-from-enc: Likewise.
4012         * modules/uniconv/u8-strconv-from-locale: Likewise.
4013         * modules/uniconv/u8-strconv-to-enc: Likewise.
4014         * modules/uniconv/u8-strconv-to-locale: Likewise.
4015         * modules/uniconv/u16-conv-from-enc: Likewise.
4016         * modules/uniconv/u16-conv-to-enc: Likewise.
4017         * modules/uniconv/u16-strconv-from-enc: Likewise.
4018         * modules/uniconv/u16-strconv-from-locale: Likewise.
4019         * modules/uniconv/u16-strconv-to-enc: Likewise.
4020         * modules/uniconv/u16-strconv-to-locale: Likewise.
4021         * modules/uniconv/u32-conv-from-enc: Likewise.
4022         * modules/uniconv/u32-conv-to-enc: Likewise.
4023         * modules/uniconv/u32-strconv-from-enc: Likewise.
4024         * modules/uniconv/u32-strconv-from-locale: Likewise.
4025         * modules/uniconv/u32-strconv-to-enc: Likewise.
4026         * modules/uniconv/u32-strconv-to-locale: Likewise.
4027         * modules/unictype/bidicategory-byname: Likewise.
4028         * modules/unictype/bidicategory-name: Likewise.
4029         * modules/unictype/bidicategory-of: Likewise.
4030         * modules/unictype/bidicategory-test: Likewise.
4031         * modules/unictype/block-list: Likewise.
4032         * modules/unictype/block-test: Likewise.
4033         * modules/unictype/category-C: Likewise.
4034         * modules/unictype/category-Cc: Likewise.
4035         * modules/unictype/category-Cf: Likewise.
4036         * modules/unictype/category-Cn: Likewise.
4037         * modules/unictype/category-Co: Likewise.
4038         * modules/unictype/category-Cs: Likewise.
4039         * modules/unictype/category-L: Likewise.
4040         * modules/unictype/category-Ll: Likewise.
4041         * modules/unictype/category-Lm: Likewise.
4042         * modules/unictype/category-Lo: Likewise.
4043         * modules/unictype/category-Lt: Likewise.
4044         * modules/unictype/category-Lu: Likewise.
4045         * modules/unictype/category-M: Likewise.
4046         * modules/unictype/category-Mc: Likewise.
4047         * modules/unictype/category-Me: Likewise.
4048         * modules/unictype/category-Mn: Likewise.
4049         * modules/unictype/category-N: Likewise.
4050         * modules/unictype/category-Nd: Likewise.
4051         * modules/unictype/category-Nl: Likewise.
4052         * modules/unictype/category-No: Likewise.
4053         * modules/unictype/category-P: Likewise.
4054         * modules/unictype/category-Pc: Likewise.
4055         * modules/unictype/category-Pd: Likewise.
4056         * modules/unictype/category-Pe: Likewise.
4057         * modules/unictype/category-Pf: Likewise.
4058         * modules/unictype/category-Pi: Likewise.
4059         * modules/unictype/category-Po: Likewise.
4060         * modules/unictype/category-Ps: Likewise.
4061         * modules/unictype/category-S: Likewise.
4062         * modules/unictype/category-Sc: Likewise.
4063         * modules/unictype/category-Sk: Likewise.
4064         * modules/unictype/category-Sm: Likewise.
4065         * modules/unictype/category-So: Likewise.
4066         * modules/unictype/category-Z: Likewise.
4067         * modules/unictype/category-Zl: Likewise.
4068         * modules/unictype/category-Zp: Likewise.
4069         * modules/unictype/category-Zs: Likewise.
4070         * modules/unictype/category-and: Likewise.
4071         * modules/unictype/category-and-not: Likewise.
4072         * modules/unictype/category-byname: Likewise.
4073         * modules/unictype/category-name: Likewise.
4074         * modules/unictype/category-none: Likewise.
4075         * modules/unictype/category-of: Likewise.
4076         * modules/unictype/category-or: Likewise.
4077         * modules/unictype/category-test: Likewise.
4078         * modules/unictype/combining-class: Likewise.
4079         * modules/unictype/ctype-alnum: Likewise.
4080         * modules/unictype/ctype-alpha: Likewise.
4081         * modules/unictype/ctype-blank: Likewise.
4082         * modules/unictype/ctype-cntrl: Likewise.
4083         * modules/unictype/ctype-digit: Likewise.
4084         * modules/unictype/ctype-graph: Likewise.
4085         * modules/unictype/ctype-lower: Likewise.
4086         * modules/unictype/ctype-print: Likewise.
4087         * modules/unictype/ctype-punct: Likewise.
4088         * modules/unictype/ctype-space: Likewise.
4089         * modules/unictype/ctype-upper: Likewise.
4090         * modules/unictype/ctype-xdigit: Likewise.
4091         * modules/unictype/decimal-digit: Likewise.
4092         * modules/unictype/digit: Likewise.
4093         * modules/unictype/mirror: Likewise.
4094         * modules/unictype/numeric: Likewise.
4095         * modules/unictype/property-alphabetic: Likewise.
4096         * modules/unictype/property-ascii-hex-digit: Likewise.
4097         * modules/unictype/property-bidi-arabic-digit: Likewise.
4098         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4099         * modules/unictype/property-bidi-block-separator: Likewise.
4100         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4101         * modules/unictype/property-bidi-common-separator: Likewise.
4102         * modules/unictype/property-bidi-control: Likewise.
4103         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4104         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4105         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4106         * modules/unictype/property-bidi-european-digit: Likewise.
4107         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4108         * modules/unictype/property-bidi-left-to-right: Likewise.
4109         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4110         * modules/unictype/property-bidi-other-neutral: Likewise.
4111         * modules/unictype/property-bidi-pdf: Likewise.
4112         * modules/unictype/property-bidi-segment-separator: Likewise.
4113         * modules/unictype/property-bidi-whitespace: Likewise.
4114         * modules/unictype/property-byname: Likewise.
4115         * modules/unictype/property-combining: Likewise.
4116         * modules/unictype/property-composite: Likewise.
4117         * modules/unictype/property-currency-symbol: Likewise.
4118         * modules/unictype/property-dash: Likewise.
4119         * modules/unictype/property-decimal-digit: Likewise.
4120         * modules/unictype/property-default-ignorable-code-point: Likewise.
4121         * modules/unictype/property-deprecated: Likewise.
4122         * modules/unictype/property-diacritic: Likewise.
4123         * modules/unictype/property-extender: Likewise.
4124         * modules/unictype/property-format-control: Likewise.
4125         * modules/unictype/property-grapheme-base: Likewise.
4126         * modules/unictype/property-grapheme-extend: Likewise.
4127         * modules/unictype/property-grapheme-link: Likewise.
4128         * modules/unictype/property-hex-digit: Likewise.
4129         * modules/unictype/property-hyphen: Likewise.
4130         * modules/unictype/property-id-continue: Likewise.
4131         * modules/unictype/property-id-start: Likewise.
4132         * modules/unictype/property-ideographic: Likewise.
4133         * modules/unictype/property-ids-binary-operator: Likewise.
4134         * modules/unictype/property-ids-trinary-operator: Likewise.
4135         * modules/unictype/property-ignorable-control: Likewise.
4136         * modules/unictype/property-iso-control: Likewise.
4137         * modules/unictype/property-join-control: Likewise.
4138         * modules/unictype/property-left-of-pair: Likewise.
4139         * modules/unictype/property-line-separator: Likewise.
4140         * modules/unictype/property-logical-order-exception: Likewise.
4141         * modules/unictype/property-lowercase: Likewise.
4142         * modules/unictype/property-math: Likewise.
4143         * modules/unictype/property-non-break: Likewise.
4144         * modules/unictype/property-not-a-character: Likewise.
4145         * modules/unictype/property-numeric: Likewise.
4146         * modules/unictype/property-other-alphabetic: Likewise.
4147         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4148         * modules/unictype/property-other-grapheme-extend: Likewise.
4149         * modules/unictype/property-other-id-continue: Likewise.
4150         * modules/unictype/property-other-id-start: Likewise.
4151         * modules/unictype/property-other-lowercase: Likewise.
4152         * modules/unictype/property-other-math: Likewise.
4153         * modules/unictype/property-other-uppercase: Likewise.
4154         * modules/unictype/property-paired-punctuation: Likewise.
4155         * modules/unictype/property-paragraph-separator: Likewise.
4156         * modules/unictype/property-pattern-syntax: Likewise.
4157         * modules/unictype/property-pattern-white-space: Likewise.
4158         * modules/unictype/property-private-use: Likewise.
4159         * modules/unictype/property-punctuation: Likewise.
4160         * modules/unictype/property-quotation-mark: Likewise.
4161         * modules/unictype/property-radical: Likewise.
4162         * modules/unictype/property-sentence-terminal: Likewise.
4163         * modules/unictype/property-soft-dotted: Likewise.
4164         * modules/unictype/property-space: Likewise.
4165         * modules/unictype/property-terminal-punctuation: Likewise.
4166         * modules/unictype/property-test: Likewise.
4167         * modules/unictype/property-titlecase: Likewise.
4168         * modules/unictype/property-unassigned-code-value: Likewise.
4169         * modules/unictype/property-unified-ideograph: Likewise.
4170         * modules/unictype/property-uppercase: Likewise.
4171         * modules/unictype/property-variation-selector: Likewise.
4172         * modules/unictype/property-white-space: Likewise.
4173         * modules/unictype/property-xid-continue: Likewise.
4174         * modules/unictype/property-xid-start: Likewise.
4175         * modules/unictype/property-zero-width: Likewise.
4176         * modules/unictype/scripts: Likewise.
4177         * modules/unictype/syntax-c-ident: Likewise.
4178         * modules/unictype/syntax-c-whitespace: Likewise.
4179         * modules/unictype/syntax-java-ident: Likewise.
4180         * modules/unictype/syntax-java-whitespace: Likewise.
4181         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4182         * modules/unilbrk/u8-width-linebreaks: Likewise.
4183         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4184         * modules/unilbrk/u16-width-linebreaks: Likewise.
4185         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4186         * modules/unilbrk/u32-width-linebreaks: Likewise.
4187         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4188         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4189         * modules/uniname/uniname: Likewise.
4190         * modules/uninorm/canonical-decomposition: Likewise.
4191         * modules/uninorm/composition: Likewise.
4192         * modules/uninorm/decomposing-form: Likewise.
4193         * modules/uninorm/decomposition: Likewise.
4194         * modules/uninorm/filter: Likewise.
4195         * modules/uninorm/nfc: Likewise.
4196         * modules/uninorm/nfd: Likewise.
4197         * modules/uninorm/nfkc: Likewise.
4198         * modules/uninorm/nfkd: Likewise.
4199         * modules/uninorm/u8-normalize: Likewise.
4200         * modules/uninorm/u8-normcmp: Likewise.
4201         * modules/uninorm/u8-normcoll: Likewise.
4202         * modules/uninorm/u8-normxfrm: Likewise.
4203         * modules/uninorm/u16-normalize: Likewise.
4204         * modules/uninorm/u16-normcmp: Likewise.
4205         * modules/uninorm/u16-normcoll: Likewise.
4206         * modules/uninorm/u16-normxfrm: Likewise.
4207         * modules/uninorm/u32-normalize: Likewise.
4208         * modules/uninorm/u32-normcmp: Likewise.
4209         * modules/uninorm/u32-normcoll: Likewise.
4210         * modules/uninorm/u32-normxfrm: Likewise.
4211         * modules/unistdio/u8-asnprintf: Likewise.
4212         * modules/unistdio/u8-asprintf: Likewise.
4213         * modules/unistdio/u8-snprintf: Likewise.
4214         * modules/unistdio/u8-sprintf: Likewise.
4215         * modules/unistdio/u8-u8-asnprintf: Likewise.
4216         * modules/unistdio/u8-u8-asprintf: Likewise.
4217         * modules/unistdio/u8-u8-snprintf: Likewise.
4218         * modules/unistdio/u8-u8-sprintf: Likewise.
4219         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4220         * modules/unistdio/u8-u8-vasprintf: Likewise.
4221         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4222         * modules/unistdio/u8-u8-vsprintf: Likewise.
4223         * modules/unistdio/u8-vasnprintf: Likewise.
4224         * modules/unistdio/u8-vasprintf: Likewise.
4225         * modules/unistdio/u8-vsnprintf: Likewise.
4226         * modules/unistdio/u8-vsprintf: Likewise.
4227         * modules/unistdio/u16-asnprintf: Likewise.
4228         * modules/unistdio/u16-asprintf: Likewise.
4229         * modules/unistdio/u16-snprintf: Likewise.
4230         * modules/unistdio/u16-sprintf: Likewise.
4231         * modules/unistdio/u16-u16-asnprintf: Likewise.
4232         * modules/unistdio/u16-u16-asprintf: Likewise.
4233         * modules/unistdio/u16-u16-snprintf: Likewise.
4234         * modules/unistdio/u16-u16-sprintf: Likewise.
4235         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4236         * modules/unistdio/u16-u16-vasprintf: Likewise.
4237         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4238         * modules/unistdio/u16-u16-vsprintf: Likewise.
4239         * modules/unistdio/u16-vasnprintf: Likewise.
4240         * modules/unistdio/u16-vasprintf: Likewise.
4241         * modules/unistdio/u16-vsnprintf: Likewise.
4242         * modules/unistdio/u16-vsprintf: Likewise.
4243         * modules/unistdio/u32-asnprintf: Likewise.
4244         * modules/unistdio/u32-asprintf: Likewise.
4245         * modules/unistdio/u32-snprintf: Likewise.
4246         * modules/unistdio/u32-sprintf: Likewise.
4247         * modules/unistdio/u32-u32-asnprintf: Likewise.
4248         * modules/unistdio/u32-u32-asprintf: Likewise.
4249         * modules/unistdio/u32-u32-snprintf: Likewise.
4250         * modules/unistdio/u32-u32-sprintf: Likewise.
4251         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4252         * modules/unistdio/u32-u32-vasprintf: Likewise.
4253         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4254         * modules/unistdio/u32-u32-vsprintf: Likewise.
4255         * modules/unistdio/u32-vasnprintf: Likewise.
4256         * modules/unistdio/u32-vasprintf: Likewise.
4257         * modules/unistdio/u32-vsnprintf: Likewise.
4258         * modules/unistdio/u32-vsprintf: Likewise.
4259         * modules/unistdio/ulc-asnprintf: Likewise.
4260         * modules/unistdio/ulc-asprintf: Likewise.
4261         * modules/unistdio/ulc-fprintf: Likewise.
4262         * modules/unistdio/ulc-snprintf: Likewise.
4263         * modules/unistdio/ulc-sprintf: Likewise.
4264         * modules/unistdio/ulc-vasnprintf: Likewise.
4265         * modules/unistdio/ulc-vasprintf: Likewise.
4266         * modules/unistdio/ulc-vfprintf: Likewise.
4267         * modules/unistdio/ulc-vsnprintf: Likewise.
4268         * modules/unistdio/ulc-vsprintf: Likewise.
4269         * modules/unistr/u8-check: Likewise.
4270         * modules/unistr/u8-chr: Likewise.
4271         * modules/unistr/u8-cmp: Likewise.
4272         * modules/unistr/u8-cmp2: Likewise.
4273         * modules/unistr/u8-cpy: Likewise.
4274         * modules/unistr/u8-cpy-alloc: Likewise.
4275         * modules/unistr/u8-endswith: Likewise.
4276         * modules/unistr/u8-mblen: Likewise.
4277         * modules/unistr/u8-mbsnlen: Likewise.
4278         * modules/unistr/u8-mbtouc: Likewise.
4279         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4280         * modules/unistr/u8-mbtoucr: Likewise.
4281         * modules/unistr/u8-move: Likewise.
4282         * modules/unistr/u8-next: Likewise.
4283         * modules/unistr/u8-prev: Likewise.
4284         * modules/unistr/u8-set: Likewise.
4285         * modules/unistr/u8-startswith: Likewise.
4286         * modules/unistr/u8-stpcpy: Likewise.
4287         * modules/unistr/u8-stpncpy: Likewise.
4288         * modules/unistr/u8-strcat: Likewise.
4289         * modules/unistr/u8-strchr: Likewise.
4290         * modules/unistr/u8-strcmp: Likewise.
4291         * modules/unistr/u8-strcoll: Likewise.
4292         * modules/unistr/u8-strcpy: Likewise.
4293         * modules/unistr/u8-strcspn: Likewise.
4294         * modules/unistr/u8-strdup: Likewise.
4295         * modules/unistr/u8-strlen: Likewise.
4296         * modules/unistr/u8-strmblen: Likewise.
4297         * modules/unistr/u8-strmbtouc: Likewise.
4298         * modules/unistr/u8-strncat: Likewise.
4299         * modules/unistr/u8-strncmp: Likewise.
4300         * modules/unistr/u8-strncpy: Likewise.
4301         * modules/unistr/u8-strnlen: Likewise.
4302         * modules/unistr/u8-strpbrk: Likewise.
4303         * modules/unistr/u8-strrchr: Likewise.
4304         * modules/unistr/u8-strspn: Likewise.
4305         * modules/unistr/u8-strstr: Likewise.
4306         * modules/unistr/u8-strtok: Likewise.
4307         * modules/unistr/u8-to-u16: Likewise.
4308         * modules/unistr/u8-to-u32: Likewise.
4309         * modules/unistr/u8-uctomb: Likewise.
4310         * modules/unistr/u16-check: Likewise.
4311         * modules/unistr/u16-chr: Likewise.
4312         * modules/unistr/u16-cmp: Likewise.
4313         * modules/unistr/u16-cmp2: Likewise.
4314         * modules/unistr/u16-cpy: Likewise.
4315         * modules/unistr/u16-cpy-alloc: Likewise.
4316         * modules/unistr/u16-endswith: Likewise.
4317         * modules/unistr/u16-mblen: Likewise.
4318         * modules/unistr/u16-mbsnlen: Likewise.
4319         * modules/unistr/u16-mbtouc: Likewise.
4320         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4321         * modules/unistr/u16-mbtoucr: Likewise.
4322         * modules/unistr/u16-move: Likewise.
4323         * modules/unistr/u16-next: Likewise.
4324         * modules/unistr/u16-prev: Likewise.
4325         * modules/unistr/u16-set: Likewise.
4326         * modules/unistr/u16-startswith: Likewise.
4327         * modules/unistr/u16-stpcpy: Likewise.
4328         * modules/unistr/u16-stpncpy: Likewise.
4329         * modules/unistr/u16-strcat: Likewise.
4330         * modules/unistr/u16-strchr: Likewise.
4331         * modules/unistr/u16-strcmp: Likewise.
4332         * modules/unistr/u16-strcoll: Likewise.
4333         * modules/unistr/u16-strcpy: Likewise.
4334         * modules/unistr/u16-strcspn: Likewise.
4335         * modules/unistr/u16-strdup: Likewise.
4336         * modules/unistr/u16-strlen: Likewise.
4337         * modules/unistr/u16-strmblen: Likewise.
4338         * modules/unistr/u16-strmbtouc: Likewise.
4339         * modules/unistr/u16-strncat: Likewise.
4340         * modules/unistr/u16-strncmp: Likewise.
4341         * modules/unistr/u16-strncpy: Likewise.
4342         * modules/unistr/u16-strnlen: Likewise.
4343         * modules/unistr/u16-strpbrk: Likewise.
4344         * modules/unistr/u16-strrchr: Likewise.
4345         * modules/unistr/u16-strspn: Likewise.
4346         * modules/unistr/u16-strstr: Likewise.
4347         * modules/unistr/u16-strtok: Likewise.
4348         * modules/unistr/u16-to-u32: Likewise.
4349         * modules/unistr/u16-to-u8: Likewise.
4350         * modules/unistr/u16-uctomb: Likewise.
4351         * modules/unistr/u32-check: Likewise.
4352         * modules/unistr/u32-chr: Likewise.
4353         * modules/unistr/u32-cmp: Likewise.
4354         * modules/unistr/u32-cmp2: Likewise.
4355         * modules/unistr/u32-cpy: Likewise.
4356         * modules/unistr/u32-cpy-alloc: Likewise.
4357         * modules/unistr/u32-endswith: Likewise.
4358         * modules/unistr/u32-mblen: Likewise.
4359         * modules/unistr/u32-mbsnlen: Likewise.
4360         * modules/unistr/u32-mbtouc: Likewise.
4361         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4362         * modules/unistr/u32-mbtoucr: Likewise.
4363         * modules/unistr/u32-move: Likewise.
4364         * modules/unistr/u32-next: Likewise.
4365         * modules/unistr/u32-prev: Likewise.
4366         * modules/unistr/u32-set: Likewise.
4367         * modules/unistr/u32-startswith: Likewise.
4368         * modules/unistr/u32-stpcpy: Likewise.
4369         * modules/unistr/u32-stpncpy: Likewise.
4370         * modules/unistr/u32-strcat: Likewise.
4371         * modules/unistr/u32-strchr: Likewise.
4372         * modules/unistr/u32-strcmp: Likewise.
4373         * modules/unistr/u32-strcoll: Likewise.
4374         * modules/unistr/u32-strcpy: Likewise.
4375         * modules/unistr/u32-strcspn: Likewise.
4376         * modules/unistr/u32-strdup: Likewise.
4377         * modules/unistr/u32-strlen: Likewise.
4378         * modules/unistr/u32-strmblen: Likewise.
4379         * modules/unistr/u32-strmbtouc: Likewise.
4380         * modules/unistr/u32-strncat: Likewise.
4381         * modules/unistr/u32-strncmp: Likewise.
4382         * modules/unistr/u32-strncpy: Likewise.
4383         * modules/unistr/u32-strnlen: Likewise.
4384         * modules/unistr/u32-strpbrk: Likewise.
4385         * modules/unistr/u32-strrchr: Likewise.
4386         * modules/unistr/u32-strspn: Likewise.
4387         * modules/unistr/u32-strstr: Likewise.
4388         * modules/unistr/u32-strtok: Likewise.
4389         * modules/unistr/u32-to-u16: Likewise.
4390         * modules/unistr/u32-to-u8: Likewise.
4391         * modules/unistr/u32-uctomb: Likewise.
4392         * modules/uniwbrk/u8-wordbreaks: Likewise.
4393         * modules/uniwbrk/u16-wordbreaks: Likewise.
4394         * modules/uniwbrk/u32-wordbreaks: Likewise.
4395         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4396         * modules/uniwbrk/wordbreak-property: Likewise.
4397         * modules/uniwidth/u8-strwidth: Likewise.
4398         * modules/uniwidth/u8-width: Likewise.
4399         * modules/uniwidth/u16-strwidth: Likewise.
4400         * modules/uniwidth/u16-width: Likewise.
4401         * modules/uniwidth/u32-strwidth: Likewise.
4402         * modules/uniwidth/u32-width: Likewise.
4403         * modules/uniwidth/width: Likewise.
4404         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4405         with $(LIBUNISTRING).
4406         * modules/unicase/ignorable-tests: Likewise.
4407         * modules/unicase/locale-language-tests: Likewise.
4408         * modules/unicase/tolower-tests: Likewise.
4409         * modules/unicase/totitle-tests: Likewise.
4410         * modules/unicase/toupper-tests: Likewise.
4411         * modules/unicase/u8-casecmp-tests: Likewise.
4412         * modules/unicase/u8-casecoll-tests: Likewise.
4413         * modules/unicase/u8-casefold-tests: Likewise.
4414         * modules/unicase/u8-is-cased-tests: Likewise.
4415         * modules/unicase/u8-is-casefolded-tests: Likewise.
4416         * modules/unicase/u8-is-lowercase-tests: Likewise.
4417         * modules/unicase/u8-is-titlecase-tests: Likewise.
4418         * modules/unicase/u8-is-uppercase-tests: Likewise.
4419         * modules/unicase/u8-tolower-tests: Likewise.
4420         * modules/unicase/u8-totitle-tests: Likewise.
4421         * modules/unicase/u8-toupper-tests: Likewise.
4422         * modules/unicase/u16-casecmp-tests: Likewise.
4423         * modules/unicase/u16-casecoll-tests: Likewise.
4424         * modules/unicase/u16-casefold-tests: Likewise.
4425         * modules/unicase/u16-is-cased-tests: Likewise.
4426         * modules/unicase/u16-is-casefolded-tests: Likewise.
4427         * modules/unicase/u16-is-lowercase-tests: Likewise.
4428         * modules/unicase/u16-is-titlecase-tests: Likewise.
4429         * modules/unicase/u16-is-uppercase-tests: Likewise.
4430         * modules/unicase/u16-tolower-tests: Likewise.
4431         * modules/unicase/u16-totitle-tests: Likewise.
4432         * modules/unicase/u16-toupper-tests: Likewise.
4433         * modules/unicase/u32-casecmp-tests: Likewise.
4434         * modules/unicase/u32-casecoll-tests: Likewise.
4435         * modules/unicase/u32-casefold-tests: Likewise.
4436         * modules/unicase/u32-is-cased-tests: Likewise.
4437         * modules/unicase/u32-is-casefolded-tests: Likewise.
4438         * modules/unicase/u32-is-lowercase-tests: Likewise.
4439         * modules/unicase/u32-is-titlecase-tests: Likewise.
4440         * modules/unicase/u32-is-uppercase-tests: Likewise.
4441         * modules/unicase/u32-tolower-tests: Likewise.
4442         * modules/unicase/u32-totitle-tests: Likewise.
4443         * modules/unicase/u32-toupper-tests: Likewise.
4444         * modules/unicase/ulc-casecmp-tests: Likewise.
4445         * modules/unicase/ulc-casecoll-tests: Likewise.
4446         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4447         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4448         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4449         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4450         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4451         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4452         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4453         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4454         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4455         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4456         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4457         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4458         * modules/unictype/bidicategory-byname-tests: Likewise.
4459         * modules/unictype/bidicategory-name-tests: Likewise.
4460         * modules/unictype/bidicategory-of-tests: Likewise.
4461         * modules/unictype/bidicategory-test-tests: Likewise.
4462         * modules/unictype/block-list-tests: Likewise.
4463         * modules/unictype/block-of-tests: Likewise.
4464         * modules/unictype/block-test-tests: Likewise.
4465         * modules/unictype/category-C-tests: Likewise.
4466         * modules/unictype/category-Cc-tests: Likewise.
4467         * modules/unictype/category-Cf-tests: Likewise.
4468         * modules/unictype/category-Cn-tests: Likewise.
4469         * modules/unictype/category-Co-tests: Likewise.
4470         * modules/unictype/category-Cs-tests: Likewise.
4471         * modules/unictype/category-L-tests: Likewise.
4472         * modules/unictype/category-Ll-tests: Likewise.
4473         * modules/unictype/category-Lm-tests: Likewise.
4474         * modules/unictype/category-Lo-tests: Likewise.
4475         * modules/unictype/category-Lt-tests: Likewise.
4476         * modules/unictype/category-Lu-tests: Likewise.
4477         * modules/unictype/category-M-tests: Likewise.
4478         * modules/unictype/category-Mc-tests: Likewise.
4479         * modules/unictype/category-Me-tests: Likewise.
4480         * modules/unictype/category-Mn-tests: Likewise.
4481         * modules/unictype/category-N-tests: Likewise.
4482         * modules/unictype/category-Nd-tests: Likewise.
4483         * modules/unictype/category-Nl-tests: Likewise.
4484         * modules/unictype/category-No-tests: Likewise.
4485         * modules/unictype/category-P-tests: Likewise.
4486         * modules/unictype/category-Pc-tests: Likewise.
4487         * modules/unictype/category-Pd-tests: Likewise.
4488         * modules/unictype/category-Pe-tests: Likewise.
4489         * modules/unictype/category-Pf-tests: Likewise.
4490         * modules/unictype/category-Pi-tests: Likewise.
4491         * modules/unictype/category-Po-tests: Likewise.
4492         * modules/unictype/category-Ps-tests: Likewise.
4493         * modules/unictype/category-S-tests: Likewise.
4494         * modules/unictype/category-Sc-tests: Likewise.
4495         * modules/unictype/category-Sk-tests: Likewise.
4496         * modules/unictype/category-Sm-tests: Likewise.
4497         * modules/unictype/category-So-tests: Likewise.
4498         * modules/unictype/category-Z-tests: Likewise.
4499         * modules/unictype/category-Zl-tests: Likewise.
4500         * modules/unictype/category-Zp-tests: Likewise.
4501         * modules/unictype/category-Zs-tests: Likewise.
4502         * modules/unictype/category-and-not-tests: Likewise.
4503         * modules/unictype/category-and-tests: Likewise.
4504         * modules/unictype/category-byname-tests: Likewise.
4505         * modules/unictype/category-name-tests: Likewise.
4506         * modules/unictype/category-none-tests: Likewise.
4507         * modules/unictype/category-of-tests: Likewise.
4508         * modules/unictype/category-or-tests: Likewise.
4509         * modules/unictype/category-test-withtable-tests: Likewise.
4510         * modules/unictype/combining-class-tests: Likewise.
4511         * modules/unictype/ctype-alnum-tests: Likewise.
4512         * modules/unictype/ctype-alpha-tests: Likewise.
4513         * modules/unictype/ctype-blank-tests: Likewise.
4514         * modules/unictype/ctype-cntrl-tests: Likewise.
4515         * modules/unictype/ctype-digit-tests: Likewise.
4516         * modules/unictype/ctype-graph-tests: Likewise.
4517         * modules/unictype/ctype-lower-tests: Likewise.
4518         * modules/unictype/ctype-print-tests: Likewise.
4519         * modules/unictype/ctype-punct-tests: Likewise.
4520         * modules/unictype/ctype-space-tests: Likewise.
4521         * modules/unictype/ctype-upper-tests: Likewise.
4522         * modules/unictype/ctype-xdigit-tests: Likewise.
4523         * modules/unictype/decimal-digit-tests: Likewise.
4524         * modules/unictype/digit-tests: Likewise.
4525         * modules/unictype/mirror-tests: Likewise.
4526         * modules/unictype/numeric-tests: Likewise.
4527         * modules/unictype/property-alphabetic-tests: Likewise.
4528         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4529         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4530         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4531         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4532         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4533         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4534         * modules/unictype/property-bidi-control-tests: Likewise.
4535         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4536         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4537         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4538         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4539         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4540         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4541         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4542         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4543         * modules/unictype/property-bidi-pdf-tests: Likewise.
4544         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4545         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4546         * modules/unictype/property-byname-tests: Likewise.
4547         * modules/unictype/property-combining-tests: Likewise.
4548         * modules/unictype/property-composite-tests: Likewise.
4549         * modules/unictype/property-currency-symbol-tests: Likewise.
4550         * modules/unictype/property-dash-tests: Likewise.
4551         * modules/unictype/property-decimal-digit-tests: Likewise.
4552         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4553         * modules/unictype/property-deprecated-tests: Likewise.
4554         * modules/unictype/property-diacritic-tests: Likewise.
4555         * modules/unictype/property-extender-tests: Likewise.
4556         * modules/unictype/property-format-control-tests: Likewise.
4557         * modules/unictype/property-grapheme-base-tests: Likewise.
4558         * modules/unictype/property-grapheme-extend-tests: Likewise.
4559         * modules/unictype/property-grapheme-link-tests: Likewise.
4560         * modules/unictype/property-hex-digit-tests: Likewise.
4561         * modules/unictype/property-hyphen-tests: Likewise.
4562         * modules/unictype/property-id-continue-tests: Likewise.
4563         * modules/unictype/property-id-start-tests: Likewise.
4564         * modules/unictype/property-ideographic-tests: Likewise.
4565         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4566         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4567         * modules/unictype/property-ignorable-control-tests: Likewise.
4568         * modules/unictype/property-iso-control-tests: Likewise.
4569         * modules/unictype/property-join-control-tests: Likewise.
4570         * modules/unictype/property-left-of-pair-tests: Likewise.
4571         * modules/unictype/property-line-separator-tests: Likewise.
4572         * modules/unictype/property-logical-order-exception-tests: Likewise.
4573         * modules/unictype/property-lowercase-tests: Likewise.
4574         * modules/unictype/property-math-tests: Likewise.
4575         * modules/unictype/property-non-break-tests: Likewise.
4576         * modules/unictype/property-not-a-character-tests: Likewise.
4577         * modules/unictype/property-numeric-tests: Likewise.
4578         * modules/unictype/property-other-alphabetic-tests: Likewise.
4579         * modules/unictype/property-other-default-ignorable-code-point-tests:
4580         Likewise.
4581         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4582         * modules/unictype/property-other-id-continue-tests: Likewise.
4583         * modules/unictype/property-other-id-start-tests: Likewise.
4584         * modules/unictype/property-other-lowercase-tests: Likewise.
4585         * modules/unictype/property-other-math-tests: Likewise.
4586         * modules/unictype/property-other-uppercase-tests: Likewise.
4587         * modules/unictype/property-paired-punctuation-tests: Likewise.
4588         * modules/unictype/property-paragraph-separator-tests: Likewise.
4589         * modules/unictype/property-pattern-syntax-tests: Likewise.
4590         * modules/unictype/property-pattern-white-space-tests: Likewise.
4591         * modules/unictype/property-private-use-tests: Likewise.
4592         * modules/unictype/property-punctuation-tests: Likewise.
4593         * modules/unictype/property-quotation-mark-tests: Likewise.
4594         * modules/unictype/property-radical-tests: Likewise.
4595         * modules/unictype/property-sentence-terminal-tests: Likewise.
4596         * modules/unictype/property-soft-dotted-tests: Likewise.
4597         * modules/unictype/property-space-tests: Likewise.
4598         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4599         * modules/unictype/property-test-tests: Likewise.
4600         * modules/unictype/property-titlecase-tests: Likewise.
4601         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4602         * modules/unictype/property-unified-ideograph-tests: Likewise.
4603         * modules/unictype/property-uppercase-tests: Likewise.
4604         * modules/unictype/property-variation-selector-tests: Likewise.
4605         * modules/unictype/property-white-space-tests: Likewise.
4606         * modules/unictype/property-xid-continue-tests: Likewise.
4607         * modules/unictype/property-xid-start-tests: Likewise.
4608         * modules/unictype/property-zero-width-tests: Likewise.
4609         * modules/unictype/scripts-tests: Likewise.
4610         * modules/unictype/syntax-c-ident-tests: Likewise.
4611         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4612         * modules/unictype/syntax-java-ident-tests: Likewise.
4613         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4614         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4615         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4616         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4617         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4618         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4619         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4620         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4621         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4622         * modules/uniname/uniname-tests: Likewise.
4623         * modules/uninorm/canonical-decomposition-tests: Likewise.
4624         * modules/uninorm/compat-decomposition-tests: Likewise.
4625         * modules/uninorm/composition-tests: Likewise.
4626         * modules/uninorm/decomposing-form-tests: Likewise.
4627         * modules/uninorm/decomposition-tests: Likewise.
4628         * modules/uninorm/filter-tests: Likewise.
4629         * modules/uninorm/nfc-tests: Likewise.
4630         * modules/uninorm/nfd-tests: Likewise.
4631         * modules/uninorm/nfkc-tests: Likewise.
4632         * modules/uninorm/nfkd-tests: Likewise.
4633         * modules/uninorm/u8-normcmp-tests: Likewise.
4634         * modules/uninorm/u8-normcoll-tests: Likewise.
4635         * modules/uninorm/u16-normcmp-tests: Likewise.
4636         * modules/uninorm/u16-normcoll-tests: Likewise.
4637         * modules/uninorm/u32-normcmp-tests: Likewise.
4638         * modules/uninorm/u32-normcoll-tests: Likewise.
4639         * modules/unistdio/u8-asnprintf-tests: Likewise.
4640         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4641         * modules/unistdio/u8-vasprintf-tests: Likewise.
4642         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4643         * modules/unistdio/u8-vsprintf-tests: Likewise.
4644         * modules/unistdio/u16-asnprintf-tests: Likewise.
4645         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4646         * modules/unistdio/u16-vasprintf-tests: Likewise.
4647         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4648         * modules/unistdio/u16-vsprintf-tests: Likewise.
4649         * modules/unistdio/u32-asnprintf-tests: Likewise.
4650         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4651         * modules/unistdio/u32-vasprintf-tests: Likewise.
4652         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4653         * modules/unistdio/u32-vsprintf-tests: Likewise.
4654         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4655         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4656         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4657         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4658         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4659         * modules/unistr/u8-check-tests: Likewise.
4660         * modules/unistr/u8-chr-tests: Likewise.
4661         * modules/unistr/u8-cmp-tests: Likewise.
4662         * modules/unistr/u8-cmp2-tests: Likewise.
4663         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4664         * modules/unistr/u8-cpy-tests: Likewise.
4665         * modules/unistr/u8-mblen-tests: Likewise.
4666         * modules/unistr/u8-mbsnlen-tests: Likewise.
4667         * modules/unistr/u8-mbtouc-tests: Likewise.
4668         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4669         * modules/unistr/u8-mbtoucr-tests: Likewise.
4670         * modules/unistr/u8-move-tests: Likewise.
4671         * modules/unistr/u8-next-tests: Likewise.
4672         * modules/unistr/u8-prev-tests: Likewise.
4673         * modules/unistr/u8-set-tests: Likewise.
4674         * modules/unistr/u8-stpcpy-tests: Likewise.
4675         * modules/unistr/u8-stpncpy-tests: Likewise.
4676         * modules/unistr/u8-strcat-tests: Likewise.
4677         * modules/unistr/u8-strcmp-tests: Likewise.
4678         * modules/unistr/u8-strcoll-tests: Likewise.
4679         * modules/unistr/u8-strcpy-tests: Likewise.
4680         * modules/unistr/u8-strdup-tests: Likewise.
4681         * modules/unistr/u8-strlen-tests: Likewise.
4682         * modules/unistr/u8-strmblen-tests: Likewise.
4683         * modules/unistr/u8-strmbtouc-tests: Likewise.
4684         * modules/unistr/u8-strncat-tests: Likewise.
4685         * modules/unistr/u8-strncmp-tests: Likewise.
4686         * modules/unistr/u8-strncpy-tests: Likewise.
4687         * modules/unistr/u8-strnlen-tests: Likewise.
4688         * modules/unistr/u8-to-u16-tests: Likewise.
4689         * modules/unistr/u8-to-u32-tests: Likewise.
4690         * modules/unistr/u8-uctomb-tests: Likewise.
4691         * modules/unistr/u16-check-tests: Likewise.
4692         * modules/unistr/u16-chr-tests: Likewise.
4693         * modules/unistr/u16-cmp-tests: Likewise.
4694         * modules/unistr/u16-cmp2-tests: Likewise.
4695         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4696         * modules/unistr/u16-cpy-tests: Likewise.
4697         * modules/unistr/u16-mblen-tests: Likewise.
4698         * modules/unistr/u16-mbsnlen-tests: Likewise.
4699         * modules/unistr/u16-mbtouc-tests: Likewise.
4700         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4701         * modules/unistr/u16-mbtoucr-tests: Likewise.
4702         * modules/unistr/u16-move-tests: Likewise.
4703         * modules/unistr/u16-next-tests: Likewise.
4704         * modules/unistr/u16-prev-tests: Likewise.
4705         * modules/unistr/u16-set-tests: Likewise.
4706         * modules/unistr/u16-stpcpy-tests: Likewise.
4707         * modules/unistr/u16-stpncpy-tests: Likewise.
4708         * modules/unistr/u16-strcat-tests: Likewise.
4709         * modules/unistr/u16-strcmp-tests: Likewise.
4710         * modules/unistr/u16-strcoll-tests: Likewise.
4711         * modules/unistr/u16-strcpy-tests: Likewise.
4712         * modules/unistr/u16-strdup-tests: Likewise.
4713         * modules/unistr/u16-strlen-tests: Likewise.
4714         * modules/unistr/u16-strmblen-tests: Likewise.
4715         * modules/unistr/u16-strmbtouc-tests: Likewise.
4716         * modules/unistr/u16-strncat-tests: Likewise.
4717         * modules/unistr/u16-strncmp-tests: Likewise.
4718         * modules/unistr/u16-strncpy-tests: Likewise.
4719         * modules/unistr/u16-strnlen-tests: Likewise.
4720         * modules/unistr/u16-to-u32-tests: Likewise.
4721         * modules/unistr/u16-to-u8-tests: Likewise.
4722         * modules/unistr/u16-uctomb-tests: Likewise.
4723         * modules/unistr/u32-check-tests: Likewise.
4724         * modules/unistr/u32-chr-tests: Likewise.
4725         * modules/unistr/u32-cmp-tests: Likewise.
4726         * modules/unistr/u32-cmp2-tests: Likewise.
4727         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4728         * modules/unistr/u32-cpy-tests: Likewise.
4729         * modules/unistr/u32-mblen-tests: Likewise.
4730         * modules/unistr/u32-mbsnlen-tests: Likewise.
4731         * modules/unistr/u32-mbtouc-tests: Likewise.
4732         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4733         * modules/unistr/u32-mbtoucr-tests: Likewise.
4734         * modules/unistr/u32-move-tests: Likewise.
4735         * modules/unistr/u32-next-tests: Likewise.
4736         * modules/unistr/u32-prev-tests: Likewise.
4737         * modules/unistr/u32-set-tests: Likewise.
4738         * modules/unistr/u32-stpcpy-tests: Likewise.
4739         * modules/unistr/u32-stpncpy-tests: Likewise.
4740         * modules/unistr/u32-strcat-tests: Likewise.
4741         * modules/unistr/u32-strcmp-tests: Likewise.
4742         * modules/unistr/u32-strcoll-tests: Likewise.
4743         * modules/unistr/u32-strcpy-tests: Likewise.
4744         * modules/unistr/u32-strdup-tests: Likewise.
4745         * modules/unistr/u32-strlen-tests: Likewise.
4746         * modules/unistr/u32-strmblen-tests: Likewise.
4747         * modules/unistr/u32-strmbtouc-tests: Likewise.
4748         * modules/unistr/u32-strncat-tests: Likewise.
4749         * modules/unistr/u32-strncmp-tests: Likewise.
4750         * modules/unistr/u32-strncpy-tests: Likewise.
4751         * modules/unistr/u32-strnlen-tests: Likewise.
4752         * modules/unistr/u32-to-u16-tests: Likewise.
4753         * modules/unistr/u32-to-u8-tests: Likewise.
4754         * modules/unistr/u32-uctomb-tests: Likewise.
4755         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4756         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4757         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4758         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4759         * modules/uniwidth/u8-strwidth-tests: Likewise.
4760         * modules/uniwidth/u8-width-tests: Likewise.
4761         * modules/uniwidth/u16-strwidth-tests: Likewise.
4762         * modules/uniwidth/u16-width-tests: Likewise.
4763         * modules/uniwidth/u32-strwidth-tests: Likewise.
4764         * modules/uniwidth/u32-width-tests: Likewise.
4765         * modules/uniwidth/width-tests: Likewise.
4766
4767 2010-05-18  Richard Jones  <rjones@redhat.com>
4768
4769         doc: users.txt: list hivex
4770         * users.txt: Add hivex.
4771
4772 2010-05-18  Richard Jones  <rjones@redhat.com>
4773
4774         doc: users.txt: list febootstrap
4775         * users.txt: Add febootstrap.
4776
4777 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4778
4779         bootstrap: fix an error when gnulib is not used as a git submodule
4780         * build-aux/bootstrap (gnulib_path): If its length is zero then
4781         assign "gnulib" to it.
4782         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4783
4784 2010-05-16  Bruno Haible  <bruno@clisp.org>
4785
4786         Avoid autoconf warnings about AM_ICONV.
4787         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4788         2.64.
4789
4790 2010-05-16  Bruno Haible  <bruno@clisp.org>
4791
4792         absolute-header: Make the macro usable in more situations.
4793         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4794         from gl_ABSOLUTE_HEADER.
4795         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4796
4797 2010-05-16  James Youngman  <jay@gnu.org>
4798
4799         doc: update users.txt
4800         * users.txt: Add CSSC.
4801
4802 2010-05-16  Jim Meyering  <meyering@redhat.com>
4803
4804         init.sh: fix an error in the previous change; add more comments
4805         * tests/init.sh: Compare exit code in loop against 9, not 2.
4806         Patch by Bruno Haible.
4807         Make the two tests more similar by adding an empty "then" clause.
4808         Add comments.
4809
4810         init.sh: avoid unnecessary shell re-exec
4811         * tests/init.sh: Improve the re-exec-required check to first test the
4812         current shell.  If it passes the test, do not search for a shell that
4813         does pass, and do not re-exec.  This test is particularly contorted to
4814         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4815         of $(...) evokes a syntax error and causes immediate shell exit with
4816         status 2.  Bruno Haible reported that the re-exec made it impossible
4817         to single-step through any init.sh-using script.
4818
4819 2010-05-16  Bruno Haible  <bruno@clisp.org>
4820
4821         Fix collision between gnulib's and libintl's printf replacements.
4822         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4823         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4824         (printf): When using GNU C, map the __printf__ function to rpl_printf
4825         via __asm__. When not using GNU C, define rpl_printf instead of
4826         __printf__.
4827         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4828         commit.
4829         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4830         commit.
4831         * m4/asm-underscore.m4: New file.
4832         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4833         * modules/stdio (Files): Add m4/asm-underscore.m4.
4834         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4835         Reported by Ben Pfaff.
4836
4837 2010-05-16  Bruno Haible  <bruno@clisp.org>
4838
4839         verify: Avoid skipping the test on openSUSE 11.0.
4840         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4841
4842 2010-05-13  Bruno Haible  <bruno@clisp.org>
4843
4844         Avoid useless warnings from G++.
4845         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4846         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4847         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4848
4849 2010-05-11  Jim Meyering  <meyering@redhat.com>
4850
4851         maint.mk: tweak preceding change
4852         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4853         regexps tighter by anchoring at EOL, and make the new group "shy"
4854         for slightly decreased overhead.
4855
4856 2010-05-11  Eric Blake  <eblake@redhat.com>
4857
4858         maint.mk: gnulib doesn't guarantee NSIG
4859         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4860
4861 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4862
4863         test-pwrite.c: Remove unused variable declaration.
4864         * tests/test-pwrite.c (main): Remove read_buf declaration.
4865
4866         Remove useless test-pwrite.sh file.
4867         * tests/test-pwrite.sh: Delete file.
4868         * modules/pwrite-tests: Remove references.
4869         Reported by Bruno Haible.
4870
4871 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4872
4873         init.sh: fix a typo
4874         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4875
4876 2010-05-10  Jim Meyering  <meyering@redhat.com>
4877
4878         maint.mk: avoid using a temporary file in the always-defined-macros check
4879         * top/maint.mk (.re-defmac): Remove rule.
4880         (gl_trap_): Remove definition.
4881         (sc_prohibit_always-defined_macros): Rewrite not to create and
4882         depend on a temporary file.  Instead, depend on GNU grep's ability
4883         to read a list of regular expressions from stdin when given "-f -".
4884
4885 2010-05-09  Bruno Haible  <bruno@clisp.org>
4886
4887         Update to GNU gettext 0.18, part 1.
4888         * m4/gettext.m4: Update to GNU gettext 0.18.
4889         * m4/intl.m4: Likewise.
4890         * m4/po.m4: Likewise.
4891         * modules/gettext (Files): Add m4/fcntl-o.m4.
4892         (configure.ac): Require gettext infrastructure from version 0.18.
4893
4894 2010-05-09  Jim Meyering  <meyering@redhat.com>
4895
4896         init.sh: enable MALLOC_PERTURB_
4897         * tests/init.sh: Enable glibc's malloc-perturbing option.
4898
4899         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4900         With my recent change in init.sh from the two-line form:
4901             -#   : ${srcdir=.}
4902             -#   . "$srcdir/init.sh"; path_prepend_ .
4903             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4904         I noticed that using the one-line form would cause this test
4905         to fail with a false-positive, or to stop working altogether,
4906         depending on whether help-version changed or all the tests did.
4907         * top/maint.mk (_hv_regex): Remove this definition.
4908         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4909         (_hv_regex_strong): Use a stronger regex to check for conformance.
4910         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4911         Give a separate diagnostic for lack of conforming use.
4912
4913         maint.mk: prohibit definition of symbols defined by gnulib
4914         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4915         definition of symbols defined by gnulib.
4916
4917 2010-05-09  Bruno Haible  <bruno@clisp.org>
4918
4919         acl: Avoid test failure on Cygwin-hosted mingw.
4920         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4921
4922 2010-05-09  Bruno Haible  <bruno@clisp.org>
4923
4924         error: Use system's fcntl function.
4925         * lib/error.c (fcntl): Undefine.
4926
4927 2010-05-09  Jim Meyering  <meyering@redhat.com>
4928
4929         verify: adjust formatting to be more consistent
4930         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4931         argument-list '('s, and after one comma.
4932
4933 2010-05-09  Bruno Haible  <bruno@clisp.org>
4934
4935         error: More reliable output on mingw.
4936         * lib/error.c: Include <windows.h>.
4937         (is_open): New function.
4938         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
4939         defined.
4940
4941 2010-05-09  Bruno Haible  <bruno@clisp.org>
4942
4943         vasnprintf: Fix syntax errors in libintl build on mingw.
4944         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
4945         pad_ourselves and prec_ourselves after use.
4946
4947 2010-05-08  Bruno Haible  <bruno@clisp.org>
4948
4949         * lib/config.charset: Update comments for Cygwin 1.7.
4950         * lib/localcharset.c: Likewise.
4951
4952 2010-05-07  Jim Meyering  <meyering@redhat.com>
4953
4954         init.sh: improve comments
4955         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
4956         . "${srcdir=.}/init.sh"; path_prepend_ .
4957         Add a note about path_prepend_ and the alternative of using
4958         TESTS_ENVIRONMENT.
4959
4960 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4961
4962         exclude: Unescape hashed patterns in wildcard mode.
4963         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
4964         to the hash list.
4965         * tests/test-exclude8.sh: New test case.
4966         * modules/exclude-tests: Add new test.
4967
4968 2010-05-05  Eric Blake  <eblake@redhat.com>
4969
4970         verify: automate tests
4971         * modules/verify-tests: New module.
4972         * tests/test-verify.sh: New file.
4973         * tests/test-verify.c: Guard each negative test with a unique id.
4974         Also avoid warning about unused left hand of comma expressions.
4975
4976 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4977
4978         Further improvements to verify.h, suggested by Eric Blake.
4979         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
4980         the GL_* versions, to avoid collision with OpenGL.
4981         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
4982         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
4983         than testing merely whether it's defined.
4984
4985         Modify verify.h to pacify gcc -Wredundant_decls.
4986         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
4987         These use the prefix "GL_" since they're likely to be useful elsewhere.
4988         We may need to break them out into a different .h file.
4989         (__COUNTER__): Define to 0 if the compiler doesn't support it.
4990         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
4991         of verify_function__.
4992
4993 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4994
4995         Tests for module pwrite.
4996         * modules/pwrite-tests: New file.
4997         * tests/test-pwrite.sh: New file.
4998         * tests/test-pwrite.c: New file.
4999
5000         New module pwrite.
5001         * lib/unistd.in.h (pwrite): New declaration.
5002         * lib/pwrite.c: New file, from glibc with modifications.
5003         * m4/pwrite.m4: New file.
5004         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5005         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5006         REPLACE_PWRITE.
5007         * modules/pwrite: New file.
5008         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5009         REPLACE_PWRITE.
5010         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5011         * doc/posix-functions/pwrite.texi: Mention the new module.
5012
5013 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5014
5015         pread: Update documentation.
5016         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5017
5018 2010-05-04  Eric Blake  <eblake@redhat.com>
5019
5020         docs: update cygwin progress
5021         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5022         this bug.
5023         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5024         Added in cygwin 1.7.2.
5025         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5026         Likewise.
5027         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5028         Likewise.
5029         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5030         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5031         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5032         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5033         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5034         Mention nproc module.
5035         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5036         bug in cygwin 1.7.5 addition.
5037         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5038         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5039         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5040         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5041         1.7.5.
5042         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5043         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5044         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5045         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5046         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5047         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5048         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5049         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5050         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5051         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5052         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5053         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5054         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5055         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5056         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5057         Likewise.
5058         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5059         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5060         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5061         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5062         Likewise.
5063         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5064         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5065         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5066         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5067         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5068         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5069         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5070         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5071         Likewise.
5072         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5073         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5074         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5075         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5076         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5077         Likewise.
5078         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5079         Likewise.
5080         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5081         Likewise.
5082         * doc/glibc-functions/xdrrec_endofrecord.texi
5083         (xdrrec_endofrecord): Likewise.
5084         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5085         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5086         Likewise.
5087         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5088         Likewise.
5089
5090 2010-05-04  Jim Meyering  <meyering@redhat.com>
5091
5092         gendocs.sh: make its "-s FILE" option more useful
5093         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5094         $PACKAGE to reflect the probably-different basename of "FILE".
5095
5096 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5097
5098         bootstrap: don't ignore download_po_files failure
5099         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5100         failure.
5101
5102 2010-05-03  Jim Meyering  <meyering@redhat.com>
5103
5104         maint.mk: allow to pass options to gendocs.sh
5105         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5106         (gendocs_options_): New overridable variable.
5107
5108         gnu-web-doc-update: don't ignore configure or build failure
5109         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5110
5111         announce-gen: backslash-escape '@'s in --help output
5112         * build-aux/announce-gen: Fix syntax errors.
5113
5114         maint.mk, announce-gen: allow project-specific announcement mail headers
5115         * top/maint.mk (translation_project_): Define default.
5116         (announcement_Cc_, announcement_mail_headers_): Likewise.
5117         (announcement): Invoke announce-gen with new --mail-headers option.
5118         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5119
5120         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5121         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5122         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5123         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5124         line in the "err2" output file when running "make check" in verbose
5125         mode (i.e., with set -x enabled).
5126
5127 2010-05-03  Bruno Haible  <bruno@clisp.org>
5128
5129         wctob: Fix for weird platforms.
5130         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5131         argument value.
5132
5133 2010-05-03  Jim Meyering  <meyering@redhat.com>
5134
5135         maint.mk: prohibit unwarranted use of <strings.h>
5136         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5137         strings.h in a file that does not also use strcasecmp, strncasecmp,
5138         ffs or ffsll.
5139
5140         maint.mk: remove obsolete comments
5141         * top/maint.mk: Remove stale, commented-out rules.
5142
5143 2010-05-02  Bruno Haible  <bruno@clisp.org>
5144
5145         wcwidth: Declare also when it's aliased.
5146         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5147         macro.
5148
5149 2010-05-02  Bruno Haible  <bruno@clisp.org>
5150
5151         Fix regression from 2010-04-25.
5152         * gnulib-tool (func_modules_transitive_closure): Check the status of
5153         all modules, not only of the tests that are of the form foo-tests where
5154         foo is a module.
5155
5156 2010-05-02  Bruno Haible  <bruno@clisp.org>
5157
5158         wctob: Work around nasty Cygwin 1.7.2 bug.
5159         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5160         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5161
5162 2010-05-01  Bruno Haible  <bruno@clisp.org>
5163
5164         fpurge: Sharper test.
5165         * tests/test-fpurge.c (main): Add one more ftell check.
5166         * modules/fpurge-tests (Depends-on): Add ftell.
5167         Suggested by Eric Blake.
5168
5169 2010-05-01  Bruno Haible  <bruno@clisp.org>
5170
5171         ftello: Another test.
5172         * tests/test-ftello3.c: New file.
5173         * modules/ftello-tests (Files): Add it.
5174         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5175         MOSTLYCLEANFILES.
5176
5177         ftell: Another test.
5178         * tests/test-ftell3.c: New file.
5179         * modules/ftell-tests (Files): Add it.
5180         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5181         MOSTLYCLEANFILES.
5182
5183 2010-05-01  Bruno Haible  <bruno@clisp.org>
5184
5185         ftell, ftello: Work around Solaris bug.
5186         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5187         * lib/ftello.c: Include stdio-impl.h.
5188         (ftello): On Solaris, when _IOWRT is set, compute the result without
5189         looking at _IOREAD.
5190         * modules/ftello (Files): Add lib/stdio-impl.h.
5191         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5192         * doc/posix-functions/ftello.texi: Likewise.
5193         Reported by Eric Blake.
5194
5195 2010-05-01  Bruno Haible  <bruno@clisp.org>
5196
5197         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5198         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5199         the _IOWRT flag is also set.
5200
5201 2010-05-01  Bruno Haible  <bruno@clisp.org>
5202
5203         Fix doc about a HP-UX stdio bug.
5204         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5205         * doc/posix-functions/ftello.texi: Likewise.
5206
5207 2010-05-01  Bruno Haible  <bruno@clisp.org>
5208
5209         lseek test: Fix failure on Solaris.
5210         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5211         output.
5212
5213 2010-04-30  Jim Meyering  <meyering@redhat.com>
5214
5215         bootstrap: don't ignore failure to generate po*/Makevars
5216         * build-aux/bootstrap (with_gettext): Don't ignore failure
5217         to create po/Makevars or runtime-po/Makevars.
5218
5219 2010-04-29  Eric Blake  <eblake@redhat.com>
5220
5221         headers: relax license to LGPLv2+
5222         * modules/fcntl-h (License): Relax license.
5223         * modules/getopt-posix (License): Likewise.
5224         * modules/locale (License): Likewise.
5225         * modules/math (License): Likewise.
5226         * modules/pty (License): Likewise.
5227         * modules/sched (License): Likewise.
5228         * modules/search (License): Likewise.
5229         * modules/spawn (License): Likewise.
5230         * modules/stdarg (License): Likewise.
5231         * modules/sysexits (License): Likewise.
5232
5233 2010-04-29  Jim Meyering  <meyering@redhat.com>
5234
5235         inttypes: relax license to LGPLv2+
5236         * modules/inttypes (License): Relax license.
5237
5238 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5239
5240         * top/maint.mk (indent): Run twice to produce idempotent results.
5241
5242 2010-04-28  Bruno Haible  <bruno@clisp.org>
5243
5244         getdate: Generate getdate.c in the source directory.
5245         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5246         MOSTLYCLEANFILES.
5247         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5248
5249 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5250
5251         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5252         is not declared as a const *; avoid warnings in that case.
5253
5254 2010-04-28  Eric Blake  <eblake@redhat.com>
5255
5256         canonicalize-lgpl: avoid compiler warning
5257         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5258         declaration' / 'extraneous semicolon' warning with some compilers.
5259         Reported by Andreas Gruenbacher.
5260
5261 2010-04-28  Jim Meyering  <meyering@redhat.com>
5262
5263         init.sh: ensure a more reliable exit status when exiting via trap
5264         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5265         Inspired by patches from Dmitry V. Levin.
5266         Also trap on signal 3 (SIGQUIT).
5267
5268 2010-04-27  Bruno Haible  <bruno@clisp.org>
5269
5270         Update doc about utimes().
5271         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5272         'utimens' module.
5273         Reported by Andreas Gruenbacher <agruen@suse.de>.
5274
5275 2010-04-27  Eric Blake  <eblake@redhat.com>
5276
5277         full-read, full-write: relax license
5278         * modules/full-read (License): Drop to LGPLv2+.
5279         * modules/full-write (License): Likewise.
5280         * modules/safe-read (License): Likewise.
5281         * modules/safe-write (License): Likewise.
5282
5283         pthread: mention library for linking
5284         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5285
5286 2010-04-27  Jim Meyering  <meyering@redhat.com>
5287
5288         maint.mk: fix a bug introduced in last change
5289         * top/maint.mk (gl_assured_headers_): Now that all names are on
5290         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5291         is not anchored to end of word, it should be adequate.
5292
5293         maint.mk: avoid side-effect in latest syntax-check
5294         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5295         to run commands via $(shell...), and hence to incur cost only when
5296         the new rule is actually run.
5297
5298         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5299         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5300         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5301         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5302         (gl_assured_headers_, az_, AZ_): Define.
5303         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5304
5305 2010-04-26  Jim Meyering  <jim@meyering.net>
5306             Bruno Haible  <bruno@clisp.org>
5307
5308         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5309         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5310         Prompted by an exchange with Gilles Espinasse.
5311
5312 2010-04-26  Jim Meyering  <meyering@redhat.com>
5313
5314         git-version-gen: aesthetic tweak
5315         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5316         so that the command remains on a single line.
5317
5318 2010-04-26  Eric Blake  <eblake@redhat.com>
5319
5320         git-version-gen: allow use on EBCDIC hosts
5321         * build-aux/git-version-gen (dirty): Use literal rather than tying
5322         ourselves to ascii.
5323         Reported by Steve Goetze.
5324
5325 2010-04-25  Bruno Haible  <bruno@clisp.org>
5326
5327         netdb: Add support for GNULIB_POSIXCHECK.
5328         * lib/netdb.in.h: Include warn-on-use.h.
5329         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5330         functions are used when GNULIB_POSIXCHECK is defined and the
5331         getaddrinfo module is not in use.
5332         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5333         freeaddrinfo, gai_strerror, getnameinfo are declared.
5334         * modules/netdb (Depends-on): Add warn-on-use.
5335         (Makefile.am): Include warn-on-use.h in netdb.h.
5336
5337 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5338
5339         build: avoid "make check" failure without .git/ directory
5340         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5341         there is no .git/ directory.
5342
5343 2010-04-25  Bruno Haible  <bruno@clisp.org>
5344
5345         ptsname: Fix misuse of ttyname_r.
5346         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5347         of errno.
5348
5349 2010-04-25  Bruno Haible  <bruno@clisp.org>
5350
5351         ttyname_r: Make it work on Solaris 10.
5352         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5353         if the system function has the POSIX declaration. Test whether the
5354         function fails if the buffer is less than 128 bytes large.
5355         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5356         system's ttyname_r function. Provide a reasonably large buffer.
5357         * modules/ttyname_r (Depends-on): Add extensions.
5358         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5359
5360 2010-04-25  Bruno Haible  <bruno@clisp.org>
5361
5362         Use the 'extensions' module for some more functions on Solaris.
5363         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5364         module.
5365         * doc/posix-functions/ctime_r.texi: Likewise.
5366         * doc/posix-functions/getgrgid_r.texi: Likewise.
5367         * doc/posix-functions/getgrnam_r.texi: Likewise.
5368         * doc/posix-functions/getpwnam_r.texi: Likewise.
5369         * doc/posix-functions/getpwuid_r.texi: Likewise.
5370         * doc/posix-functions/readdir_r.texi: Likewise.
5371         * doc/posix-functions/sigwait.texi: Likewise.
5372         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5373         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5374
5375 2010-04-25  Bruno Haible  <bruno@clisp.org>
5376
5377         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5378         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5379         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5380         * lib/ttyname_r.c: Include <limits.h>.
5381         (ttyname_r): Define using the system's ttyname_r function, if it exists
5382         and not on Solaris.
5383         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5384         set.
5385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5386         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5387         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5388         Reported by Simon Josefsson.
5389
5390 2010-04-25  Bruno Haible  <bruno@clisp.org>
5391
5392         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5393         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5394         * doc/posix-functions/ctime_r.texi: Likewise.
5395         * doc/posix-functions/getgrgid_r.texi: Likewise.
5396         * doc/posix-functions/getgrnam_r.texi: Likewise.
5397         * doc/posix-functions/getlogin_r.texi: Likewise.
5398         * doc/posix-functions/getpwnam_r.texi: Likewise.
5399         * doc/posix-functions/getpwuid_r.texi: Likewise.
5400         * doc/posix-functions/readdir_r.texi: Likewise.
5401         * doc/posix-functions/sigwait.texi: Likewise.
5402         * doc/posix-functions/ttyname_r.texi: Likewise.
5403         Reported by Simon Josefsson.
5404
5405 2010-04-25  Bruno Haible  <bruno@clisp.org>
5406
5407         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5408         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5409         also to --create-testdir.
5410         (func_acceptable): Don't consider the status of *-tests modules here.
5411         (func_modules_transitive_closure): Consider it here, before including a
5412         test module.
5413         (func_import, func_create_testdir): Set inc_all_direct_tests,
5414         inc_all_indirect_tests.
5415         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5416         --create-testdir and --create-megatestdir.
5417
5418 2010-04-25  Bruno Haible  <bruno@clisp.org>
5419
5420         gnulib-tool: Add --without-*-tests options.
5421         * gnulib-tool (func_usage): Document the --without-*-tests options.
5422         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5423         excl_unportable_tests): New variables.
5424         Fail if they are specified with --import or --update.
5425         (func_acceptable): Respect the excl_*_tests variables.
5426         (func_import): Set the excl_*_tests variables to empty.
5427
5428 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5429             Bruno Haible  <bruno@clisp.org>
5430
5431         Work around a MacOS X 10.4 bug with openpty.
5432         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5433         * tests/test-openpty.c (main): Close the master side explicitly.
5434
5435 2010-04-25  Bruno Haible  <bruno@clisp.org>
5436
5437         strnlen: Fix a C++ test error on MacOS X and Solaris.
5438         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5439         the function is not declared.
5440         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5441         Simon Josefsson.
5442
5443 2010-04-24  Bruno Haible  <bruno@clisp.org>
5444
5445         Avoid a gcc warning.
5446         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5447         of correct type for %08lx directive.
5448         Reported by Eric Blake.
5449
5450 2010-04-24  Bruno Haible  <bruno@clisp.org>
5451
5452         vasnprintf: Correct errno value in case of out-of-memory.
5453         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5454         or sprintf. Use the errno value from SNPRINTF or sprintf.
5455         Reported by Ian Beckwith <ianb@erislabs.net>.
5456
5457 2010-04-24  Bruno Haible  <bruno@clisp.org>
5458
5459         ansi-c++-opt: Find correct compiler when cross-compiling.
5460         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5461         AC_CHECK_PROGS.
5462         Reported by Simon Josefsson.
5463
5464 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5465
5466         vc-list-files: Add support for subversion
5467         * build-aux/vc-list-files: Use "svn list" to generate the list of
5468         files controlled by subversion.
5469
5470 2010-04-23  Jim Meyering  <meyering@redhat.com>
5471
5472         vc-list-files tests: convert to use init.sh
5473         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5474         path_prepend_.
5475         Use Exit, not exit.
5476         Use skip_ rather than open coding it.
5477         Remove trap set-up and compare definitions.
5478         * tests/test-vc-list-files-git.sh: Likewise.
5479         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5480
5481 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5482
5483         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5484         backup files.
5485
5486 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5487
5488         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5489
5490 2010-04-20  Eric Blake  <eblake@redhat.com>
5491
5492         tests: be robust to ignored SIGPIPE
5493         * tests/test-select-in.sh: Consume all output.
5494         * tests/test-lseek.sh: Check correct exit status, while avoiding
5495         EPIPE.
5496
5497 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5498             Bruno Haible  <bruno@clisp.org>
5499
5500         visibility: Don't use -fvisibility if it leads to a warning.
5501         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5502         yes, don't pretend that visibility works if it leads to a warning.
5503         Reported by Mike Gran <spk121@yahoo.com>.
5504
5505 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5506
5507         * build-aux/bootstrap: Use "git -h" for testing for supported options
5508         instead of "git --help".  The short-form option only shows a summary,
5509         and doesn't layout the full man page.  Grep for the full option name
5510         in the summary, too.
5511
5512 2010-04-19  Bruno Haible  <bruno@clisp.org>
5513
5514         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5515         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5516         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5517         mention of RELOCATABLE_STRIP.
5518         Reported by Sylvain Beucler <beuc@beuc.net>.
5519
5520 2010-04-19  Bruno Haible  <bruno@clisp.org>
5521
5522         * lib/diffseq.h: Fix typo in comment.
5523         Reported by Eric Blake.
5524
5525 2010-04-19  Bruno Haible  <bruno@clisp.org>
5526
5527         ioctl: Move autoconf macro to a .m4 file.
5528         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5529         * modules/ioctl (Files): Add it.
5530         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5531         Reported by Ian Beckwith <ianb@erislabs.net>.
5532
5533 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5534             Bruno Haible  <bruno@clisp.org>
5535
5536         diffseq: Accommodate use-case with abstract arrays.
5537         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5538         is not defined.
5539         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5540         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5541
5542 2010-04-18  Bruno Haible  <bruno@clisp.org>
5543
5544         * doc/posix-headers/stdbool.texi: More precise wording.
5545
5546 2010-04-17  Jim Meyering  <meyering@redhat.com>
5547
5548         maint.mk: use gnu-style indentation in an embedded perl script
5549         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5550         Rename variable: s/two/last_two_bytes/
5551
5552 2010-04-16  Eric Blake  <eblake@redhat.com>
5553
5554         test-stdbool: skip test that fails with Solaris CC
5555         * tests/test-stdbool.c (f): Skip test that causes compilation
5556         error under buggy C++ compiler.
5557         * lib/stdbool.in.h: Document the limitation.
5558         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5559
5560         setenv: allow compilation with C++
5561         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5562         register keyword.
5563
5564         stdint: allow test to pass with C++
5565         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5566
5567         getopt: allow compilation with C++
5568         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5569         struct.
5570         * lib/getopt.c (_getopt_internal_r): Use correct type.
5571         Reported by Dagobert Michelson, via Joel E. Denny.
5572
5573 2010-04-16  Bruno Haible  <bruno@clisp.org>
5574
5575         Override netdb.h always.
5576         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5577         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5578         Reported by Ludovic Courtès <ludo@gnu.org>.
5579
5580 2010-04-15  Bruno Haible  <bruno@clisp.org>
5581
5582         openpty: Fix mistake from 2010-03-21.
5583         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5584         Reported by Simon Josefsson.
5585
5586 2010-04-15  Eric Blake  <eblake@redhat.com>
5587
5588         test-forkpty: fix expected signature
5589         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5590         Reported by Simon Josefsson.
5591
5592 2010-04-15  Jim Meyering  <meyering@redhat.com>
5593
5594         maint.mk: texinfo_suffix_re_: correct the default regexp
5595         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5596
5597         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5598         make it configurable via texinfo_suffix_re_.
5599
5600 2010-04-14  Eric Blake  <eblake@redhat.com>
5601
5602         strtok_r: relax license to LGPLv2+
5603         * modules/strtok_r (License): Relax license.
5604         Reported by Matthias Bolte.
5605
5606 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5607
5608         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5609         version 1.4.4 by default instead of requiring the libgcrypt
5610         version used during build.  This makes it possible to use the
5611         application with older but still binary compatible libgcrypt
5612         versions.
5613
5614 2010-04-13  Eric Blake  <eblake@redhat.com>
5615
5616         getopt-gnu: match recent glibc fixes and posix ruling
5617         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5618         '+' handling, when requesting extensions.
5619         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5620         'W;' handling.
5621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5622         * doc/posix-functions/getopt.texi (getopt): Document this.
5623         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5624         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5625         Likewise.
5626
5627         getopt: merge bug fixes from glibc
5628         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5629         diagnostics.  Honor '+:' correctly.  Reject ';'.
5630
5631         getopt-posix: detect MacOS bug
5632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5633         optind when missing a required argument.
5634         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5635         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5636         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5637         Likewise.
5638
5639         getopt-posix: avoid spurious failure on Solaris
5640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5641         an indicator that setting optind=1 is sufficient for reset.
5642
5643         getopt-posix: avoid spurious failure on FreeBSD
5644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5645         in POSIX mode, since the m4 test uses it.
5646
5647         gnulib-tool: silence warning on BSD sh
5648         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5649
5650 2010-04-13  Jim Meyering  <meyering@redhat.com>
5651
5652         doc: users.txt: GNU patch now uses gnulib
5653         * users.txt: Add patch.
5654
5655 2010-04-12  Jim Meyering  <meyering@redhat.com>
5656
5657         maint.mk: generate more concise timing data for syntax-check rules
5658         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5659         " done" from each line that reports a syntax-check test duration.
5660
5661 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5662
5663         git-version-gen: use "git update-index..." rather than "git status"
5664         * build-aux/git-version-gen: Use git update-index --refresh, not
5665         "git status".  With some versions of git, "git status" would fail
5666         to update the index and result in an unwarranted "-dirty" suffix.
5667
5668 2010-04-11  Jim Meyering  <meyering@redhat.com>
5669
5670         openat: correct formatting (no semantic change)
5671         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5672         Suggested by Bruno Haible.
5673
5674 2010-04-11  Bruno Haible  <bruno@clisp.org>
5675
5676         Stricter declaration checking in testdirs.
5677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5678         If for_tests is true, augment AM_CPPFLAGS to define
5679         GNULIB_STRICT_CHECKING.
5680         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5681         GNULIB_STRICT_CHECKING is defined, verify that the function is
5682         declared.
5683
5684 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5685             Bruno Haible  <bruno@clisp.org>
5686
5687         libunistring: Improve configure output.
5688         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5689         Don't say "consider installing GNU libunistring" when checking again
5690         with libiconv.
5691
5692 2010-04-11  Bruno Haible  <bruno@clisp.org>
5693
5694         libunistring: Correct value of $LTLIBUNISTRING.
5695         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5696         correct the value of $LTLIBUNISTRING.
5697
5698 2010-04-11  Bruno Haible  <bruno@clisp.org>
5699
5700         havelib: Add static libraries to LIBS in the right order.
5701         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5702         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5703
5704 2010-04-11  Bruno Haible  <bruno@clisp.org>
5705
5706         libunistring: Detect libunistring also when it depends on libiconv.
5707         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5708         the second AC_LIB_HAVE_LINKFLAGS invocation.
5709
5710 2010-04-11  James Youngman  <jay@gnu.org>
5711
5712         close-stream: declare local scalars to be "const"
5713         * lib/close-stream.c (close_stream): Make boolean variables const
5714         to document the fact that we set but do not change them.
5715
5716 2010-04-11  Bruno Haible  <bruno@clisp.org>
5717
5718         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5719
5720 2010-04-11  Jim Meyering  <meyering@redhat.com>
5721
5722         maint.mk: don't include dist-check.mk
5723         * top/maint.mk: Remove bogus include directive.
5724
5725         maint.mk: improve empty-line-at-EOF check
5726         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5727         solution, rather than tail+Perl-based one.  The latter would read
5728         a few kilobytes from the end of each file, and did not handle empty
5729         files properly.
5730
5731         maint.mk: print the elapsed time for each syntax-check rule
5732         * top/maint.mk (sc_m_rules_): Save start time in a file.
5733         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5734         (local-check): Interpose the .z rules
5735
5736 2010-04-11  Jim Meyering  <meyering@redhat.com>
5737
5738         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5739         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5740         empty file with one that ends in an empty line.
5741
5742 2010-04-10  Bruno Haible  <bruno@clisp.org>
5743
5744         mkdir: Make it work on mingw64.
5745         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5746         * lib/mkdir.c: Update comment.
5747         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5748
5749 2010-04-10  Bruno Haible  <bruno@clisp.org>
5750
5751         Don't override improved macro from newer autoconf.
5752         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5753         autoconf >= 2.62.
5754         Reported by Joel E. Denny <jdenny@clemson.edu>.
5755
5756 2010-04-10  Jim Meyering  <meyering@redhat.com>
5757
5758         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5759         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5760
5761         maint.mk: correct a diagnostic
5762         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5763         in diagnostic; now use $prohibit.
5764
5765 2010-04-10  Bruno Haible  <address@hidden>
5766
5767         fchownat: Fix a C++ test error on Solaris 8.
5768         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5769         the function does not exist.
5770
5771 2010-04-10  Bruno Haible  <bruno@clisp.org>
5772
5773         vasnprintf: Add more tests.
5774         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5775         (test_function): Test converting an invalid wide string.
5776
5777         vasnprintf: Correct handling of unconvertible wide string arguments.
5778         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5779         VASNPRINTF.
5780         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5781         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5782         smaller than the expected maximum need for the directive. Set errno to
5783         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5784         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5786         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5787         * modules/vasnprintf (Files): Add m4/printf.m4.
5788         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5789
5790 2010-04-10  Bruno Haible  <bruno@clisp.org>
5791
5792         vasnprintf: Fix crash in %ls directive.
5793         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5794         string is passed as argument to %ls, with no precision and no width.
5795         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5796
5797 2010-04-10  Bruno Haible  <bruno@clisp.org>
5798
5799         vasnprintf: Fix multiple test failures on mingw.
5800         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5801         _snprintf, or snwprintf, not _snwprintf.
5802
5803 2010-04-10  Bruno Haible  <bruno@clisp.org>
5804
5805         write: Fix a C++ test error on mingw.
5806         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5807
5808 2010-04-10  Bruno Haible  <bruno@clisp.org>
5809
5810         vasnprintf test: Reduce code duplication.
5811         * tests/test-vasnprintf.c (test_function): New function, extracted from
5812         test_vasnprintf.
5813         (test_vasnprintf, test_asnprintf): Invoke it.
5814
5815 2010-04-10  Bruno Haible  <bruno@clisp.org>
5816
5817         strnlen: Fix warning in C++ mode on MacOS X.
5818         * lib/string.in.h (strnlen): Use the modern idiom.
5819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5820         defining strnlen as a macro already in <config.h>.
5821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5822         REPLACE_STRNLEN.
5823         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5824         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5825
5826 2010-04-08  James Youngman  <jay@gnu.org>
5827
5828         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5829         the example.
5830
5831 2010-04-09  Jim Meyering  <meyering@redhat.com>
5832
5833         maint.mk: print better diagnostic when there is no $(_hv_file)
5834         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5835         announce that when $(_hv_file) (aka help-version) does not exist.
5836
5837         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5838         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5839         not try to interpret its random input bytes.  Jarno Rajahalme reported
5840         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5841         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5842         (mktempd_): Likewise, just in case.
5843
5844         ftruncate: add two years to projected module removal date: 2012
5845         * m4/ftruncate.m4: Adjust comments.
5846
5847         ftruncate: mark module as obsolete; even MinGW provides it, now
5848         * modules/ftruncate (Status): Obsolete.
5849         (Notice): Say that.
5850         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5851         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5852
5853 2010-04-08  Bruno Haible  <bruno@clisp.org>
5854
5855         Fix side effects from tests-related modules.
5856         * modules/dprintf-posix (Comment): New section.
5857         * modules/fprintf-posix (Comment): Likewise.
5858         * modules/obstack-printf-posix (Comment): Likewise.
5859         * modules/printf-posix (Comment): Likewise.
5860         * modules/snprintf-posix (Comment): Likewise.
5861         * modules/sprintf-posix (Comment): Likewise.
5862         * modules/vasnprintf-posix (Comment): Likewise.
5863         * modules/vasprintf-posix (Comment): Likewise.
5864         * modules/vdprintf-posix (Comment): Likewise.
5865         * modules/vfprintf-posix (Comment): Likewise.
5866         * modules/vprintf-posix (Comment): Likewise.
5867         * modules/vsnprintf-posix (Comment): Likewise.
5868         * modules/vsprintf-posix (Comment): Likewise.
5869         * modules/xprintf-posix (Comment): Likewise.
5870         * modules/xvasprintf-posix (Comment): Likewise.
5871         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5872         * modules/floorf-tests (Depends-on): Likewise.
5873         * modules/round-tests (Depends-on): Likewise.
5874         * modules/roundf-tests (Depends-on): Likewise.
5875         * modules/trunc-tests (Depends-on): Likewise.
5876         * modules/truncf-tests (Depends-on): Likewise.
5877         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5878         'fprintf-posix' module is not present.
5879         * tests/test-floorf2.c (check): Likewise.
5880         * tests/test-trunc2.c (check): Likewise.
5881         * tests/test-truncf2.c (check): Likewise.
5882         * tests/test-round2.c (equal): Likewise.
5883         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5884
5885 2010-04-07  Karl Berry  <karl@gnu.org>
5886
5887         * config/srclist.txt,
5888         * config/srclistvars.sh,
5889         * config/srclist-update: doc fixes.
5890
5891 2010-04-07  Jim Meyering  <meyering@redhat.com>
5892
5893         maint.mk: add a PATH crosschecking syntax-check rule
5894         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5895         Useful if you use a test like the one in help-version (coreutils,
5896         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5897         printed by prog --version.
5898
5899 2010-04-06  Bruno Haible  <bruno@clisp.org>
5900
5901         Fix link error on mingw.
5902         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5903         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5904
5905 2010-04-06  Bruno Haible  <bruno@clisp.org>
5906
5907         Assume rmdir exists.
5908         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5909
5910 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5911
5912         doc: update users.txt
5913         * users.txt: Add gcal.
5914
5915 2010-04-06  Jim Meyering  <meyering@redhat.com>
5916
5917         init.sh: simply unset TMPDIR rather than risking env -i
5918         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5919         although it probably works fine on all Unix-based systems, some
5920         systems (Cygwin?) cannot tolerate a totally cleared environment.
5921         Suggestion from Eric Blake.
5922
5923 2010-04-06  Jim Meyering  <meyering@redhat.com>
5924
5925         init.sh: portability fix: use env's POSIX-specified -i option not -u
5926         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5927         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5928
5929 2010-04-05  Bruno Haible  <bruno@clisp.org>
5930
5931         btowc: Work around Cygwin 1.7.2 bug.
5932         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5933         does not map NUL to 0.
5934         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5935
5936 2010-04-05  Bruno Haible  <bruno@clisp.org>
5937
5938         Make the multithread modules work on Cygwin 1.7.2.
5939         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5940         imported symbols can be declared weak, so that it returns "no" on
5941         Cygwin 1.7.2.
5942
5943 2010-04-05  Bruno Haible  <bruno@clisp.org>
5944
5945         Use the module 'strncat'.
5946         * modules/unistr/u8-strncat (Depends-on): Add strncat.
5947
5948         Tests for module 'strncat'.
5949         * modules/strncat-tests: New file.
5950         * tests/test-strncat.c: New file.
5951
5952         New module 'strncat'.
5953         * lib/string.in.h (strncat): New declaration.
5954         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
5955         * m4/strncat.m4: New file, based on m4/memchr.m4.
5956         * modules/strncat: New file.
5957         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
5958         is declared.
5959         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
5960         REPLACE_STRNCAT.
5961         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
5962         REPLACE_STRNCAT.
5963         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
5964         module.
5965         * tests/test-string-c++.cc: Check signature of strncat.
5966
5967 2010-04-05  Jim Meyering  <meyering@redhat.com>
5968
5969         xstrtoumax-tests: convert to use init.sh
5970         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5971         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5972         Use Exit, not exit.
5973         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5974
5975         xstrtoimax-tests: convert to use init.sh
5976         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
5977         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5978         Use Exit, not exit.
5979         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5980
5981 2010-04-05  Bruno Haible  <bruno@clisp.org>
5982
5983         sys_socket: Avoid #define replacements in C++ mode.
5984         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
5985         warning to the function if possible, rather than #defining the symbol
5986         to a dysfunctional alias.
5987
5988 2010-04-05  Bruno Haible  <bruno@clisp.org>
5989
5990         fseeko: Fix C++ test error on mingw.
5991         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
5992         gl_FUNC_FSEEKO.
5993         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
5994         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
5995         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
5996         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
5997
5998 2010-04-05  Bruno Haible  <bruno@clisp.org>
5999
6000         duplocale: Improve test output.
6001         * tests/test-duplocale.c (main): Print reason for skipped test.
6002
6003 2010-04-05  Bruno Haible  <bruno@clisp.org>
6004
6005         Assume rmdir exists.
6006         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6007         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6008
6009 2010-04-05  Bruno Haible  <bruno@clisp.org>
6010
6011         Fix link error on Solaris 8 with cc.
6012         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6013
6014 2010-04-05  Bruno Haible  <bruno@clisp.org>
6015
6016         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6017         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6018
6019 2010-04-05  Bruno Haible  <bruno@clisp.org>
6020
6021         vasprintf: Update documentation.
6022         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6023
6024 2010-04-05  Bruno Haible  <bruno@clisp.org>
6025
6026         ptsname: Improve test.
6027         * tests/test-ptsname.c (main): Also try the various master names of BSD
6028         systems.
6029
6030 2010-04-05  Bruno Haible  <bruno@clisp.org>
6031
6032         memchr: Avoid a possible C++ test error.
6033         * lib/string.in.h (memchr): Provide declaration if function is missing.
6034         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6035         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6037         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6038
6039 2010-04-05  Bruno Haible  <bruno@clisp.org>
6040
6041         strtok_r: Improve idiom.
6042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6043         AC_LIBOBJ is used.
6044
6045 2010-04-05  Bruno Haible  <bruno@clisp.org>
6046
6047         strdup: Improve idiom.
6048         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6049         AC_LIBOBJ is used.
6050         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6051         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6052         when AC_LIBOBJ is used.
6053
6054 2010-04-05  Bruno Haible  <bruno@clisp.org>
6055
6056         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6057         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6058         don't set REPLACE_MBSINIT to 1.
6059         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6060         don't set REPLACE_MBRTOWC to 1.
6061         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6062         exist, don't set REPLACE_MBSRTOWCS to 1.
6063         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6064         exist, don't set REPLACE_MBSNRTOWCS to 1.
6065         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6066         don't set REPLACE_WCRTOMB to 1.
6067         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6068         exist, don't set REPLACE_WCSRTOMBS to 1.
6069         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6070         exist, don't set REPLACE_WCSNRTOMBS to 1.
6071
6072 2010-04-05  Bruno Haible  <bruno@clisp.org>
6073
6074         ldexpl: Improve idiom.
6075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6076         make sure to set HAVE_DECL_LDEXPL to 0.
6077
6078 2010-04-05  Jim Meyering  <meyering@redhat.com>
6079
6080         xstrtol-tests: convert to use init.sh
6081         * modules/xstrtol-tests (Files): Add tests/init.sh.
6082         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6083         Use Exit, not exit.
6084         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6085
6086         atexit-tests: convert to use init.sh
6087         * modules/atexit-tests (Files): Add tests/init.sh.
6088         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6089         Use Exit, not exit.
6090         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6091
6092         init.sh: fix typo
6093         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6094
6095         init.sh: make it easier for a test script to write to the tty, ...
6096         when using automake's parallel-tests mode.
6097         * tests/init.sh (stderr_fileno_): Define overridable variable.
6098         (warn_): New function, to use it.
6099         (fail_, skip_, framework_failure_): Use warn_.
6100
6101 2010-04-04  Bruno Haible  <bruno@clisp.org>
6102
6103         btowc: Avoid warning.
6104         * lib/btowc.c: Include <stdlib.h>.
6105         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6106
6107 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6108             Bruno Haible  <bruno@clisp.org>
6109
6110         wchar: Port to NetBSD 1.5.
6111         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6112         * lib/wctype.in.h (WEOF): Likewise.
6113
6114 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6115             Bruno Haible  <bruno@clisp.org>
6116
6117         Port extended stdio to NetBSD 1.5.
6118         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6119         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6120         older.
6121
6122 2010-04-04  Bruno Haible  <bruno@clisp.org>
6123
6124         string: Remove unused substitution.
6125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6126         HAVE_DECL_STRERROR.
6127         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6128
6129 2010-04-04  Bruno Haible  <bruno@clisp.org>
6130
6131         strtod: Avoid a possible C++ test error.
6132         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6133         set REPLACE_STRTOD.
6134
6135 2010-04-04  Bruno Haible  <bruno@clisp.org>
6136
6137         strerror: Update documentation.
6138         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6139
6140 2010-04-04  Bruno Haible  <bruno@clisp.org>
6141
6142         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6143         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6144         _GL_CXXALIAS_SYS_CAST.
6145
6146 2010-04-04  Bruno Haible  <bruno@clisp.org>
6147
6148         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6149         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6150         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6151         REPLACE_FREXPL to 1.
6152         * doc/posix-functions/frexpl.texi: Update documentation.
6153
6154 2010-04-04  Bruno Haible  <bruno@clisp.org>
6155
6156         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6157         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6158
6159 2010-04-04  Bruno Haible  <bruno@clisp.org>
6160
6161         Implement nanosleep for native Windows.
6162         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6163
6164 2010-04-04  Bruno Haible  <bruno@clisp.org>
6165
6166         math: Fix some C++ test errors on Solaris 8.
6167         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6168
6169 2010-04-04  Bruno Haible  <bruno@clisp.org>
6170
6171         math: Fix some C++ test errors on Cygwin.
6172         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6173         truncl): Provide declaration if the system does not have it.
6174         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6175         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6176         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6177         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6178         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6179         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6180         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6181         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6182         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6183         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6184         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6185         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6186         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6187         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6188         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6189         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6191         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6192         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6193         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6194         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6195         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6196
6197 2010-04-04  Bruno Haible  <bruno@clisp.org>
6198
6199         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6200         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6201         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6202         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6203         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6204         * m4/isinf.m4 (gl_ISINF): Likewise.
6205         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6206
6207 2010-04-04  Bruno Haible  <bruno@clisp.org>
6208
6209         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6211
6212 2010-04-04  Bruno Haible  <bruno@clisp.org>
6213
6214         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6215         * modules/tmpfile (configure.ac): Update.
6216
6217         tmpfile: Fix C++ test error on mingw.
6218         * lib/stdio.in.h (tmpfile): New declaration.
6219         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6220         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6221         * modules/tmpfile (Depends-on): Add stdio.
6222         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6223         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6224         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6225         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6226         REPLACE_TMPFILE.
6227         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6228
6229 2010-04-04  Bruno Haible  <bruno@clisp.org>
6230
6231         ioctl: Fix C++ test error on mingw.
6232         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6233         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6234         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6235
6236 2010-04-03  Bruno Haible  <bruno@clisp.org>
6237
6238         wcwidth: Fix C++ test error on mingw.
6239         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6241         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6242
6243 2010-04-03  Bruno Haible  <bruno@clisp.org>
6244
6245         nanosleep: Fix C++ test error on mingw.
6246         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6247         * lib/time.in.h (nanosleep): Use modern idiom.
6248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6249         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6250         REPLACE_NANOSLEEP to 1.
6251         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6252         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6253
6254 2010-04-03  Bruno Haible  <bruno@clisp.org>
6255
6256         strptime: Fix C++ test error on mingw.
6257         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6258         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6259         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6260         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6261         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6262         not REPLACE_STRPTIME.
6263         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6264         REPLACE_STRPTIME.
6265
6266 2010-04-03  Bruno Haible  <bruno@clisp.org>
6267
6268         timegm: Fix C++ test error on mingw.
6269         * lib/time.in.h (timegm): Use modern idiom.
6270         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6271         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6272         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6273         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6274
6275 2010-04-03  Bruno Haible  <bruno@clisp.org>
6276
6277         timegm: Assume declaration if function exists.
6278         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6279         if it exists. Don't clobber ac_cv_func_timegm.
6280
6281 2010-04-03  Bruno Haible  <bruno@clisp.org>
6282
6283         time_r: Fix C++ test error on mingw.
6284         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6285         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6286         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6287         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6288         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6289
6290 2010-04-03  Bruno Haible  <bruno@clisp.org>
6291
6292         time_r: Minor updates.
6293         * modules/time_r (Description): Mention the provided functions.
6294         * lib/time_r.c: Don't include <string.h>.
6295         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6296         * doc/posix-functions/localtime_r.texi: Likewise.
6297
6298 2010-04-03  Bruno Haible  <bruno@clisp.org>
6299
6300         time: Fix regression introduced on 2010-03-08.
6301         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6302         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6303
6304 2010-04-03  Jim Meyering  <meyering@redhat.com>
6305
6306         maint.mk: don't silently disable project-specific syntax-check rules
6307         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6308         that they need to convert their project-specific syntax-check rules
6309         to use the new _sc_search_regexp.
6310
6311 2010-04-03  Bruno Haible  <bruno@clisp.org>
6312
6313         fchdir: Fix regression introduced on 2010-03-08.
6314         * lib/unistd.in.h (fchdir): Fix declaration.
6315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6317         REPLACE_FCHDIR.
6318         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6319         REPLACE_FCHDIR.
6320
6321 2010-04-03  Bruno Haible  <bruno@clisp.org>
6322
6323         getpagesize: Fix C++ test error on mingw.
6324         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6325         system does not declare the function.
6326         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6327         declared.
6328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6329         HAVE_DECL_GETPAGESIZE.
6330         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6331
6332 2010-04-03  Bruno Haible  <bruno@clisp.org>
6333
6334         stdio: Make C++ tests work on mingw.
6335         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6336         does not declare the function.
6337
6338 2010-04-03  Bruno Haible  <bruno@clisp.org>
6339
6340         ftello: Fix C++ test error on mingw.
6341         * lib/stdio.in.h (ftello): Use modern idiom.
6342         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6343         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6344         is missing and that it needs to be replaced.
6345         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6347         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6348
6349 2010-04-03  Bruno Haible  <bruno@clisp.org>
6350
6351         fseeko: Fix C++ test error on mingw.
6352         * lib/stdio.in.h (fseeko): Use modern idiom.
6353         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6355         is missing and that it needs to be replaced.
6356         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6358         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6359
6360 2010-04-03  Bruno Haible  <bruno@clisp.org>
6361
6362         mkstemp: Fix C++ test error on mingw.
6363         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6365         function is missing and that it needs to be replaced.
6366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6367         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6368
6369 2010-04-03  Bruno Haible  <bruno@clisp.org>
6370
6371         stpncpy: Fix C++ test error on mingw.
6372         * lib/string.in.h (stpncpy): Use modern idiom.
6373         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6374         function is missing and that it needs to be replaced.
6375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6376         REPLACE_STPNCPY.
6377         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6378
6379 2010-04-03  Bruno Haible  <bruno@clisp.org>
6380
6381         sys_stat: Fix C++ test error on mingw.
6382         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6383         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6384
6385 2010-04-03  Bruno Haible  <bruno@clisp.org>
6386
6387         pty: Update doc.
6388         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6389
6390 2010-04-03  Bruno Haible  <bruno@clisp.org>
6391
6392         unistd: Fix C++ test error on mingw.
6393         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6394
6395 2010-04-03  Bruno Haible  <bruno@clisp.org>
6396
6397         Update doc regarding mingw.
6398         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6399         * doc/glibc-functions/login_tty.texi: Likewise.
6400         * doc/glibc-functions/forkpty.texi: Likewise.
6401
6402 2010-04-03  Bruno Haible  <bruno@clisp.org>
6403
6404         stdlib: Avoid compilation failure of c-strtold on mingw.
6405         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6406
6407 2010-04-03  Bruno Haible  <bruno@clisp.org>
6408
6409         locale: Make C++ tests work on Cygwin and mingw.
6410         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6411         cannot provide the function.
6412         Reported by Simon Josefsson.
6413
6414 2010-04-03  Bruno Haible  <bruno@clisp.org>
6415
6416         localename: Port to MacOS X 10.6.
6417         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6418         memory layout of the locales in MacOS X 10.6 as well.
6419         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6420
6421 2010-04-02  Bruno Haible  <bruno@clisp.org>
6422
6423         gnulib-tool: Ensure that long-running tests are executed last.
6424         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6425         running tests after the one for the other tests.
6426
6427 2010-04-02  Bruno Haible  <bruno@clisp.org>
6428
6429         gnulib-tool: Ensure the tests in the main directory are executed first.
6430         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6431         start with the current directory.
6432
6433 2010-04-02  Bruno Haible  <bruno@clisp.org>
6434
6435         Tests for module 'havelib', moved here from GNU gettext.
6436         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6437         modifications.
6438         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6439         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6440         with modifications.
6441         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6442         modifications.
6443         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6444         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6445         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6446         with modifications.
6447         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6448         with modifications.
6449         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6450         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6451         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6452         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6453         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6454         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6455         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6456         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6457         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6458         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6459         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6460         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6461         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6462         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6463         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6464         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6465         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6466         with modifications.
6467         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6468         with modifications.
6469         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6470         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6471         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6472         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6473         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6474         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6475         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6476         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6477         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6478         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6479         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6480         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6481         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6482         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6483         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6484         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6485         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6486         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6487         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6488         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6489         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6490         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6491         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6492         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6493         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6494         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6495         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6496         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6497         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6498         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6499         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6500         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6501         * tests/havelib/rpathx/rpathx.c: New file, from
6502         gettext/autoconf-lib-link.
6503         * tests/havelib/rpathx/Makefile.am: New file, from
6504         gettext/autoconf-lib-link.
6505         * tests/havelib/rpathx/configure.ac: New file, from
6506         gettext/autoconf-lib-link with modifications.
6507         * tests/havelib/rpathy/rpathy.c: New file, from
6508         gettext/autoconf-lib-link.
6509         * tests/havelib/rpathy/Makefile.am: New file, from
6510         gettext/autoconf-lib-link.
6511         * tests/havelib/rpathy/configure.ac: New file, from
6512         gettext/autoconf-lib-link with modifications.
6513         * tests/havelib/rpathz/rpathz.c: New file, from
6514         gettext/autoconf-lib-link.
6515         * tests/havelib/rpathz/Makefile.am: New file, from
6516         gettext/autoconf-lib-link.
6517         * tests/havelib/rpathz/configure.ac: New file, from
6518         gettext/autoconf-lib-link with modifications.
6519         * tests/havelib/rpathlx/usex.c: New file, from
6520         gettext/autoconf-lib-link.
6521         * tests/havelib/rpathlx/Makefile.am: New file, from
6522         gettext/autoconf-lib-link.
6523         * tests/havelib/rpathlx/configure.ac: New file, from
6524         gettext/autoconf-lib-link with modifications.
6525         * tests/havelib/rpathly/usey.c: New file, from
6526         gettext/autoconf-lib-link.
6527         * tests/havelib/rpathly/Makefile.am: New file, from
6528         gettext/autoconf-lib-link.
6529         * tests/havelib/rpathly/configure.ac: New file, from
6530         gettext/autoconf-lib-link with modifications.
6531         * tests/havelib/rpathlz/usez.c: New file, from
6532         gettext/autoconf-lib-link.
6533         * tests/havelib/rpathlz/Makefile.am: New file, from
6534         gettext/autoconf-lib-link.
6535         * tests/havelib/rpathlz/configure.ac: New file, from
6536         gettext/autoconf-lib-link with modifications.
6537         * tests/havelib/rpathlyx/usey.c: New file, from
6538         gettext/autoconf-lib-link.
6539         * tests/havelib/rpathlyx/Makefile.am: New file, from
6540         gettext/autoconf-lib-link.
6541         * tests/havelib/rpathlyx/configure.ac: New file, from
6542         gettext/autoconf-lib-link with modifications.
6543         * tests/havelib/rpathlzyx/usez.c: New file, from
6544         gettext/autoconf-lib-link.
6545         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6546         gettext/autoconf-lib-link.
6547         * tests/havelib/rpathlzyx/configure.ac: New file, from
6548         gettext/autoconf-lib-link with modifications.
6549         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6550         with modifications.
6551
6552 2010-04-02  Bruno Haible  <bruno@clisp.org>
6553
6554         gnulib-tool: Create distributed built sources also for the tests.
6555         * gnulib-tool (func_create_testdir): Also generate distributed built
6556         sources in the tests directory.
6557
6558 2010-04-02  Bruno Haible  <bruno@clisp.org>
6559
6560         gnulib-tool: Obey user's environment variables.
6561         * gnulib-tool (func_create_testdir): When creating built sources,
6562         respect the environment variables for autoconf, automake, etc. given by
6563         the user.
6564
6565 2010-04-02  Bruno Haible  <bruno@clisp.org>
6566
6567         gnulib-tool: Provide the value of --m4-base to modules.
6568         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6569         of gl_m4_base.
6570
6571 2010-04-02  Eric Blake  <eblake@redhat.com>
6572
6573         maint.mk: fix some fallout
6574         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6575         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6576
6577 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6578
6579         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6580         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6581         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6582         (sc_cast_of_x_alloc_return_value): Likewise.
6583         (sc_cast_of_alloca_return_value): Likewise.
6584         (sc_space_tab): Likewise.
6585         (sc_prohibit_atoi_atof): Likewise.
6586         (sc_prohibit_magic_number_exit): Likewise.
6587         (sc_error_exit_success): Likewise.
6588         (sc_file_system): Likewise.
6589         (sc_prohibit_have_config_h): Likewise.
6590         (sc_require_config_h): Likewise.
6591         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6592         (sc_obsolete_symbols): Likewise.
6593         (sc_changelog): Likewise.
6594         (sc_program_name): Likewise.
6595         (sc_the_the): Likewise.
6596         (sc_trailing_blank): Likewise.
6597         (sc_two_space_separator_in_usage): Likewise.
6598         (sc_useless_cpp_parens): Likewise.
6599         (sc_GPL_version): Likewise.
6600         (sc_GFDL_version): Likewise.
6601         (sc_texinfo_acronym): Likewise.
6602         (sc_prohibit_cvs_keyword): Likewise.
6603         (sc_prohibit_stat_st_blocks): Likewise.
6604         (sc_prohibit_S_IS_definition): Likewise.
6605         (sc_redundant_const): Likewise.
6606         (sc_makefile_TAB_only_indentation): Likewise.
6607         (sc_m4_quote_check): Likewise.
6608         (sc_makefile_path_separator_check): Likewise.
6609         (sc_copyright_check): Likewise.
6610         (sc_Wundef_boolean): Likewise.
6611         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6612
6613         maint.mk: match 0 or more whitespace-before-function-call '('
6614         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6615         that have zero or two-and-more spaces between the function name
6616         and the open parenthesis.
6617         (sc_error_message_warn_fatal): Likewise.
6618         (sc_error_message_uppercase): Likewise.
6619         (sc_error_message_period): Likewise.
6620
6621 2010-03-31  Eric Blake  <eblake@redhat.com>
6622
6623         maint.mk: check for [ as well as test
6624         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6625         Based on a libvirt report by Matthias Bolte.
6626
6627         gnumakefile: don't squelch _version output
6628         * top/GNUmakefile (_version): Create one-shot dependency rather
6629         than using $(shell) when version must be regenerated.
6630         (_autoreconf): Run verbosely, by default.
6631
6632         sys_time: avoid compiler warnings
6633         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6634         unconditional, fixing regression from 2010-03-29.
6635         Reported by Simon Josefsson.
6636
6637 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6638
6639         maint.mk: s/_header_without_use/_sc_header_without_use/
6640         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6641         (sc_prohibit_assert_without_use): Use the new name.
6642         (sc_prohibit_close_stream_without_use): Likewise.
6643         (sc_prohibit_getopt_without_use): Likewise.
6644         (sc_prohibit_quotearg_without_use): Likewise.
6645         (sc_prohibit_quote_without_use): Likewise.
6646         (sc_prohibit_long_options_without_use): Likewise.
6647         (sc_prohibit_inttostr_without_use): Likewise.
6648         (sc_prohibit_ignore_value_without_use): Likewise.
6649         (sc_prohibit_error_without_use): Likewise.
6650         (sc_prohibit_xalloc_without_use): Likewise.
6651         (sc_prohibit_hash_without_use): Likewise.
6652         (sc_prohibit_hash_pjw_without_use): Likewise.
6653         (sc_prohibit_safe_read_without_use): Likewise.
6654         (sc_prohibit_argmatch_without_use): Likewise.
6655         (sc_prohibit_canonicalize_without_use): Likewise.
6656         (sc_prohibit_root_dev_ino_without_use): Likewise.
6657         (sc_prohibit_openat_without_use): Likewise.
6658         (sc_prohibit_c_ctype_without_use): Likewise.
6659         (sc_prohibit_signal_without_use): Likewise.
6660         (sc_prohibit_intprops_without_use): Likewise.
6661
6662 2010-03-30  Eric Blake  <eblake@redhat.com>
6663
6664         maint: improve module indicators
6665         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6666         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6667         columns, and avoid extra macro expansion.
6668
6669         fdopendir: work around FreeBSD bug
6670         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6671         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6672         * modules/dirent (Makefile.am): Substitute it.
6673         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6674         declaration.
6675         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6676         fix.
6677         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6678
6679 2010-03-29  Bruno Haible  <bruno@clisp.org>
6680
6681         Emit #pragma system_header after the inclusion guard, not before.
6682         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6683         guard that spans the entire file, not before. This enables an
6684         optimization in GCC's preprocessor.
6685         * lib/ctype.in.h: Likewise.
6686         * lib/dirent.in.h: Likewise.
6687         * lib/errno.in.h: Likewise.
6688         * lib/float.in.h: Likewise.
6689         * lib/getopt.in.h: Likewise.
6690         * lib/iconv.in.h: Likewise.
6691         * lib/langinfo.in.h: Likewise.
6692         * lib/locale.in.h: Likewise.
6693         * lib/math.in.h: Likewise.
6694         * lib/netdb.in.h: Likewise.
6695         * lib/netinet_in.in.h: Likewise.
6696         * lib/pty.in.h: Likewise.
6697         * lib/sched.in.h: Likewise.
6698         * lib/se-selinux.in.h: Likewise.
6699         * lib/search.in.h: Likewise.
6700         * lib/spawn.in.h: Likewise.
6701         * lib/stdarg.in.h: Likewise.
6702         * lib/stdint.in.h: Likewise.
6703         * lib/string.in.h: Likewise.
6704         * lib/strings.in.h: Likewise.
6705         * lib/sys_file.in.h: Likewise.
6706         * lib/sys_ioctl.in.h: Likewise.
6707         * lib/sys_time.in.h: Likewise.
6708         * lib/sys_times.in.h: Likewise.
6709         * lib/sys_utsname.in.h: Likewise.
6710         * lib/sys_wait.in.h: Likewise.
6711         * lib/sysexits.in.h: Likewise.
6712         * lib/wctype.in.h: Likewise.
6713
6714 2010-03-28  James Youngman  <jay@gnu.org>
6715
6716         save-cwd: don't leak a file descriptor when the caller execs.
6717         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6718         saved file descriptor.
6719         * modules/save-cwd (Depends-on): Depend on cloexec.
6720
6721 2010-03-29  Bruno Haible  <bruno@clisp.org>
6722
6723         Remove vestiges of fts-lgpl module.
6724         * lib/fts_.h: Assume GNULIB_FTS is 1.
6725         * lib/fts.c: Likewise.
6726         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6727
6728 2010-03-28  Bruno Haible  <bruno@clisp.org>
6729
6730         Fix definition of tests witness macro.
6731         * gnulib-tool (func_import): Fix definition of witness macro.
6732
6733 2010-03-28  Bruno Haible  <bruno@clisp.org>
6734
6735         Fix ioctl's protoype on glibc systems.
6736         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6737         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6738         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6739         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6740         signature. If not, arrange to replace the ioctl function.
6741         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6742         REPLACE_IOCTL.
6743         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6744         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6745         Reported by Ludovic Courtès <ludo@gnu.org>.
6746
6747 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6748
6749         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6750         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6751         made it so grep -r --include=GLOB* ... did not work.
6752
6753 2010-03-26  Jim Meyering  <meyering@redhat.com>
6754             Eric Blake  <eblake@redhat.com>
6755
6756         maint.mk: prohibit use of test's -o and -a operators
6757         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6758
6759 2010-03-28  Bruno Haible  <bruno@clisp.org>
6760
6761         Remove unused GNULIB_XYZ macro definitions.
6762         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6763         invocation.
6764
6765 2010-03-28  Bruno Haible  <bruno@clisp.org>
6766
6767         Mark privileged tests modules.
6768         * modules/idpriv-drop-tests (Status): New section.
6769         * modules/idpriv-droptemp-tests (Status): New section.
6770
6771 2010-03-28  Bruno Haible  <bruno@clisp.org>
6772
6773         Split C++ tests into separate tests modules.
6774         * modules/dirent-c++-tests: New file, extracted from
6775         modules/dirent-tests.
6776         * modules/dirent-tests: Depend on it.
6777         * modules/fcntl-h-c++-tests: New file, extracted from
6778         modules/fcntl-h-tests.
6779         * modules/fcntl-h-tests: Depend on it.
6780         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6781         * modules/glob-tests: Depend on it.
6782         * modules/iconv-h-c++-tests: New file, extracted from
6783         modules/iconv-h-tests.
6784         * modules/iconv-h-tests: Depend on it.
6785         * modules/langinfo-c++-tests: New file, extracted from
6786         modules/langinfo-tests.
6787         * modules/langinfo-tests: Depend on it.
6788         * modules/locale-c++-tests: New file, extracted from
6789         modules/locale-tests.
6790         * modules/locale-tests: Depend on it.
6791         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6792         * modules/math-tests: Depend on it.
6793         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6794         * modules/pty-tests: Depend on it.
6795         * modules/search-c++-tests: New file, extracted from
6796         modules/search-tests.
6797         * modules/search-tests: Depend on it.
6798         * modules/signal-c++-tests: New file, extracted from
6799         modules/signal-tests.
6800         * modules/signal-tests: Depend on it.
6801         * modules/spawn-c++-tests: New file, extracted from
6802         modules/spawn-tests.
6803         * modules/spawn-tests: Depend on it.
6804         * modules/stdio-c++-tests: New file, extracted from
6805         modules/stdio-tests.
6806         * modules/stdio-tests: Depend on it.
6807         * modules/stdlib-c++-tests: New file, extracted from
6808         modules/stdlib-tests.
6809         * modules/stdlib-tests: Depend on it.
6810         * modules/string-c++-tests: New file, extracted from
6811         modules/string-tests.
6812         * modules/string-tests: Depend on it.
6813         * modules/sys_ioctl-c++-tests: New file, extracted from
6814         modules/sys_ioctl-tests.
6815         * modules/sys_ioctl-tests: Depend on it.
6816         * modules/sys_select-c++-tests: New file, extracted from
6817         modules/sys_select-tests.
6818         * modules/sys_select-tests: Depend on it.
6819         * modules/sys_socket-c++-tests: New file, extracted from
6820         modules/sys_socket-tests.
6821         * modules/sys_socket-tests: Depend on it.
6822         * modules/sys_stat-c++-tests: New file, extracted from
6823         modules/sys_stat-tests.
6824         * modules/sys_stat-tests: Depend on it.
6825         * modules/sys_time-c++-tests: New file, extracted from
6826         modules/sys_time-tests.
6827         * modules/sys_time-tests: Depend on it.
6828         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6829         * modules/time-tests: Depend on it.
6830         * modules/unistd-c++-tests: New file, extracted from
6831         modules/unistd-tests.
6832         * modules/unistd-tests: Depend on it.
6833         * modules/wchar-c++-tests: New file, extracted from
6834         modules/wchar-tests.
6835         * modules/wchar-tests: Depend on it.
6836         * modules/wctype-c++-tests: New file, extracted from
6837         modules/wctype-tests.
6838         * modules/wctype-tests: Depend on it.
6839         Reported by Simon Josefsson.
6840
6841 2010-03-28  Bruno Haible  <bruno@clisp.org>
6842
6843         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6844         * gnulib-tool (func_exists_module): New function, extracted from
6845         func_verify_module.
6846         (func_verify_module): Use it.
6847         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6848         'foo' only if 'foo' exists.
6849         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6850         module.
6851
6852 2010-03-28  Bruno Haible  <bruno@clisp.org>
6853
6854         gnulib-tool: Add support for special categories of tests.
6855         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6856         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6857         (func_usage): Document them.
6858         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6859         inc_unportable_tests, inc_all_tests): New variables.
6860         (func_acceptable): Consider these variables.
6861         (func_modules_transitive_closure): Make it work when the 'Status' field
6862         consists of multiple words.
6863         (func_import): Store and restore the values of inc_cxx_tests,
6864         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6865         inc_all_tests in gnulib-comp.m4.
6866         (func_create_testdir): Set inc_all_tests to true.
6867         * doc/gnulib.texi (Extra tests modules): New section.
6868         Suggested by Jim Meyering.
6869
6870 2010-03-28  Bruno Haible  <bruno@clisp.org>
6871
6872         ansi-c++-opt: Allow turning off the C++ build by default.
6873         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6874         gl_CXX_CHOICE_DEFAULT_NO is defined.
6875         Requested by Eric Blake.
6876
6877 2010-03-28  Bruno Haible  <bruno@clisp.org>
6878
6879         unistd: Avoid #define replacements in C++ mode.
6880         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6881         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6882         setsockopt, shutdown, select): In C++, attach a warning to the function
6883         if possible, rather than #defining the symbol to a dysfunctional alias.
6884         Reported by John W. Eaton <jwe@gnu.org>.
6885
6886 2010-03-28  Bruno Haible  <bruno@clisp.org>
6887
6888         Fix link errors on mingw.
6889         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6890         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6891         $(LIBSOCKET).
6892         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6893         $(LIBSOCKET).
6894
6895 2010-03-28  Bruno Haible  <bruno@clisp.org>
6896             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6897
6898         lib-ignore: Determine different options for different compilers.
6899         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6900         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6901         Add comments.
6902         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6903         * NEWS: Mention the change.
6904
6905 2010-03-27  Bruno Haible  <bruno@clisp.org>
6906
6907         Remove unused GNULIB_XYZ macro definitions.
6908         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6909         * modules/fseek (configure.ac): Likewise.
6910         * modules/ioctl (configure.ac): Likewise.
6911         * modules/open (configure.ac): Likewise.
6912         * modules/stdlib-safer (configure.ac): Likewise.
6913
6914 2010-03-27  Bruno Haible  <bruno@clisp.org>
6915
6916         Add a remark about certain modules.
6917         * modules/malloc (Comment): New section.
6918         * modules/realloc (Comment): Likewise.
6919         * modules/sigpipe (Comment): Likewise.
6920
6921 2010-03-27  Bruno Haible  <bruno@clisp.org>
6922
6923         Resolve conflict between the two kinds of module indicators.
6924         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6925         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6926         * modules/canonicalize (configure.ac): Invoke
6927         gl_MODULE_INDICATOR_FOR_TESTS.
6928         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6929         GNULIB_XYZ.
6930         * tests/test-dirent-c++.cc: Likewise.
6931         * tests/test-dirent-safer.c: Likewise.
6932         * tests/test-dup2.c: Likewise.
6933         * tests/test-fchdir.c: Likewise.
6934         * tests/test-fcntl-h-c++.cc: Likewise.
6935         * tests/test-getopt.c: Likewise.
6936         * tests/test-getopt.h: Likewise.
6937         * tests/test-langinfo-c++.cc: Likewise.
6938         * tests/test-locale-c++.cc: Likewise.
6939         * tests/test-math-c++.cc: Likewise.
6940         * tests/test-pty-c++.cc: Likewise.
6941         * tests/test-search-c++.cc: Likewise.
6942         * tests/test-signal-c++.cc: Likewise.
6943         * tests/test-spawn-c++.cc: Likewise.
6944         * tests/test-stdio-c++.cc: Likewise.
6945         * tests/test-stdlib-c++.cc: Likewise.
6946         * tests/test-string-c++.cc: Likewise.
6947         * tests/test-sys_ioctl-c++.cc: Likewise.
6948         * tests/test-sys_select-c++.cc: Likewise.
6949         * tests/test-sys_socket-c++.cc: Likewise.
6950         * tests/test-sys_stat-c++.cc: Likewise.
6951         * tests/test-sys_time-c++.cc: Likewise.
6952         * tests/test-time-c++.cc: Likewise.
6953         * tests/test-unistd-c++.cc: Likewise.
6954         * tests/test-wchar-c++.cc: Likewise.
6955         * tests/uninorm/test-u8-nfc.c: Likewise.
6956         * tests/uninorm/test-u8-nfd.c: Likewise.
6957         * tests/uninorm/test-u8-nfkc.c: Likewise.
6958         * tests/uninorm/test-u8-nfkd.c: Likewise.
6959         * tests/uninorm/test-u16-nfc.c: Likewise.
6960         * tests/uninorm/test-u16-nfd.c: Likewise.
6961         * tests/uninorm/test-u16-nfkc.c: Likewise.
6962         * tests/uninorm/test-u16-nfkd.c: Likewise.
6963         * tests/uninorm/test-u32-nfc.c: Likewise.
6964         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6965         * tests/uninorm/test-u32-nfd.c: Likewise.
6966         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6967         * tests/uninorm/test-u32-nfkc.c: Likewise.
6968         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6969         * tests/uninorm/test-u32-nfkd.c: Likewise.
6970         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6971         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6972
6973 2010-03-27  Bruno Haible  <bruno@clisp.org>
6974
6975         Distinguish two kinds of module indicators.
6976         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
6977         gl_MODULE_INDICATOR.
6978         (gl_MODULE_INDICATOR): New macro.
6979         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6980         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
6981         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6982         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6983         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6984         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6985         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6986         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6987         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6988         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6989         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6990         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6992         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6993         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6994         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6995         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6996         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6997         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6998         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6999         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7000         * modules/cloexec (configure.ac): Likewise.
7001         * modules/getopt-gnu (configure.ac): Likewise.
7002         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7003         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7004         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7005         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7006
7007 2010-03-27  Bruno Haible  <bruno@clisp.org>
7008
7009         New module description field 'Comment'.
7010         * gnulib-tool: New option --extract-comment.
7011         (func_usage): Document it.
7012         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7013         (func_get_comment): New function.
7014         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7015
7016 2010-03-27  Bruno Haible  <bruno@clisp.org>
7017
7018         Addendum to 2010-02-07 commit.
7019         * gnulib-tool (func_usage): Document --extract-applicability option.
7020
7021 2010-03-27  Bruno Haible  <bruno@clisp.org>
7022
7023         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7024         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7025         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7026         rather than link errors.
7027
7028 2010-03-27  Bruno Haible  <bruno@clisp.org>
7029
7030         Avoid side effects from tests-related modules on the compilation of lib.
7031         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7032         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7033         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7034         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7035         macro.
7036         (func_import): Define a witness macro. Assign it a value that depends
7037         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7038         tests-related modules.
7039         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7040         Reported by Jim Meyering.
7041
7042 2010-03-27  Bruno Haible  <bruno@clisp.org>
7043
7044         Factorize common .m4 code.
7045         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7046         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7047         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7048         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7049         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7050         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7051         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7052         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7053         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7054         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7055         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7056         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7057         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7058         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7059         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7060         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7061         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7062         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7064         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7067         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7068         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7069         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7070         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7071         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7073         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7074         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7075         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7076         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7077
7078 2010-03-27  Bruno Haible  <bruno@clisp.org>
7079
7080         Fix a compilation error on Cygwin with g++ >= 4.3.
7081         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7082         if it is undefined or if we alias it to chmod.
7083         (lstat): Don't warn about the use of this function if it is undefined
7084         or if we alias it to stat.
7085         Reported by Simon Josefsson.
7086
7087 2010-03-27  Bruno Haible  <bruno@clisp.org>
7088
7089         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7090         * modules/getlogin (configure.ac): Update.
7091
7092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7093         * modules/getlogin_r (configure.ac): Update.
7094
7095         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7097         * modules/inet_ntop (configure.ac): Update.
7098
7099         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7100         * modules/inet_pton (configure.ac): Update.
7101
7102         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7103         * modules/mbslen (configure.ac): Update.
7104
7105         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7106         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7107         * modules/forkpty (configure.ac): Update.
7108         * modules/openpty (configure.ac): Update.
7109
7110 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7111
7112         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7113         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7114
7115 2010-03-25  Eric Blake  <eblake@redhat.com>
7116
7117         maint: use pragma consistently across replacement headers
7118         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7119         * lib/dirent.in.h (system_header): Likewise.
7120         * lib/errno.in.h (system_header): Likewise.
7121         * lib/float.in.h (system_header): Likewise.
7122         * lib/getopt.in.h (system_header): Likewise.
7123         * lib/iconv.in.h (system_header): Likewise.
7124         * lib/inttypes.in.h (system_header): Likewise.
7125         * lib/langinfo.in.h (system_header): Likewise.
7126         * lib/locale.in.h (system_header): Likewise.
7127         * lib/math.in.h (system_header): Likewise.
7128         * lib/netdb.in.h (system_header): Likewise.
7129         * lib/netinet_in.in.h (system_header): Likewise.
7130         * lib/pty.in.h (system_header): Likewise.
7131         * lib/sched.in.h (system_header): Likewise.
7132         * lib/se-selinux.in.h (system_header): Likewise.
7133         * lib/search.in.h (system_header): Likewise.
7134         * lib/spawn.in.h (system_header): Likewise.
7135         * lib/stdarg.in.h (system_header): Likewise.
7136         * lib/stdint.in.h (system_header): Likewise.
7137         * lib/string.in.h (system_header): Likewise.
7138         * lib/strings.in.h (system_header): Likewise.
7139         * lib/sys_file.in.h (system_header): Likewise.
7140         * lib/sys_ioctl.in.h (system_header): Likewise.
7141         * lib/sys_socket.in.h (system_header): Likewise.
7142         * lib/sys_times.in.h (system_header): Likewise.
7143         * lib/sys_utsname.in.h (system_header): Likewise.
7144         * lib/sys_wait.in.h (system_header): Likewise.
7145         * lib/sysexits.in.h (system_header): Likewise.
7146         * lib/unistd.in.h (system_header): Likewise.
7147         * lib/wctype.in.h (system_header): Likewise.
7148
7149         arpa/inet: fix mingw compilation warning
7150         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7151         Reported by Matthew Bolte.
7152
7153 2010-03-25  Bruno Haible  <bruno@clisp.org>
7154
7155         Avoid collision between gnulib wrapper and libintl wrapper.
7156         * lib/printf.c (printf): Don't define if a printf wrapper is already
7157         defined in intl/printf.c.
7158         Reported by Michel Boaventura <michel@michelboaventura.com>.
7159
7160 2010-03-25  Bruno Haible  <bruno@clisp.org>
7161
7162         Use ANSI C.
7163         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7164
7165 2010-03-25  Bruno Haible  <bruno@clisp.org>
7166
7167         Minor formatting changes.
7168         * lib/acosl.c: Insert space before function argument list.
7169         * lib/argz.c: Likewise.
7170         * lib/asinl.c: Likewise.
7171         * lib/expl.c: Likewise.
7172         * lib/gen-uni-tables.c: Likewise.
7173         * lib/gettext.h: Likewise.
7174         * lib/glthread/lock.h: Likewise.
7175         * lib/tanl.c: Likewise.
7176         * lib/uniname/uniname.c: Likewise.
7177         * tests/test-idpriv-drop.c: Likewise.
7178         * tests/test-idpriv-droptemp.c: Likewise.
7179         * tests/test-lock.c: Likewise.
7180         * tests/test-tls.c: Likewise.
7181         * lib/argp-help.c: Insert space before function-like macro argument
7182         list.
7183         * lib/memcmp.c: Likewise.
7184         * tests/test-base64.c: Likewise.
7185         * lib/localename.c: Insert space before sizeof's argument list.
7186         * lib/safe-alloc.h: Likewise.
7187         * lib/file-set.h: Insert space before macro argument list.
7188         * tests/test-argp.c: Likewise.
7189         * lib/argp-namefrob.h: Insert space before function parameter list.
7190         * lib/getaddrinfo.c: Likewise.
7191         * lib/netdb.in.h: Likewise.
7192         * lib/parse-duration.h: Likewise.
7193         * lib/parse-duration.c: Likewise.
7194         * lib/poll.c: Likewise.
7195         * lib/select.c: Likewise.
7196         * lib/trim.h: Likewise.
7197         * tests/test-usleep.c: Likewise.
7198         * lib/ldexpl.c: Insert space before function parameter list and before
7199         function argument list.
7200         * lib/logl.c: Likewise.
7201         * lib/sqrtl.c: Likewise.
7202         * lib/trim.c: Likewise.
7203         * lib/cosl.c: Use GNU style indentation. Insert space before function
7204         argument list.
7205         * lib/sinl.c: Likewise.
7206         * lib/tsearch.c: Insert space after 'for'.
7207         Reported by Jim Meyering.
7208
7209 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7210
7211         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7212         config header before grepping, as it's not present before
7213         autoreconf/configure are run.  Reported by Simon Josefsson.
7214
7215 2010-03-23  Bruno Haible  <bruno@clisp.org>
7216
7217         pt_chown: Make it work with automake < 1.11.
7218         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7219         Reported by Simon Josefsson.
7220
7221 2010-03-23  Bruno Haible  <bruno@clisp.org>
7222
7223         pt_chown: Don't depend on GPLed modules.
7224         * lib/pt_chown.c: Don't include idpriv.h.
7225         (main): Don't drop privileges.
7226         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7227         Reported by Simon Josefsson.
7228
7229 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7230
7231         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7232         suggestions from karl@freefriends.org (Karl Berry).
7233
7234 2010-03-22  Eric Blake  <eblake@redhat.com>
7235
7236         gethostname: further tweaks
7237         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7238         are overriding gethostname.
7239         Suggested by Bruno Haible.
7240
7241 2010-03-21  Bruno Haible  <bruno@clisp.org>
7242
7243         Fix comments.
7244         * lib/forkpty.c (rpl_forkpty): Fix comment.
7245         * lib/openpty.c (rpl_openpty): Likewise.
7246         Reported by Eric Blake.
7247
7248 2010-03-22  Eric Blake  <eblake@redhat.com>
7249
7250         gethostname: fix build on mingw
7251         * lib/unistd.in.h (includes): Work around fact that mingw
7252         <winsock2.h> re-includes <unistd.h>, by avoiding any
7253         redeclarations if we are being included by <winsock2.h>.
7254         Reported by Matthias Bolte.
7255
7256 2010-03-21  Bruno Haible  <bruno@clisp.org>
7257
7258         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7259         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7260         modifications.
7261         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7262         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7263         provide the replacement.
7264         * modules/forkpty (Depends-on): Add openpty, login_tty.
7265         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7266         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7267         * doc/glibc-functions/forkpty.texi: More supported platforms.
7268         * config/srclist.txt: Add forkpty.c (commented).
7269
7270 2010-03-21  Bruno Haible  <bruno@clisp.org>
7271
7272         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7273         (Makefile.am): Verify that PTY_LIB is defined.
7274
7275         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7276
7277 2010-03-21  Bruno Haible  <bruno@clisp.org>
7278
7279         Tests for module 'login_tty'.
7280         * modules/login_tty-tests: New file.
7281         * tests/test-login_tty.c: New file.
7282
7283         New module 'login_tty'.
7284         * lib/login_tty.c: New file.
7285         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7286         * modules/login_tty: New file.
7287         * doc/glibc-functions/login_tty.texi: Mention the new module.
7288
7289 2010-03-21  Bruno Haible  <bruno@clisp.org>
7290
7291         login_tty: Documentation.
7292         * doc/glibc-functions/login_tty.texi: New file.
7293         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7294
7295 2010-03-21  Bruno Haible  <bruno@clisp.org>
7296
7297         pty: Consistent macro naming.
7298         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7299         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7300         * modules/pty (configure.ac): Update.
7301
7302 2010-03-21  Bruno Haible  <bruno@clisp.org>
7303
7304         Tests for openpty: Make stricter.
7305         * tests/test-openpty.c (main): Add test of canonical processing and
7306         erase.
7307         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7308
7309         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7310         * lib/openpty.c (openpty): New replacement function.
7311         * lib/pty.in.h: Include <termios.h>.
7312         (openpty): Update declaration. Add comments.
7313         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7314         is not declared, arrange to provide the replacement. Check for _getpty
7315         and posix_openpt.
7316         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7317         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7318         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7319         * modules/pty-tests (test_pty_c___LDADD): New variable.
7320         * doc/glibc-functions/openpty.texi: More supported platforms.
7321
7322 2010-03-21  Bruno Haible  <bruno@clisp.org>
7323
7324         setenv: Tweaks.
7325         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7326         the test program.
7327         * doc/posix-functions/setenv.texi: Update platforms list.
7328
7329 2010-03-21  Bruno Haible  <bruno@clisp.org>
7330
7331         New module 'unlockpt'.
7332         * lib/unlockpt.c: New file, from glibc with modifications.
7333         * m4/unlockpt.m4: New file.
7334         * modules/unlockpt: New file.
7335         * lib/stdlib.in.h (unlockpt): New declaration.
7336         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7337         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7338         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7339         HAVE_UNLOCKPT.
7340         * doc/posix-functions/unlockpt.texi: Mention the new module.
7341         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7342         * config/srclist.txt: Add unlockpt.c (commented).
7343
7344 2010-03-21  Jim Meyering  <meyering@redhat.com>
7345
7346         maint.mk: prohibit inclusion of "intprops.h" without use
7347         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7348
7349 2010-03-21  Bruno Haible  <bruno@clisp.org>
7350
7351         New module 'grantpt'.
7352         * lib/grantpt.c: New file, from glibc with modifications.
7353         * m4/grantpt.m4: New file.
7354         * modules/grantpt: New file.
7355         * lib/stdlib.in.h (grantpt): New declaration.
7356         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7357         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7358         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7359         HAVE_GRANTPT.
7360         * doc/posix-functions/grantpt.texi: Mention the new module.
7361         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7362         * config/srclist.txt: Add grantpt.c (commented).
7363
7364 2010-03-21  Bruno Haible  <bruno@clisp.org>
7365
7366         New module 'pt_chown'.
7367         * lib/pt_chown.c: New file, from glibc with modifications.
7368         * lib/pty-private.h: New file, from glibc with modifications.
7369         * modules/pt_chown: New file.
7370         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7371
7372 2010-03-21  Bruno Haible  <bruno@clisp.org>
7373
7374         Tests for module 'ptsname'.
7375         * modules/ptsname-tests: New file.
7376         * tests/test-ptsname.c: New file.
7377
7378         New module 'ptsname'.
7379         * lib/ptsname.c: New file, from glibc with modifications.
7380         * m4/ptsname.m4: New file.
7381         * modules/ptsname: New file.
7382         * lib/stdlib.in.h (ptsname): New declaration.
7383         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7384         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7385         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7386         HAVE_PTSNAME.
7387         * doc/posix-functions/ptsname.texi: Mention the new module.
7388         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7389         * config/srclist.txt: Add ptsname.c (commented).
7390
7391 2010-03-21  Bruno Haible  <bruno@clisp.org>
7392
7393         Tests for module 'ttyname_r'.
7394         * modules/ttyname_r-tests: New file.
7395         * tests/test-ttyname_r.c: New file.
7396
7397         New module 'ttyname_r'.
7398         * lib/ttyname_r.c: New file.
7399         * m4/ttyname_r.m4: New file.
7400         * modules/ttyname_r: New file.
7401         * lib/unistd.in.h (ttyname_r): New declaration.
7402         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7403         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7404         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7405         HAVE_TTYNAME_R.
7406         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7407         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7408
7409 2010-03-20  Bruno Haible  <bruno@clisp.org>
7410
7411         signal: Undefine macro definitions in C++ mode.
7412         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7413         sigfillset): Undefine macro definitions from the system header in C++
7414         mode.
7415         Reported by John W. Eaton <jwe@gnu.org>.
7416
7417 2010-03-20  Bruno Haible  <bruno@clisp.org>
7418
7419         Ensure no #include statements inside extern "C" { ... }.
7420         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7421         contain #include statements.
7422         * lib/time.in.h: Likewise.
7423
7424 2010-03-20  Bruno Haible  <bruno@clisp.org>
7425
7426         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7427         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7428         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7429         Reported by John W. Eaton <jwe@gnu.org>.
7430
7431 2010-03-20  Bruno Haible  <bruno@clisp.org>
7432
7433         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7434         Reported by Jim Meyering.
7435
7436 2010-03-20  Bruno Haible  <bruno@clisp.org>
7437
7438         pipe: Set errno upon failure.
7439         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7440         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7441         errno value in error message.
7442
7443 2010-03-20  Bruno Haible  <bruno@clisp.org>
7444             Jim Meyering  <meyering@redhat.com>
7445
7446         lchown: Avoid "unused variable" warning.
7447         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7448
7449 2010-03-20  Bruno Haible  <bruno@clisp.org>
7450
7451         Work around unlink() bug on MacOS X 10.5.6.
7452         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7453         attempting to unlink a parent directory.
7454         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7455         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7456         activate for the replacement function.
7457         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7458
7459 2010-03-20  Bruno Haible  <bruno@clisp.org>
7460
7461         Fix link errors on Solaris 8.
7462         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7463         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7464
7465 2010-03-19  Jim Meyering  <meyering@redhat.com>
7466
7467         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7468         The _LIBC implementation of build_range_exp correctly honors the
7469         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7470         However, the non-_LIBC implementation would ignore that syntax-bit
7471         flag and return REG_ERANGE unconditionally.
7472         This change makes it honor that flag.
7473         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7474         Make two pointer parameters "const".
7475         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7476         (parse_bracket_exp): Update caller.
7477
7478         regex.m4: correct the reversed range endpoint ([b-a]) test
7479         * m4/regex.m4: When requiring that [b-a] evoke failure,
7480         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7481         test pass once again for x86-based systems.
7482
7483 2010-03-19  Bruno Haible  <bruno@clisp.org>
7484
7485         scandir: Fix link error on Solaris 8.
7486         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7487         macros.
7488
7489 2010-03-19  Bruno Haible  <bruno@clisp.org>
7490
7491         getusershell: Fix documentation.
7492         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7493         module.
7494         * doc/glibc-functions/setusershell.texi: Likewise.
7495
7496         getusershell: Provide declaration, missing on Solaris 9.
7497         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7498         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7499         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7500         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7502         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7503         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7504         HAVE_GETUSERSHELL.
7505         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7506
7507 2010-03-19  Bruno Haible  <bruno@clisp.org>
7508
7509         wctype: Provide iswblank function.
7510         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7511         exists and is fine.
7512         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7513         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7514         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7515         * doc/posix-functions/iswblank.texi: Update.
7516
7517 2010-03-19  Bruno Haible  <bruno@clisp.org>
7518
7519         Tests of module 'pty' in C++ mode.
7520         * modules/pty-tests: New file.
7521         * tests/test-pty-c++.cc: New file.
7522         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7523
7524 2010-03-19  Eric Blake  <eblake@redhat.com>
7525
7526         logb: fix documentation
7527         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7528         1.5 declaration bug.
7529
7530         forkpty, openpty: prefer glibc's const-safe prototype
7531         * lib/forkpty.c (rpl_forkpty): New file.
7532         * lib/openpty.c (rpl_openpty): Likewise.
7533         * modules/forkpty (Files): Distribute it.
7534         * modules/openpty (Files): Likewise.
7535         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7536         check...
7537         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7538         replacement for for non-const BSD signature.
7539         * modules/pty (Makefile.am): Substitute witnesses.
7540         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7541         * tests/test-forkpty.c: Update signature check.
7542         * tests/test-openpty.c: Likewise.
7543         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7544         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7545
7546         forkpty, openpty: split functions into new modules
7547         * modules/pty (Makefile.am): Substitute new witnesses.
7548         (Libraries): Move library detection...
7549         * modules/forkpty: ...into new module.
7550         * modules/openpty: Another new module.
7551         * modules/pty-tests: Rename and split...
7552         * modules/forkpty-tests: ...to this...
7553         * modules/openpty-tests: ...and this.
7554         * tests/test-pty.c: Rename and split...
7555         * tests/test-forkpty.c: ...to this...
7556         * tests/test-openpty.c: ...and this.
7557         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7558         (gl_PTY): Split library searching...
7559         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7560         (gl_FORKPTY, gl_OPENPTY): New macros.
7561         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7562         * NEWS: Mention the split.
7563         * MODULES.html.sh (Misc): Document the modules.
7564         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7565         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7566
7567         pty: improve replacement header
7568         * lib/pty.in.h: New file.
7569         * modules/pty (Files): Ship it.
7570         (Makefile.am): Always build replacement.
7571         * m4/pty.m4: Rename...
7572         * m4/pty_h.m4: ...to this.
7573         (gl_PTY): Modernize setting of witness macros; update check of
7574         forkpty to take proper advantage of cache.
7575         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7576
7577         getopt: avoid compiler warning
7578         * lib/getopt.c (attribute_hidden): Remove unused macro.
7579
7580 2010-03-18  Bruno Haible  <bruno@clisp.org>
7581
7582         Fix link errors on Solaris 8.
7583         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7584         * modules/search-tests (test_search_c___LDADD): Likewise.
7585         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7586         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7587         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7588         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7589         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7590         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7591         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7592
7593 2010-03-18  Bruno Haible  <bruno@clisp.org>
7594
7595         Fix bug introduced on 2010-03-14.
7596         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7597         (gl_SPAWN_H): Require it.
7598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7599         Reported by Simon Josefsson.
7600
7601 2010-03-18  Bruno Haible  <bruno@clisp.org>
7602
7603         Fix typo introduced on 2009-12-31.
7604         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7605         posix_spawn_file_actions_adddup2.
7606
7607 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7608         and Eric Blake  <eblake@redhat.com>
7609
7610         test-vc-list-files-git: make more robust
7611         * tests/test-vc-list-files-git.sh: Unset problematic environment
7612         variables.  Chain commands together.
7613
7614 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7615
7616         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7617         `AC_CHECK_DECL' invocation.
7618
7619 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7620
7621         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7622         appears before executable statements. Suggested by Petr Sumbera
7623         <Petr.Sumbera@Sun.COM>.
7624
7625 2010-03-14  Bruno Haible  <bruno@clisp.org>
7626
7627         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7628         portability problems. Instead use a simpler test.
7629         (main): Check that invalid arguments are rejected only on Linux.
7630
7631 2010-03-14  Bruno Haible  <bruno@clisp.org>
7632
7633         Fix bug introduced on 2009-12-31.
7634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7635         gl_PREREQ_SYS_H_WINSOCK2 always.
7636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7637         SYS_SOCKET_H variable.
7638         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7639         Update comments.
7640         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7641         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7644         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7645
7646 2010-03-14  Bruno Haible  <bruno@clisp.org>
7647
7648         Fix values returned by sinl, cosl.
7649         * lib/trigl.h: Add specification comments.
7650         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7651         that combines the values from the precomputed table with the values of
7652         the Chebyshev polynomials.
7653
7654 2010-03-14  Bruno Haible  <bruno@clisp.org>
7655
7656         Fix compilation error when modules 'posix_spawn[p]' are not used.
7657         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7658         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7659
7660 2010-03-14  Bruno Haible  <bruno@clisp.org>
7661
7662         Fix compilation error on mingw when module 'time_r' is not used.
7663         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7664         is 1.
7665         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7666         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7667         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7669
7670 2010-03-14  Bruno Haible  <bruno@clisp.org>
7671
7672         Fix compilation error with Sun C.
7673         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7674         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7675         instead of GCC specific ULONG_LONG_MAX.
7676         * lib/xstrtoll.c: Likewise.
7677         * lib/xstrtoull.c: Likewise.
7678
7679 2010-03-13  Bruno Haible  <bruno@clisp.org>
7680
7681         Allow the user to disable C++ code and tests.
7682         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7683         (gl_PROG_ANSI_CXX): Require it.
7684
7685 2010-03-13  Bruno Haible  <bruno@clisp.org>
7686
7687         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7688         cases.
7689
7690 2010-03-13  Bruno Haible  <bruno@clisp.org>
7691
7692         Test that gnulib does not break the standard C++ headers.
7693         * tests/test-locale-c++2.cc: New file.
7694         * modules/locale-tests (Files): Add it.
7695         (Makefile.am): Compile it for test-locale-c++.
7696         * tests/test-math-c++2.cc: New file.
7697         * modules/math-tests (Files): Add it.
7698         (Makefile.am): Compile it for test-math-c++.
7699         * tests/test-signal-c++2.cc: New file.
7700         * modules/signal-tests (Files): Add it.
7701         (Makefile.am): Compile it for test-signal-c++.
7702         * tests/test-stdio-c++2.cc: New file.
7703         * modules/stdio-tests (Files): Add it.
7704         (Makefile.am): Compile it for test-stdio-c++.
7705         * tests/test-stdlib-c++2.cc: New file.
7706         * modules/stdlib-tests (Files): Add it.
7707         (Makefile.am): Compile it for test-stdlib-c++.
7708         * tests/test-string-c++2.cc: New file.
7709         * modules/string-tests (Files): Add it.
7710         (Makefile.am): Compile it for test-string-c++.
7711         * tests/test-time-c++2.cc: New file.
7712         * modules/time-tests (Files): Add it.
7713         (Makefile.am): Compile it for test-time-c++.
7714         Reported by John W. Eaton <jwe@gnu.org>.
7715
7716 2010-03-13  Bruno Haible  <bruno@clisp.org>
7717
7718         * gnulib-tool (func_usage): Clarify which options are available for
7719         --create-testdir and --create-megatestdir.
7720
7721 2010-03-13  Bruno Haible  <bruno@clisp.org>
7722
7723         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7724         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7725         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7726         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7727         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7728         when appropriate.
7729         Reported by Jim Meyering.
7730
7731 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7732
7733         * gnulib-tool (func_import): Explain origin of code.
7734
7735 2010-03-12  Bruno Haible  <bruno@clisp.org>
7736
7737         Fix problem with automake's definition of CXXLINK.
7738         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7739         Reported by Simon Josefsson and Ludovic Courtès.
7740
7741 2010-03-12  Bruno Haible  <bruno@clisp.org>
7742
7743         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7744         stable releases.
7745
7746 2010-03-11  Bruno Haible  <bruno@clisp.org>
7747
7748         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7749         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7750         whether the system provides one variant or multiple variants of the
7751         function.
7752         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7753         C++ compilers.
7754         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7755         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7756         Reported by Jim Meyering.
7757
7758 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7759
7760         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7761
7762 2010-03-08  Bruno Haible  <bruno@clisp.org>
7763
7764         gnulib-tool: Add support for --libtool in --create-testdir.
7765         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7766         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7767
7768 2010-03-08  Eric Blake  <eblake@redhat.com>
7769
7770         gnulib-tool.texi: mention possibility of git submodule
7771         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7772         submodules.
7773         * doc/.gitignore: Ignore another generated file.
7774
7775 2010-03-08  Karl Berry  <karl@gnu.org>
7776
7777         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7778         of committing gnulib files while skipping others.
7779
7780 2010-03-07  Bruno Haible  <bruno@clisp.org>
7781
7782         Tests of module 'wctype' in C++ mode.
7783         * tests/test-wctype-c++.cc: New file.
7784         * modules/wctype-tests (Files): Add it and tests/signature.h.
7785         (Depends-on): Add ansi-c++-opt.
7786         (Makefile.am): Arrange to compile and run test-wctype-c++.
7787
7788         Tests of module 'wchar' in C++ mode.
7789         * tests/test-wchar-c++.cc: New file.
7790         * modules/wchar-tests (Files): Add it and tests/signature.h.
7791         (Depends-on): Add ansi-c++-opt.
7792         (Makefile.am): Arrange to compile and run test-wchar-c++.
7793         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7794         gl_MODULE_INDICATOR.
7795
7796         Tests of module 'unistd' in C++ mode.
7797         * tests/test-unistd-c++.cc: New file.
7798         * modules/unistd-tests (Files): Add it and tests/signature.h.
7799         (Depends-on): Add ansi-c++-opt.
7800         (Makefile.am): Arrange to compile and run test-unistd-c++.
7801         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7802         gl_MODULE_INDICATOR.
7803
7804         Tests of module 'time' in C++ mode.
7805         * tests/test-time-c++.cc: New file.
7806         * modules/time-tests (Files): Add it and tests/signature.h.
7807         (Depends-on): Add ansi-c++-opt.
7808         (Makefile.am): Arrange to compile and run test-time-c++.
7809         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7810
7811         Tests of module 'sys_time' in C++ mode.
7812         * tests/test-sys_time-c++.cc: New file.
7813         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7814         (Depends-on): Add ansi-c++-opt.
7815         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7816         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7817         gl_MODULE_INDICATOR.
7818
7819         Tests of module 'sys_stat' in C++ mode.
7820         * tests/test-sys_stat-c++.cc: New file.
7821         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7822         (Depends-on): Add ansi-c++-opt.
7823         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7824         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7825         gl_MODULE_INDICATOR.
7826
7827         Tests of module 'sys_socket' in C++ mode.
7828         * tests/test-sys_socket-c++.cc: New file.
7829         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7830         (Depends-on): Add ansi-c++-opt.
7831         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7832         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7833         gl_MODULE_INDICATOR.
7834
7835         Tests of module 'sys_select' in C++ mode.
7836         * tests/test-sys_select-c++.cc: New file.
7837         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7838         (Depends-on): Add ansi-c++-opt.
7839         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7840         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7841         gl_MODULE_INDICATOR.
7842
7843         Tests of module 'sys_ioctl' in C++ mode.
7844         * tests/test-sys_ioctl-c++.cc: New file.
7845         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7846         (Depends-on): Add ansi-c++-opt.
7847         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7849         gl_MODULE_INDICATOR.
7850
7851         Tests of module 'string' in C++ mode.
7852         * tests/test-string-c++.cc: New file.
7853         * modules/string-tests (Files): Add it and tests/signature.h.
7854         (Depends-on): Add ansi-c++-opt.
7855         (Makefile.am): Arrange to compile and run test-string-c++.
7856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7857         gl_MODULE_INDICATOR.
7858
7859         Tests of module 'stdlib' in C++ mode.
7860         * tests/test-stdlib-c++.cc: New file.
7861         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7862         (Depends-on): Add ansi-c++-opt.
7863         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7864         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7865         gl_MODULE_INDICATOR.
7866
7867         Tests of module 'stdio' in C++ mode.
7868         * tests/test-stdio-c++.cc: New file.
7869         * modules/stdio-tests (Files): Add it and tests/signature.h.
7870         (Depends-on): Add ansi-c++-opt.
7871         (Makefile.am): Arrange to compile and run test-stdio-c++.
7872         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7873         gl_MODULE_INDICATOR.
7874
7875         Tests of module 'spawn' in C++ mode.
7876         * tests/test-spawn-c++.cc: New file.
7877         * modules/spawn-tests (Files): Add it and tests/signature.h.
7878         (Depends-on): Add ansi-c++-opt.
7879         (Makefile.am): Arrange to compile and run test-spawn-c++.
7880         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7881         gl_MODULE_INDICATOR.
7882
7883         Tests of module 'signal' in C++ mode.
7884         * tests/test-signal-c++.cc: New file.
7885         * modules/signal-tests (Files): Add it and tests/signature.h.
7886         (Depends-on): Add ansi-c++-opt.
7887         (Makefile.am): Arrange to compile and run test-signal-c++.
7888         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7889         gl_MODULE_INDICATOR.
7890
7891         Tests of module 'search' in C++ mode.
7892         * tests/test-search-c++.cc: New file.
7893         * modules/search-tests (Files): Add it and tests/signature.h.
7894         (Depends-on): Add ansi-c++-opt.
7895         (Makefile.am): Arrange to compile and run test-search-c++.
7896         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7897         gl_MODULE_INDICATOR.
7898
7899         Tests of module 'math' in C++ mode.
7900         * tests/test-math-c++.cc: New file.
7901         * modules/math-tests (Files): Add it and tests/signature.h.
7902         (Depends-on): Add ansi-c++-opt.
7903         (Makefile.am): Arrange to compile and run test-math-c++.
7904         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7905
7906         Tests of module 'locale' in C++ mode.
7907         * tests/test-locale-c++.cc: New file.
7908         * modules/locale-tests (Files): Add it and tests/signature.h.
7909         (Depends-on): Add ansi-c++-opt.
7910         (Makefile.am): Arrange to compile and run test-locale-c++.
7911         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7912         gl_MODULE_INDICATOR.
7913
7914         Tests of module 'langinfo' in C++ mode.
7915         * tests/test-langinfo-c++.cc: New file.
7916         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7917         (Depends-on): Add ansi-c++-opt.
7918         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7919         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7920         gl_MODULE_INDICATOR.
7921
7922         Tests of module 'iconv-h' in C++ mode.
7923         * tests/test-iconv-h-c++.cc: New file.
7924         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7925         (Depends-on): Add ansi-c++-opt.
7926         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7927
7928         Tests of module 'glob' in C++ mode.
7929         * tests/test-glob-c++.cc: New file.
7930         * modules/glob-tests (Files): Add it.
7931         (Depends-on): Add ansi-c++-opt.
7932         (Makefile.am): Arrange to compile and run test-glob-c++.
7933
7934         Tests of module 'fcntl-h' in C++ mode.
7935         * tests/test-fcntl-h-c++.cc: New file.
7936         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
7937         (Depends-on): Add ansi-c++-opt.
7938         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
7939         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
7940         gl_MODULE_INDICATOR.
7941
7942         Tests of module 'dirent' in C++ mode.
7943         * tests/test-dirent-c++.cc: New file.
7944         * modules/dirent-tests (Files): Add it and tests/signature.h.
7945         (Depends-on): Add ansi-c++-opt.
7946         (Makefile.am): Arrange to compile and run test-dirent-c++.
7947         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7948         gl_MODULE_INDICATOR.
7949
7950         New module 'ansi-c++-opt'.
7951         * modules/ansi-c++-opt: New file.
7952         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
7953
7954         Document C++ namespace mode.
7955         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
7956
7957         wctype: Avoid #define replacements in C++ mode.
7958         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
7959         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
7960         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
7961         In C++, define a namespaced alias symbol.
7962         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
7963         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
7964         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
7965         rule.
7966
7967         wchar: Avoid #define replacements in C++ mode.
7968         * lib/wchar.in.h: Include c++defs.h.
7969         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
7970         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
7971         symbol.
7972         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
7973         * modules/wchar (Depends-on): Add c++defs.
7974         (Makefile.am): Update wchar.h rule.
7975
7976         unistd: Avoid #define replacements in C++ mode.
7977         * lib/unistd.in.h: Include c++defs.h.
7978         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
7979         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
7980         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
7981         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
7982         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
7983         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
7984         symbol.
7985         (environ): Update.
7986         * modules/unistd (Depends-on): Add c++defs.
7987         (Makefile.am): Update unistd.h rule.
7988
7989         time: Avoid #define replacements in C++ mode.
7990         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
7991         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
7992         define a namespaced alias symbol.
7993         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
7994         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
7995         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
7996         * modules/time (Depends-on): Add c++defs, warn-on-use.
7997         (Makefile.am): Update time.h rule.
7998         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7999         * modules/nanosleep (configure.ac): Likewise.
8000         * modules/strptime (configure.ac): Likewise.
8001         * modules/timegm (configure.ac): Likewise.
8002
8003         sys_time: Avoid #define replacements in C++ mode.
8004         * lib/sys_time.in.h: Include c++defs.h.
8005         (gettimeofday): In C++, define a namespaced alias symbol.
8006         * modules/sys_time (Depends-on): Add c++defs.
8007         (Makefile.am): Update sys/time.h rule.
8008
8009         sys_stat: Avoid #define replacements in C++ mode.
8010         * lib/sys_stat.in.h: Include c++defs.h.
8011         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8012         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8013         namespaced alias symbol.
8014         In C++, define a namespaced alias symbol.
8015         * modules/sys_stat (Depends-on): Add c++defs.
8016         (Makefile.am): Update sys/stat.h rule.
8017
8018         sys_socket: Avoid #define replacements in C++ mode.
8019         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8020         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8021         definitions also when the system has a <sys/socket.h>.
8022         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8023         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8024         In C++, define a namespaced alias symbol.
8025         * modules/sys_socket (Depends-on): Add c++defs.
8026         (Makefile.am): Update sys/socket.h rule.
8027
8028         sys_select: Avoid #define replacements in C++ mode.
8029         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8030         definitions also when the system has a <sys/select.h>.
8031         (select): In C++, define a namespaced alias symbol.
8032         * modules/sys_select (Depends-on): Add c++defs.
8033         (Makefile.am): Update sys/select.h rule.
8034
8035         sys_ioctl: Avoid #define replacements in C++ mode.
8036         * lib/sys_ioctl.in.h: Include c++defs.h.
8037         (ioctl): In C++, define a namespaced alias symbol.
8038         * modules/sys_ioctl (Depends-on): Add c++defs.
8039         (Makefile.am): Update sys/ioctl.h rule.
8040
8041         string: Avoid #define replacements in C++ mode.
8042         * lib/string.in.h: Include c++defs.h.
8043         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8044         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8045         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8046         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8047         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8048         * modules/string (Depends-on): Add c++defs.
8049         (Makefile.am): Update string.h rule.
8050
8051         stdlib: Avoid #define replacements in C++ mode.
8052         * lib/stdlib.in.h: Include c++defs.h.
8053         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8054         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8055         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8056         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8057         symbol.
8058         * modules/stdlib (Depends-on): Add c++defs.
8059         (Makefile.am): Update stdlib.h rule.
8060
8061         stdio: Avoid #define replacements in C++ mode.
8062         * lib/stdio.in.h: Include c++defs.h.
8063         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8064         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8065         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8066         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8067         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8068         namespaced alias symbol.
8069         * modules/stdio (Depends-on): Add c++defs.
8070         (Makefile.am): Update stdio.h rule.
8071
8072         spawn: Avoid #define replacements in C++ mode.
8073         * lib/spawn.in.h: Include c++defs.h.
8074         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8075         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8076         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8077         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8078         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8079         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8080         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8081         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8082         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8083         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8084         In C++, define a namespaced alias symbol.
8085         * modules/spawn (Depends-on): Add c++defs.
8086         (Makefile.am): Update spawn.h rule.
8087
8088         signal: Avoid #define replacements in C++ mode.
8089         * lib/signal.in.h: Include c++defs.h.
8090         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8091         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8092         namespaced alias symbol.
8093         * modules/signal (Depends-on): Add c++defs.
8094         (Makefile.am): Update signal.h rule.
8095
8096         search: Avoid #define replacements in C++ mode.
8097         * lib/search.in.h: Include c++defs.h.
8098         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8099         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8100         symbol.
8101         * modules/search (Depends-on): Add c++defs.
8102         (Makefile.am): Update search.h rule.
8103
8104         math: Avoid #define replacements in C++ mode.
8105         * lib/math.in.h: Include c++defs.h.
8106         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8107         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8108         trunc, truncl): In C++, define a namespaced alias symbol.
8109         * modules/math (Depends-on): Add c++defs.
8110         (Makefile.am): Update math.h rule.
8111
8112         locale: Avoid #define replacements in C++ mode.
8113         * lib/locale.in.h: Include c++defs.h.
8114         (duplocale): In C++, define a namespaced alias symbol.
8115         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8116         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8117         * modules/locale (Depends-on): Add c++defs.
8118         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8119
8120         langinfo: Avoid #define replacements in C++ mode.
8121         * lib/langinfo.in.h: Include c++defs.h.
8122         (nl_langinfo): In C++, define a namespaced alias symbol.
8123         * modules/langinfo (Depends-on): Add c++defs.
8124         (Makefile.am): Update langinfo.h rule.
8125
8126         iconv-h: Avoid #define replacements in C++ mode.
8127         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8128         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8129         symbol.
8130         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8131         whenever iconv is present.
8132         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8133         (Makefile.am): Update iconv.h rule.
8134
8135         glob: Avoid #define replacements in C++ mode.
8136         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8137         (_gl_glob_errfunc_fn): New type.
8138         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8139         symbol.
8140         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8141         (Makefile.am): Update glob.h rule.
8142
8143         fcntl-h: Avoid #define replacements in C++ mode.
8144         * lib/fcntl.in.h: Include c++defs.h.
8145         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8146         * modules/fcntl-h (Depends-on): Add c++defs.
8147         (Makefile.am): Update fcntl.h rule.
8148
8149         dirent: Avoid #define replacements in C++ mode.
8150         * lib/dirent.in.h: Include c++defs.h.
8151         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8152         namespaced alias symbol.
8153         (dirfd): Update declaration.
8154         * modules/dirent (Depends-on): Add c++defs.
8155         (Makefile.am): Update dirent.h rule.
8156
8157         ctype: Make it usable in C++ code.
8158         * lib/ctype.in.h: Include c++defs.h.
8159         (isblank): Declare as extern "C".
8160         * modules/ctype (Depends-on): Add c++defs.
8161         (Makefile.am): Update ctype.h rule.
8162
8163         New module 'c++defs'.
8164         * modules/c++defs: New file.
8165         * build-aux/c++defs.h: New file.
8166         Reported by John W. Eaton <jwe@gnu.org>.
8167
8168 2010-03-07  Bruno Haible  <bruno@clisp.org>
8169
8170         logb: Provide missing declaration for Cygwin.
8171         * lib/math.in.h (logb): New declaration.
8172         * m4/logb.m4: New file.
8173         * modules/logb (Files): Add m4/logb.m4.
8174         (Depends-on): Add math.
8175         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8176         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8178         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8179         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8180
8181 2010-03-07  Bruno Haible  <bruno@clisp.org>
8182
8183         Fix test-cond link error.
8184         * tests/test-cond.c: Include <stdio.h>.
8185
8186 2010-03-07  Bruno Haible  <bruno@clisp.org>
8187
8188         Fix test-dirent-safer link error.
8189         * modules/dirent-safer-tests (Makefile.am): Define
8190         test_dirent_safer_LDADD.
8191
8192 2010-03-07  Bruno Haible  <bruno@clisp.org>
8193
8194         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8195         among default module list.
8196
8197 2010-03-07  Bruno Haible  <bruno@clisp.org>
8198
8199         Fix link error on platforms with GNU libiconv.
8200         * modules/unistr/u8-strcoll-tests (Makefile): Define
8201         test_u8_strcoll_LDADD.
8202         * modules/unistr/u16-strcoll-tests (Makefile): Define
8203         test_u16_strcoll_LDADD.
8204         * modules/unistr/u32-strcoll-tests (Makefile): Define
8205         test_u32_strcoll_LDADD.
8206
8207 2010-03-07  Bruno Haible  <bruno@clisp.org>
8208
8209         Use POSIX declarations for socket functions.
8210         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8211         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8212         rpl_sendto): Change declaration to match POSIX.
8213         * lib/connect.c (rpl_connect): Likewise.
8214         * lib/accept.c (rpl_accept): Likewise.
8215         * lib/bind.c (rpl_bind): Likewise.
8216         * lib/getpeername.c (rpl_getpeername): Likewise.
8217         * lib/getsockname.c (rpl_getsockname): Likewise.
8218         * lib/recv.c (rpl_recv): Likewise.
8219         * lib/send.c (rpl_send): Likewise.
8220         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8221         * lib/sendto.c (rpl_sendto): Likewise.
8222
8223 2010-03-06  Bruno Haible  <bruno@clisp.org>
8224
8225         Clarify access, euidaccess, faccessat.
8226         * doc/posix-functions/faccessat.texi: Mention security problem under
8227         "Other problems", not "Portability problems".
8228         * doc/posix-functions/access.texi: Likewise. Mention a related security
8229         problem.
8230         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8231         * lib/euidaccess.c: Add comments about platforms.
8232         * lib/unistd.in.h (access, euidaccess): Add warnings.
8233
8234 2010-03-07  Bruno Haible  <bruno@clisp.org>
8235
8236         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8237         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8238         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8239         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8240         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8241         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8242         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8243         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8244         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8245         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8246         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8247         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8248         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8249         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8250         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8251         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8252         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8253         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8254         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8255         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8256         Likewise.
8257         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8258         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8259         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8260         Likewise.
8261         * tests/test-spawn.c (main): Make it work when
8262         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8263
8264 2010-03-07  Bruno Haible  <bruno@clisp.org>
8265
8266         Fix incorrect Makefile.am generation in German locale.
8267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8268         Execute sed command with character range in C locale.
8269
8270 2010-03-06  Bruno Haible  <bruno@clisp.org>
8271
8272         Tests for module 'iconv-h'.
8273         * modules/iconv-h-tests: New file.
8274         * tests/test-iconv-h.c: New file.
8275
8276         New module 'iconv-h'.
8277         * modules/iconv-h: New file.
8278         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8279         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8280         (configure.ac): Remove gl_ICONV_H.
8281         (Makefile.am): Remove rule for iconv.h.
8282
8283 2010-03-06  Bruno Haible  <bruno@clisp.org>
8284
8285         More consistent naming of *.m4 files.
8286         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8287         * modules/wctype (Files): Update.
8288
8289         More consistent naming of *.m4 files.
8290         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8291         * modules/wchar (Files): Update.
8292
8293 2010-03-06  Jim Meyering  <meyering@redhat.com>
8294
8295         euidaccess: relax license to LGPLv2+
8296         * modules/euidaccess (License): Relax to LGPLv2+.
8297
8298 2010-03-06  Bruno Haible  <bruno@clisp.org>
8299
8300         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8301         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8302         (Makefile.am): Augment lib_SOURCES instead.
8303
8304 2010-03-04  Jim Meyering  <meyering@redhat.com>
8305
8306         utime: remove obsolete module
8307         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8308         unnecessary for years, and has been marked as obsolete for 10 months.
8309         * modules/utime: Remove file.
8310         * lib/utime.c: Remove file.
8311         * m4/utime.m4: Remove file.
8312         * m4/utimes-null.m4: Remove file.
8313         * doc/posix-functions/utime.texi (utime): Remove reference to
8314         the module.  Move the sole "fixed by gnulib" item into the
8315         "problems not fixed by Gnulib" list.
8316         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8317
8318 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8319
8320         * modules/exit (License): Relax license to LGPLv2+.
8321         (Status): Mark as obsolete.
8322         * NEWS: Mention deprecated 'exit' module.
8323         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8324         of now obsolete 'exit'.
8325
8326 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8327
8328         fts-lgpl: remove unused module
8329         * modules/fts-lgpl: Remove.
8330         * MODULES.html.sh (func_all_modules): Adjust.
8331         * check-module (find_included_lib_files): Adjust.
8332         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8333
8334 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8335
8336         copy-acl: enhance Solaris ACL error handling
8337         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8338         * lib/set-mode-acl.c (qset_acl): Likewise.
8339
8340 2010-03-02  Bruno Haible  <bruno@clisp.org>
8341
8342         spawn: Don't override the system defined values on FreeBSD 8.
8343         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8344         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8345         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8346         if HAVE_POSIX_SPAWN is 1.
8347         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8348
8349 2010-03-01  Bruno Haible  <bruno@clisp.org>
8350
8351         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8352         regarding Automake.
8353
8354 2010-02-25  Bruno Haible  <bruno@clisp.org>
8355
8356         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8357         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8358         setting, not afterwards.
8359         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8360
8361 2010-02-24  Eric Blake  <eblake@redhat.com>
8362
8363         bootstrap, git-version-gen: use timestamp
8364         * build-aux/git-version-gen (scriptversion): Force UTC.
8365         * build-aux/bootstrap (scriptversion): New variable.
8366
8367         bootstrap: allow older git
8368         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8369         older than 1.6.4.  Requested by the libvirt project.
8370
8371 2010-02-23  Eric Blake  <eblake@redhat.com>
8372
8373         warn-on-use: work with old autoconf
8374         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8375         AS_VAR semantics of autoconf 2.60.
8376         Reported by Bruno Haible.
8377
8378         bootstrap: improve some comments
8379         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8380         clarification comments.
8381
8382         gettimeofday: provide correct function
8383         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8384         when replacement is declared, otherwise provide gettimeofday.
8385         Reported by Michael Goffioul.
8386
8387 2010-02-23  Jim Meyering  <meyering@redhat.com>
8388
8389         lib-ignore: relax license to "unlimited", not LGPLv2+
8390         * modules/lib-ignore (License): Relax to "unlimited".
8391
8392 2010-02-23  Jim Meyering  <meyering@redhat.com>
8393
8394         lib-ignore: relax license to LGPLv2+
8395         * modules/lib-ignore (License): Relax to LGPLv2+.
8396
8397 2010-02-22  Eric Blake  <eblake@redhat.com>
8398
8399         lseek: avoid bash 3.2 broken pipe bug
8400         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8401         warning from bash 3.2.
8402         Reported by Ben Pfaff, with analysis from Bruno Haible.
8403
8404         bootstrap: support non-FSF copyright holder
8405         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8406         bootstrap.conf override of COPYRIGHT_HOLDER.
8407         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8408
8409         bootstrap: interoperate with gettext 0.14.1
8410         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8411
8412         bootstrap: allow for alternate submodule location
8413         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8414         hardcoding submodule location.
8415         (gnulib_mk): Allow direct use of Makefile.am.
8416
8417         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8418         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8419         rather than reconfiguring where the submodule points.
8420
8421         gettimeofday: restore support for platforms that lack function
8422         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8423         replacement if function is missing.
8424         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8425         * modules/sys_time (Makefile.am): Substitute it.
8426         * lib/sys_time.in.h (gettimeofday): Check it.
8427         Reported by Michael Goffioul.
8428
8429 2010-02-21  Bruno Haible  <bruno@clisp.org>
8430
8431         * lib/stdio.in.h (obstack_printf): Fix typo.
8432
8433 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8434
8435         vc-list-files: use bzr ls's -R option
8436         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8437         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8438
8439 2010-02-21  Jim Meyering  <meyering@redhat.com>
8440
8441         init.sh: fix EXEEXT shims to work also for names like test-prog
8442         * tests/init.sh: Re-exec a better shell, when needed.
8443         If the current shell lacks support for posix $(...), an init.sh-using
8444         test will now try to find a shell that supports that.  If EXEEXT is
8445         nonempty, we also require support for hyphen-in-alias-name and shell
8446         substitutions like ${var#glob}.  Failure to find such a shell results
8447         in a skipped test.
8448
8449 2010-02-21  Bruno Haible  <bruno@clisp.org>
8450
8451         Really work around around "broken pipe" error message from bash 3.2.
8452         * gnulib-tool (func_reset_sigpipe): Remove function.
8453         (echo): In bash 3.2, define to a function that uses printf.
8454         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8455
8456 2010-02-20  Bruno Haible  <bruno@clisp.org>
8457
8458         Restore support for automake 1.9.6 with autoconf 2.61.
8459         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8460         Reported by James Youngman <jay@gnu.org>.
8461
8462 2010-02-20  Bruno Haible  <bruno@clisp.org>
8463
8464         Improve *printf warning condition.
8465         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8466         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8467         and the function is overridden due to SIGPIPE emulation.
8468
8469 2010-02-20  Bruno Haible  <bruno@clisp.org>
8470
8471         * lib/stdio.in.h: Tweak comments.
8472
8473 2010-02-19  Bruno Haible  <bruno@clisp.org>
8474
8475         Make it easier to find modules. New gnulib-tool option '--find'.
8476         * gnulib-tool: New option --find.
8477         (func_usage): Document it.
8478         (func_sanitize_modulelist): New function, extracted from
8479         func_all_modules.
8480         (func_all_modules): Invoke it.
8481         * doc/gnulib-tool.texi (Which modules?): New node.
8482
8483 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8484
8485         * lib/sys_select.in.h: Provide select replacement even if
8486         sys/select.h exists on a system, for Interix.
8487
8488 2010-02-18  Jim Meyering  <meyering@redhat.com>
8489
8490         init.sh: don't use $(...) just yet
8491         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8492         to accommodate e.g., Solaris' /bin/sh.
8493
8494 2010-02-17  Bruno Haible  <bruno@clisp.org>
8495
8496         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8497         Reported by Ludovic Courtès <ludo@gnu.org>.
8498
8499 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8500
8501         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8502         linking with -lintl.
8503
8504 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8505
8506         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8507         if not provided by the system's netdb.h.  Reported by
8508         ludo@gnu.org (Ludovic Courtès).
8509
8510 2010-02-15  Jim Meyering  <meyering@redhat.com>
8511
8512         init.sh: improve portability and efficiency
8513         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8514         "dummy" in a for loop.
8515         Use '!', not '^' to select the complement of a character set used
8516         in a "case" statement.
8517         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8518         Suggestions from Eric Blake.
8519
8520         init.sh: automatically accommodate programs with the .exe suffix
8521         Automatically arrange for an invocation of "prog" to execute the
8522         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8523         may use the simpler "prog", yet still work when built on a system
8524         that requires specifying the added suffix.
8525         Do this by constructing a function named "prog" that invokes
8526         "prog.exe" for each .exe file in selected directories.
8527         * tests/init.sh (find_exe_basenames_): New function.
8528         (create_exe_shim_functions_): New function.
8529         (path_prepend_): Use it.
8530
8531         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8532         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8533         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8534
8535 2010-02-14  Jim Meyering  <meyering@redhat.com>
8536
8537         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8538         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8539         (sc_prohibit_hash_pjw_without_use): New rule.
8540
8541         maint.mk: allow the default upload destination dir to be overridden
8542         * top/maint.mk (upload_dest_dir_): Define with a default that
8543         preserves the status quo.
8544         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8545         Reported by Peter Simons.
8546
8547         maint.mk: prohibit inclusion of "hash.h" without_use
8548         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8549
8550 2010-02-10  Jim Meyering  <meyering@redhat.com>
8551
8552         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8553         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8554
8555 2010-02-09  Eric Blake  <ebb9@byu.net>
8556         and Bruno Haible  <bruno@clisp.org>
8557
8558         obstack-printf-posix: ensure declaration
8559         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8560         extracted from gl_FUNC_OBSTACK_PRINTF.
8561         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8562         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8563         Likewise.
8564         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8565         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8566         0.
8567
8568 2010-02-08  Bruno Haible  <bruno@clisp.org>
8569
8570         gnulib-tool: Fix typo in 2010-02-07 commit.
8571         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8572         Reported by Eric Blake.
8573
8574 2010-02-07  Bruno Haible  <bruno@clisp.org>
8575
8576         gnulib-tool: Fix up caching patches.
8577         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8578         option --no-cache. Use associative arrays when supported by the shell.
8579         (sed_comments): New variable.
8580         (modcache): Renamed from do_cache.
8581         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8582         abbreviate unnecessarily.
8583         (have_associative): New variable.
8584         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8585         way also for ksh and zsh.
8586         (func_init_sed_convert_to_cache_statements): New function, extracted
8587         from func_cache_lookup_module. Add support for associative arrays.
8588         Don't set the c_MODULE_cached variable here. Ignore all lines before
8589         the first field header. Remove only the final newline, not all trailing
8590         newlines. Support empty fields correctly. Limit the use of 'eval' to
8591         assignments.
8592         (func_get_description, func_get_status, func_get_notice,
8593         func_get_applicability, func_get_filelist, func_get_dependencies,
8594         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8595         func_get_automake_snippet, func_get_include_directive,
8596         func_get_link_directive, func_get_license, func_get_maintainer):
8597         Update documentation. List the unoptimized code first. Add support for
8598         associative arrays. Limit the use of 'eval' to assignments.
8599         (func_get_applicability): Undo stylistic pessimisations.
8600         (func_get_automake_snippet, func_get_include_directive): Reduce code
8601         duplication.
8602         (func_modules_transitive_closure, func_modules_add_dummy,
8603         func_modules_notice, func_modules_to_filelist, func_add_file,
8604         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8605         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8606         func_create_testdir, func_create_megatestdir): Update documentation.
8607
8608 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8609
8610         * gnulib-tool (func_cache_lookup_module): Store the module name
8611         belonging to the cache variable; error out if two different
8612         module names map to the same cache variable name.
8613
8614 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8615
8616         gnulib-tool: Make caching optional.
8617         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8618         Update matching short versions of --no-changelog.
8619         (func_usage): Update.
8620         (sed_extract_cache_prog): Renamed from ...
8621         (sed_extract_prog): ... this; revert to old extraction script.
8622         (func_get_description, func_get_status)
8623         (func_get_notice, func_get_applicability, func_get_filelist)
8624         (func_get_dependencies, func_get_autoconf_early_snippet)
8625         (func_get_autoconf_snippet, func_get_automake_snippet)
8626         (func_get_include_directive, func_get_link_directive)
8627         (func_get_license, func_get_maintainer): If $do_cache is false,
8628         use old, non-caching extraction scripts.
8629         Suggestion by Bruno Haible.
8630
8631 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8632
8633         gnulib-tool: cache module metainformation.
8634         * gnulib-tool (sed_extract_prog): Match newline before each
8635         header, and rewrite header to a shell variable suffix.
8636         (func_cache_var, func_cache_lookup_module): New functions,
8637         to turn a module name into a cache variable prefix, and to
8638         look up and cache module metainformation.
8639         (func_get_description, func_get_status)
8640         (func_get_notice, func_get_applicability, func_get_filelist)
8641         (func_get_dependencies, func_get_autoconf_early_snippet)
8642         (func_get_autoconf_snippet, func_get_automake_snippet)
8643         (func_get_include_directive, func_get_link_directive)
8644         (func_get_license, func_get_maintainer): Use
8645         func_cache_lookup_module.
8646
8647 2010-02-07  Bruno Haible  <bruno@clisp.org>
8648
8649         fnctl: Fix missing dependency.
8650         * modules/fcntl (Depends-on): Add getdtablesize.
8651         Reported by John W. Eaton <jwe@gnu.org>.
8652
8653 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8654
8655         Argp: fix recognition of short alias options.
8656
8657         * lib/argp-parse.c (convert_options): Fix improper use of
8658         `|' between character values.
8659         * tests/test-argp.c (group1_option): New alias option
8660         --read (-r).
8661         (group1_parser): Special handling for 'r'.
8662         (test15): New test case.
8663         (test_fun): Add test15.
8664         * tests/test-argp-2.sh: Update expected --help and --usage
8665         outputs.
8666
8667 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8668
8669         * tests/test-argp.c: Fix indentation.
8670
8671 2010-02-04  Eric Blake  <ebb9@byu.net>
8672
8673         gettimeofday: expose type of second argument
8674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8675         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8676         * tests/test-gettimeofday.c: Use it to silence warning.
8677         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8678         the issue.
8679
8680 2010-02-03  Jim Meyering  <meyering@redhat.com>
8681
8682         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8683         * lib/regcomp.c (TYPE_SIGNED): Define.
8684         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8685
8686         regcomp.c: avoid a new -Wshadow warning
8687         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8688
8689 2010-02-01  Jim Meyering  <meyering@redhat.com>
8690
8691         removing useless parentheses in cpp #define directives
8692         For motivation, see commit c0221df4, "define STREQ(a,b)
8693         consistently, removing useless parentheses"
8694         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8695         * lib/mountlist.c (MNT_IGNORE): Likewise.
8696         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8697
8698 2010-02-01  Eric Blake  <ebb9@byu.net>
8699
8700         sys_time: use link-warning
8701         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8702         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8703         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8704         * modules/sys_time (Depends-on): Add warn-on-use.
8705         (Makefile.am): Always build replacement.
8706         (configure.ac): Update substitutions.
8707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8708         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8709         bother with SYS_TIME_H.
8710         * modules/gettimeofday (configure.ac): Declare indicator.
8711         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8712         in use.
8713
8714         closein-tests: silence compiler warning
8715         * tests/test-closein.c (main): Ignore fread result.
8716         * modules/closein-tests (Depends-on): Add ignore-value.
8717
8718         tests: silence warning about system return
8719         * tests/test-areadlink-with-size.c (main): Ignore system result.
8720         * tests/test-areadlink.c (main): Likewise.
8721         * tests/test-areadlinkat-with-size.c (main): Likewise.
8722         * tests/test-areadlinkat.c (main): Likewise.
8723         * tests/test-canonicalize-lgpl.c (main): Likewise.
8724         * tests/test-canonicalize.c (main): Likewise.
8725         * tests/test-chown.c (main): Likewise.
8726         * tests/test-fchownat.c (main): Likewise.
8727         * tests/test-fdutimensat.c (main): Likewise.
8728         * tests/test-fstatat.c (main): Likewise.
8729         * tests/test-futimens.c (main): Likewise.
8730         * tests/test-lchown.c (main): Likewise.
8731         * tests/test-link.c (main): Likewise.
8732         * tests/test-linkat.c (main): Likewise.
8733         * tests/test-lstat.c (main): Likewise.
8734         * tests/test-mkdir.c (main): Likewise.
8735         * tests/test-mkdirat.c (main): Likewise.
8736         * tests/test-mkfifo.c (main): Likewise.
8737         * tests/test-mkfifoat.c (main): Likewise.
8738         * tests/test-mknod.c (main): Likewise.
8739         * tests/test-readlink.c (main): Likewise.
8740         * tests/test-remove.c (main): Likewise.
8741         * tests/test-rename.c (main): Likewise.
8742         * tests/test-renameat.c (main): Likewise.
8743         * tests/test-rmdir.c (main): Likewise.
8744         * tests/test-symlink.c (main): Likewise.
8745         * tests/test-symlinkat.c (main): Likewise.
8746         * tests/test-unlink.c (main): Likewise.
8747         * tests/test-unlinkat.c (main): Likewise.
8748         * tests/test-utimens.c (main): Likewise.
8749         * tests/test-utimensat.c (main): Likewise.
8750         * modules/areadlink-tests (Depends-on): Add ignore-value.
8751         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8752         * modules/areadlinkat-tests (Depends-on): Likewise.
8753         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8754         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8755         * modules/canonicalize-tests (Depends-on): Likewise.
8756         * modules/chown-tests (Depends-on): Likewise.
8757         * modules/fdutimensat-tests (Depends-on): Likewise.
8758         * modules/futimens-tests (Depends-on): Likewise.
8759         * modules/lchown-tests (Depends-on): Likewise.
8760         * modules/link-tests (Depends-on): Likewise.
8761         * modules/linkat-tests (Depends-on): Likewise.
8762         * modules/lstat-tests (Depends-on): Likewise.
8763         * modules/mkdir-tests (Depends-on): Likewise.
8764         * modules/mkfifo-tests (Depends-on): Likewise.
8765         * modules/mkfifoat-tests (Depends-on): Likewise.
8766         * modules/mknod-tests (Depends-on): Likewise.
8767         * modules/openat-tests (Depends-on): Likewise.
8768         * modules/readlink-tests (Depends-on): Likewise.
8769         * modules/remove-tests (Depends-on): Likewise.
8770         * modules/rename-tests (Depends-on): Likewise.
8771         * modules/renameat-tests (Depends-on): Likewise.
8772         * modules/rmdir-tests (Depends-on): Likewise.
8773         * modules/symlink-tests (Depends-on): Likewise.
8774         * modules/symlinkat-tests (Depends-on): Likewise.
8775         * modules/unlink-tests (Depends-on): Likewise.
8776         * modules/utimens-tests (Depends-on): Likewise.
8777         * modules/utimensat-tests (Depends-on): Likewise.
8778
8779 2010-01-31  Bruno Haible  <bruno@clisp.org>
8780
8781         Perform the same test for many <math.h> functions.
8782         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8783         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8784         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8785         of gl_MATHFUNC.
8786         * modules/acos (configure.ac): Likewise.
8787         * modules/asin (configure.ac): Likewise.
8788         * modules/atan (configure.ac): Likewise.
8789         * modules/atan2 (configure.ac): Likewise.
8790         * modules/cbrt (configure.ac): Likewise.
8791         * modules/copysign (configure.ac): Likewise.
8792         * modules/cos (configure.ac): Likewise.
8793         * modules/cosh (configure.ac): Likewise.
8794         * modules/erf (configure.ac): Likewise.
8795         * modules/erfc (configure.ac): Likewise.
8796         * modules/exp (configure.ac): Likewise.
8797         * modules/fmod (configure.ac): Likewise.
8798         * modules/hypot (configure.ac): Likewise.
8799         * modules/j0 (configure.ac): Likewise.
8800         * modules/j1 (configure.ac): Likewise.
8801         * modules/jn (configure.ac): Likewise.
8802         * modules/lgamma (configure.ac): Likewise.
8803         * modules/log (configure.ac): Likewise.
8804         * modules/log10 (configure.ac): Likewise.
8805         * modules/log1p (configure.ac): Likewise.
8806         * modules/pow (configure.ac): Likewise.
8807         * modules/remainder (configure.ac): Likewise.
8808         * modules/sin (configure.ac): Likewise.
8809         * modules/sinh (configure.ac): Likewise.
8810         * modules/tan (configure.ac): Likewise.
8811         * modules/tanh (configure.ac): Likewise.
8812         * modules/y0 (configure.ac): Likewise.
8813         * modules/y1 (configure.ac): Likewise.
8814         * modules/yn (configure.ac): Likewise.
8815         Suggested by Paolo Bonzini.
8816
8817 2010-01-31  Bruno Haible  <bruno@clisp.org>
8818
8819         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8820
8821 2010-01-31  Bruno Haible  <bruno@clisp.org>
8822
8823         Work around getdelim() bug on FreeBSD 8.0.
8824         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8825         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8826         not work.
8827         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8828         is 1.
8829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8830         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8831         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8832         a non-zero size.
8833         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8834
8835 2010-01-31  Bruno Haible  <bruno@clisp.org>
8836
8837         Work around getline() bug on FreeBSD 8.0.
8838         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8839         and a non-zero size.
8840         * tests/test-getline.c (main): Likewise.
8841         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8842         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8843
8844 2010-01-28  Eric Blake  <ebb9@byu.net>
8845
8846         regex: fix build failure
8847         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8848         platforms.
8849
8850 2010-01-28  Jim Meyering  <meyering@redhat.com>
8851
8852         regex: do not ignore memory allocation failure
8853         * lib/regex_internal.c (create_cd_newstate): Detect
8854         re_node_set_init_copy failure.   Extracted from glibc commit
8855         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8856
8857         regex: sync more white-space changes from libc
8858         * lib/regex_internal.c: White-space only changes.
8859         * lib/regexec.c: Likewise.
8860
8861         regex: add many uses of __attribute_warn_unused_result__
8862         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8863         * lib/regexec.c: Likewise.
8864         Extracted from a messy glibc commit.
8865
8866         regcomp.c: spelling and merge-artifact from glibc
8867         * lib/regcomp.c: Merge remainder of glibc's
8868         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8869
8870         regcomp.c: sync white-space changes from glibc
8871         * lib/regcomp.c: Merge to accommodate white space
8872         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8873
8874         regcomp.c: do not ignore internal return values
8875         * lib/regcomp.c: Do not ignore internal return values.
8876         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8877         but without its white-space changes and spelling fixes.
8878
8879         regex_internal.h: define __attribute_warn_unused_result__
8880         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8881
8882         maint: add a syntax-check rule to check for vulnerable Makefile.in
8883         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8884
8885 2010-01-27  Jim Meyering  <meyering@redhat.com>
8886
8887         ncftpput-ftp: clean up spaces
8888         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8889         Remove trailing blanks.
8890
8891 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8892
8893         * build-aux/git-version-gen: Fix copyright statement.
8894         * build-aux/gnupload: Likewise.
8895         * tests/test-arcfour.c: Likewise.
8896         * tests/test-arctwo.c: Likewise.
8897         * tests/test-count-one-bits.c: Likewise.
8898         * tests/test-crc.c: Likewise.
8899         * tests/test-des.c: Likewise.
8900         * tests/test-gc-arcfour.c: Likewise.
8901         * tests/test-gc-arctwo.c: Likewise.
8902         * tests/test-gc-des.c: Likewise.
8903         * tests/test-gc-hmac-md5.c: Likewise.
8904         * tests/test-gc-hmac-sha1.c: Likewise.
8905         * tests/test-gc-md2.c: Likewise.
8906         * tests/test-gc-md4.c: Likewise.
8907         * tests/test-gc-md5.c: Likewise.
8908         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8909         * tests/test-gc-rijndael.c: Likewise.
8910         * tests/test-gc-sha1.c: Likewise.
8911         * tests/test-gc.c: Likewise.
8912         * tests/test-gethostname.c: Likewise.
8913         * tests/test-gettimeofday.c: Likewise.
8914         * tests/test-hash.c: Likewise.
8915         * tests/test-hmac-md5.c: Likewise.
8916         * tests/test-hmac-sha1.c: Likewise.
8917         * tests/test-md2.c: Likewise.
8918         * tests/test-md4.c: Likewise.
8919         * tests/test-md5.c: Likewise.
8920         * tests/test-memchr.c: Likewise.
8921         * tests/test-memchr2.c: Likewise.
8922         * tests/test-memcmp.c: Likewise.
8923         * tests/test-memmem.c: Likewise.
8924         * tests/test-memrchr.c: Likewise.
8925         * tests/test-rawmemchr.c: Likewise.
8926         * tests/test-read-file.c: Likewise.
8927         * tests/test-rijndael.c: Likewise.
8928         * tests/test-sockets.c: Likewise.
8929         * tests/test-strchrnul.c: Likewise.
8930         * tests/test-strstr.c: Likewise.
8931         * tests/test-strtod.c: Likewise.
8932         * build-aux/ncftpput-ftp: Likewise.
8933
8934 2010-01-26  Eric Blake  <ebb9@byu.net>
8935
8936         ignore-value: update recommended header name
8937         * modules/ignore-value (Include): Only use <> for headers that
8938         exist in glibc.
8939
8940 2010-01-26  Jim Meyering  <meyering@redhat.com>
8941
8942         test-userspec.c: avoid compiler warnings
8943         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
8944         and "initialization discards qualifiers..." warnings.
8945         Put the first "uid" in its own scope, and make char* members "const".
8946
8947 2010-01-25  Bruno Haible  <bruno@clisp.org>
8948
8949         gnulib-tool: Make warning diagnostics consistent.
8950         * gnulib-tool (func_warning): New function.
8951         Use it everywhere where gnulib-tool produces output to stderr and it is
8952         not a fatal error.
8953
8954 2010-01-25  Bruno Haible  <bruno@clisp.org>
8955
8956         Fix test dependencies.
8957         * modules/xstrtol-tests (Depends-on): Add inttypes.
8958         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
8959
8960 2010-01-25 Pádraig Brady <P@draigBrady.com>
8961
8962         syntax-check: detect incorrect boolean macro values in config.h
8963         * modules/maintainer-makefile (configure.ac): Parameterize the location
8964         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
8965         The logic is from Eric Blake and the location indicated by Jim Meyering.
8966         Note the more natural CONFIG_HEADER name is prohibited by automake
8967         for backwards compatibility reasons.
8968         * top/maint.mk (sc_Wundef_boolean): New rule.
8969
8970 2010-01-25  Jim Meyering  <meyering@redhat.com>
8971
8972         bootstrap: detect MacOS 10.6's shasum, too
8973         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
8974         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
8975
8976 2010-01-23  Jim Meyering  <meyering@redhat.com>
8977
8978         xstrtoll: new module
8979         * modules/xstrtoll: New file.
8980         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
8981         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
8982         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
8983         ./configure fails if you use this module and lack "long long".
8984         * modules/xstrtoll-tests: New module.
8985         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
8986         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
8987         new init.sh-based test framework.
8988
8989 2010-01-24  Bruno Haible  <bruno@clisp.org>
8990
8991         Tests for module 'yn'.
8992         * modules/yn-tests: New file.
8993         * tests/test-yn.c: New file.
8994
8995         Tests for module 'y1'.
8996         * modules/y1-tests: New file.
8997         * tests/test-y1.c: New file.
8998
8999         Tests for module 'y0'.
9000         * modules/y0-tests: New file.
9001         * tests/test-y0.c: New file.
9002
9003         Tests for module 'tanh'.
9004         * modules/tanh-tests: New file.
9005         * tests/test-tanh.c: New file.
9006
9007         Tests for module 'tan'.
9008         * modules/tan-tests: New file.
9009         * tests/test-tan.c: New file.
9010
9011         Tests for module 'sqrt'.
9012         * modules/sqrt-tests: New file.
9013         * tests/test-sqrt.c: New file.
9014
9015         Tests for module 'sinh'.
9016         * modules/sinh-tests: New file.
9017         * tests/test-sinh.c: New file.
9018
9019         Tests for module 'sin'.
9020         * modules/sin-tests: New file.
9021         * tests/test-sin.c: New file.
9022
9023         Tests for module 'rint'.
9024         * modules/rint-tests: New file.
9025         * tests/test-rint.c: New file.
9026
9027         Tests for module 'remainder'.
9028         * modules/remainder-tests: New file.
9029         * tests/test-remainder.c: New file.
9030
9031         Tests for module 'pow'.
9032         * modules/pow-tests: New file.
9033         * tests/test-pow.c: New file.
9034
9035         Tests for module 'nextafter'.
9036         * modules/nextafter-tests: New file.
9037         * tests/test-nextafter.c: New file.
9038
9039         Tests for module 'modf'.
9040         * modules/modf-tests: New file.
9041         * tests/test-modf.c: New file.
9042
9043         Tests for module 'logb'.
9044         * modules/logb-tests: New file.
9045         * tests/test-logb.c: New file.
9046
9047         Tests for module 'log1p'.
9048         * modules/log1p-tests: New file.
9049         * tests/test-log1p.c: New file.
9050
9051         Tests for module 'log10'.
9052         * modules/log10-tests: New file.
9053         * tests/test-log10.c: New file.
9054
9055         Tests for module 'log'.
9056         * modules/log-tests: New file.
9057         * tests/test-log.c: New file.
9058
9059         Tests for module 'lgamma'.
9060         * modules/lgamma-tests: New file.
9061         * tests/test-lgamma.c: New file.
9062
9063         Tests for module 'ldexp'.
9064         * modules/ldexp-tests: New file.
9065         * tests/test-ldexp.c: New file.
9066
9067         Tests for module 'jn'.
9068         * modules/jn-tests: New file.
9069         * tests/test-jn.c: New file.
9070
9071         Tests for module 'j1'.
9072         * modules/j1-tests: New file.
9073         * tests/test-j1.c: New file.
9074
9075         Tests for module 'j0'.
9076         * modules/j0-tests: New file.
9077         * tests/test-j0.c: New file.
9078
9079         Tests for module 'hypot'.
9080         * modules/hypot-tests: New file.
9081         * tests/test-hypot.c: New file.
9082
9083         Tests for module 'fmod'.
9084         * modules/fmod-tests: New file.
9085         * tests/test-fmod.c: New file.
9086
9087         Tests for module 'fabs'.
9088         * modules/fabs-tests: New file.
9089         * tests/test-fabs.c: New file.
9090
9091         Tests for module 'exp'.
9092         * modules/exp-tests: New file.
9093         * tests/test-exp.c: New file.
9094
9095         Tests for module 'erfc'.
9096         * modules/erfc-tests: New file.
9097         * tests/test-erfc.c: New file.
9098
9099         Tests for module 'erf'.
9100         * modules/erf-tests: New file.
9101         * tests/test-erf.c: New file.
9102
9103         Tests for module 'cosh'.
9104         * modules/cosh-tests: New file.
9105         * tests/test-cosh.c: New file.
9106
9107         Tests for module 'cos'.
9108         * modules/cos-tests: New file.
9109         * tests/test-cos.c: New file.
9110
9111         Tests for module 'copysign'.
9112         * modules/copysign-tests: New file.
9113         * tests/test-copysign.c: New file.
9114
9115         Tests for module 'cbrt'.
9116         * modules/cbrt-tests: New file.
9117         * tests/test-cbrt.c: New file.
9118
9119         Tests for module 'atan2'.
9120         * modules/atan2-tests: New file.
9121         * tests/test-atan2.c: New file.
9122
9123         Tests for module 'atan'.
9124         * modules/atan-tests: New file.
9125         * tests/test-atan.c: New file.
9126
9127         Tests for module 'asin'.
9128         * modules/asin-tests: New file.
9129         * tests/test-asin.c: New file.
9130
9131         Tests for module 'acos'.
9132         * modules/acos-tests: New file.
9133         * tests/test-acos.c: New file.
9134
9135 2010-01-24  Bruno Haible  <bruno@clisp.org>
9136
9137         Fix tests for common <math.h> functions.
9138         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9139         code snippet that references the function pointer, rather than merely
9140         calling the function. Substitute the FUNC_LIBM variable.
9141         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9142         * modules/acos (configure.ac): Likewise.
9143         * modules/asin (configure.ac): Likewise.
9144         * modules/atan (configure.ac): Likewise.
9145         * modules/atan2 (configure.ac): Likewise.
9146         * modules/cbrt (configure.ac): Likewise.
9147         * modules/copysign (configure.ac): Likewise.
9148         * modules/cos (configure.ac): Likewise.
9149         * modules/cosh (configure.ac): Likewise.
9150         * modules/erf (configure.ac): Likewise.
9151         * modules/erfc (configure.ac): Likewise.
9152         * modules/exp (configure.ac): Likewise.
9153         * modules/fabs (configure.ac): Likewise.
9154         * modules/fmod (configure.ac): Likewise.
9155         * modules/hypot (configure.ac): Likewise.
9156         * modules/j0 (configure.ac): Likewise.
9157         * modules/j1 (configure.ac): Likewise.
9158         * modules/jn (configure.ac): Likewise.
9159         * modules/ldexp (configure.ac): Likewise.
9160         * modules/lgamma (configure.ac): Likewise.
9161         * modules/log (configure.ac): Likewise.
9162         * modules/log10 (configure.ac): Likewise.
9163         * modules/log1p (configure.ac): Likewise.
9164         * modules/logb (configure.ac): Likewise.
9165         * modules/modf (configure.ac): Likewise.
9166         * modules/nextafter (configure.ac): Likewise.
9167         * modules/pow (configure.ac): Likewise.
9168         * modules/remainder (configure.ac): Likewise.
9169         * modules/rint (configure.ac): Likewise.
9170         * modules/sin (configure.ac): Likewise.
9171         * modules/sinh (configure.ac): Likewise.
9172         * modules/tan (configure.ac): Likewise.
9173         * modules/tanh (configure.ac): Likewise.
9174         * modules/y0 (configure.ac): Likewise.
9175         * modules/y1 (configure.ac): Likewise.
9176         * modules/yn (configure.ac): Likewise.
9177
9178 2010-01-24  Bruno Haible  <bruno@clisp.org>
9179
9180         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9181         * tests/test-acosl.c (x): New variable.
9182         (main): Store argument in x and fetch it from x.
9183         * tests/test-asinl.c (x): New variable.
9184         (main): Store argument in x and fetch it from x.
9185         * tests/test-atanl.c (x): New variable.
9186         (main): Store argument in x and fetch it from x.
9187         * tests/test-cosl.c (x): New variable.
9188         (main): Store argument in x and fetch it from x.
9189         * tests/test-expl.c (x): New variable.
9190         (main): Store argument in x and fetch it from x.
9191         * tests/test-logl.c (x): New variable.
9192         (main): Store argument in x and fetch it from x.
9193         * tests/test-sinl.c (x): New variable.
9194         (main): Store argument in x and fetch it from x.
9195         * tests/test-sqrtl.c (x): New variable.
9196         (main): Store argument in x and fetch it from x.
9197         * tests/test-tanl.c (x): New variable.
9198         (main): Store argument in x and fetch it from x.
9199
9200 2010-01-24  Bruno Haible  <bruno@clisp.org>
9201
9202         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9203         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9204         assignments to the initial TESTS_ENVIRONMENT.
9205         * doc/gnulib.texi (Unit test modules): Document it.
9206         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9207         TESTS_ENVIRONMENT.
9208         * modules/btowc-tests (Makefile.am): Likewise.
9209         * modules/c-stack-tests (Makefile.am): Likewise.
9210         * modules/c-strcase-tests (Makefile.am): Likewise.
9211         * modules/copy-file-tests (Makefile.am): Likewise.
9212         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9213         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9214         * modules/mbrtowc-tests (Makefile.am): Likewise.
9215         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9216         * modules/mbscasestr-tests (Makefile.am): Likewise.
9217         * modules/mbschr-tests (Makefile.am): Likewise.
9218         * modules/mbscspn-tests (Makefile.am): Likewise.
9219         * modules/mbsinit-tests (Makefile.am): Likewise.
9220         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9221         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9222         * modules/mbspbrk-tests (Makefile.am): Likewise.
9223         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9224         * modules/mbsrchr-tests (Makefile.am): Likewise.
9225         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9226         * modules/mbsspn-tests (Makefile.am): Likewise.
9227         * modules/mbsstr-tests (Makefile.am): Likewise.
9228         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9229         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9230         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9231         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9232         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9233         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9234         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9235         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9236         * modules/wcrtomb-tests (Makefile.am): Likewise.
9237         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9238         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9239         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9240         assignments from TESTS_ENVIRONMENT.
9241         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9242         augmentation.
9243         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9244         * modules/atexit-tests (Makefile.am): Likewise.
9245         * modules/binary-io-tests (Makefile.am): Likewise.
9246         * modules/closein-tests (Makefile.am): Likewise.
9247         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9248         * modules/exclude-tests (Makefile.am): Likewise.
9249         * modules/fflush-tests (Makefile.am): Likewise.
9250         * modules/fpending-tests (Makefile.am): Likewise.
9251         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9252         * modules/freadahead-tests (Makefile.am): Likewise.
9253         * modules/freadptr-tests (Makefile.am): Likewise.
9254         * modules/freadseek-tests (Makefile.am): Likewise.
9255         * modules/fseek-tests (Makefile.am): Likewise.
9256         * modules/fseeko-tests (Makefile.am): Likewise.
9257         * modules/ftell-tests (Makefile.am): Likewise.
9258         * modules/ftello-tests (Makefile.am): Likewise.
9259         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9260         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9261         * modules/lseek-tests (Makefile.am): Likewise.
9262         * modules/parse-duration-tests (Makefile.am): Likewise.
9263         * modules/perror-tests (Makefile.am): Likewise.
9264         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9265         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9266         * modules/pipe-tests (Makefile.am): Likewise.
9267         * modules/pread-tests (Makefile.am): Likewise.
9268         * modules/printf-posix-tests (Makefile.am): Likewise.
9269         * modules/select-tests (Makefile.am): Likewise.
9270         * modules/sigpipe-tests (Makefile.am): Likewise.
9271         * modules/tsearch-tests (Makefile.am): Likewise.
9272         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9273         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9274         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9275         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9276         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9277         * modules/version-etc-tests (Makefile.am): Likewise.
9278         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9279         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9280         * modules/xalloc-die-tests (Makefile.am): Likewise.
9281         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9282         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9283         * modules/xstrtol-tests (Makefile.am): Likewise.
9284         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9285         * modules/yesno-tests (Makefile.am): Likewise.
9286         Suggested by Jim Meyering.
9287
9288 2010-01-24  Bruno Haible  <bruno@clisp.org>
9289
9290         More documentation.
9291         * doc/gnulib.texi (Writing modules): New chapter.
9292         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9293         the new chapter.
9294
9295 2010-01-24  Jim Meyering  <meyering@redhat.com>
9296
9297         maint.mk: do not prepend "./" after filtering
9298         * top/maint.mk (_prepend_srcdir_prefix): New variable
9299         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9300         "./" when $(srcdir) is ".".
9301
9302         define STREQ(a,b) consistently, removing useless parentheses
9303         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9304         since the only risk is that "a" or "b" contains an unparenthesized
9305         comma, but if either did that, STREQ would have 3 or more arguments.
9306         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9307         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9308         * lib/hash-triple.c (STREQ): Likewise.
9309         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9310         * lib/getugroups.c (STREQ): Likewise.
9311
9312 2010-01-23  Jim Meyering  <meyering@redhat.com>
9313
9314         maint.mk: fix syntax-check in a non-srcdir build directory
9315         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9316         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9317
9318 2010-01-22  Jim Meyering  <meyering@redhat.com>
9319
9320         userspec: add unit tests
9321         * tests/test-userspec.c: New file.
9322         * modules/userspec-tests: Likewise.
9323
9324 2010-01-21  Jim Meyering  <meyering@redhat.com>
9325
9326         maint.mk: handle source file names containing "." robustly
9327         * top/maint.mk (_dot_escaped_srcdir): Define.
9328         (VC_LIST): Use it in LHS of sed substitution.
9329
9330 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9331
9332         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9333         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9334         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9335         from a non-srcdir build.
9336
9337 2010-01-20  Eric Blake  <ebb9@byu.net>
9338
9339         warn-on-use: use instead of link-warning
9340         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9341         * modules/unistd (Depends-on, Makefile.am): Likewise.
9342         * modules/arpa_inet (Depends-on): Replace link-warning with
9343         warn-on-use.
9344         (Makefile.am): Update rules accordingly.
9345         * modules/ctype (Depends-on, Makefile.am): Likewise.
9346         * modules/dirent (Depends-on, Makefile.am): Likewise.
9347         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9348         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9349         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9350         * modules/locale (Depends-on, Makefile.am): Likewise.
9351         * modules/math (Depends-on, Makefile.am): Likewise.
9352         * modules/search (Depends-on, Makefile.am): Likewise.
9353         * modules/signal (Depends-on, Makefile.am): Likewise.
9354         * modules/spawn (Depends-on, Makefile.am): Likewise.
9355         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9356         * modules/string (Depends-on, Makefile.am): Likewise.
9357         * modules/strings (Depends-on, Makefile.am): Likewise.
9358         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9359         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9360         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9361         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9362         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9363         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9364         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9365         * modules/wchar (Depends-on, Makefile.am): Likewise.
9366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9367         should be poisoned.
9368         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9369         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9370         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9371         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9372         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9373         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9374         * m4/math_h.m4 (gl_MATH_H): Likewise.
9375         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9376         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9377         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9378         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9379         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9380         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9381         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9382         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9383         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9388         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9389         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9390         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9391         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9392         GL_LINK_WARNING.
9393         * lib/ctype.in.h: Likewise.
9394         * lib/dirent.in.h: Likewise.
9395         * lib/fcntl.in.h: Likewise.
9396         * lib/inttypes.in.h: Likewise.
9397         * lib/langinfo.in.h: Likewise.
9398         * lib/locale.in.h: Likewise.
9399         * lib/math.in.h: Likewise.
9400         * lib/search.in.h: Likewise.
9401         * lib/signal.in.h: Likewise.
9402         * lib/spawn.in.h: Likewise.
9403         * lib/stdio.in.h: Likewise.
9404         * lib/stdlib.in.h: Likewise.
9405         * lib/string.in.h: Likewise.
9406         * lib/strings.in.h: Likewise.
9407         * lib/sys_file.in.h: Likewise.
9408         * lib/sys_ioctl.in.h: Likewise.
9409         * lib/sys_select.in.h: Likewise.
9410         * lib/sys_socket.in.h: Likewise.
9411         * lib/sys_stat.in.h: Likewise.
9412         * lib/sys_times.in.h: Likewise.
9413         * lib/sys_utsname.in.h: Likewise.
9414         * lib/unistd.in.h: Likewise.
9415         * lib/wchar.in.h: Likewise.
9416
9417 2010-01-20  Bruno Haible  <bruno@clisp.org>
9418
9419         Avoid duplicate -lm.
9420         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9421         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9423         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9424         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9425         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9426         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9427         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9428         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9429         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9430         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9431         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9432         Reported by Paolo Bonzini.
9433
9434 2010-01-19  Bruno Haible  <bruno@clisp.org>
9435
9436         langinfo, nl_langinfo: Relicense under LGPLv2+.
9437         * modules/langinfo (License): Change to LGPLv2+.
9438         * modules/nl_langinfo (License): Likewise.
9439         Patch by David Lutterkort <lutter@redhat.com>.
9440
9441 2010-01-19  Bruno Haible  <bruno@clisp.org>
9442
9443         Avoid compilation error with cc on OSF/1 5.1.
9444         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9445         statement, not before.
9446         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9447
9448 2010-01-18  Bruno Haible  <bruno@clisp.org>
9449
9450         Avoid a link error due to the __printf__ symbol.
9451         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9452         and 2.6.x.
9453         (__format__, __printf__): Remove definitions.
9454         * lib/argp-fmtstream.h: Likewise.
9455         * lib/argp.h: Likewise.
9456         * lib/error.h: Likewise.
9457         * lib/vasnprintf.h: Likewise.
9458         * lib/xprintf.h: Likewise.
9459         * lib/xvasprintf.h: Likewise.
9460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9461
9462 2010-01-18  Bruno Haible  <bruno@clisp.org>
9463
9464         Tests for module 'tanl'.
9465         * modules/tanl-tests: New file.
9466         * tests/test-tanl.c: New file.
9467
9468         Tests for module 'sqrtl'.
9469         * modules/sqrtl-tests: New file.
9470         * tests/test-sqrtl.c: New file.
9471
9472         Tests for module 'sinl'.
9473         * modules/sinl-tests: New file.
9474         * tests/test-sinl.c: New file.
9475
9476         Tests for module 'logl'.
9477         * modules/logl-tests: New file.
9478         * tests/test-logl.c: New file.
9479
9480         Tests for module 'expl'.
9481         * modules/expl-tests: New file.
9482         * tests/test-expl.c: New file.
9483
9484         Tests for module 'cosl'.
9485         * modules/cosl-tests: New file.
9486         * tests/test-cosl.c: New file.
9487
9488         Tests for module 'atanl'.
9489         * modules/atanl-tests: New file.
9490         * tests/test-atanl.c: New file.
9491
9492         Tests for module 'asinl'.
9493         * modules/asinl-tests: New file.
9494         * tests/test-asinl.c: New file.
9495
9496         Tests for module 'acosl'.
9497         * modules/acosl-tests: New file.
9498         * tests/test-acosl.c: New file.
9499
9500         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9501         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9502         tanl): Use the standard gnulib idiom.
9503         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9504         * lib/sinl.c: Likewise.
9505         * lib/tanl.c: Don't include trigl.c.
9506         (kernel_tanl): Make static.
9507         * lib/sincosl.c: Include trigl.h first.
9508         * lib/trigl.c: Likewise.
9509         * m4/acosl.m4: New file.
9510         * m4/asinl.m4: New file.
9511         * m4/atanl.m4: New file.
9512         * m4/cosl.m4: New file.
9513         * m4/expl.m4: New file.
9514         * m4/logl.m4: New file.
9515         * m4/sinl.m4: New file.
9516         * m4/sqrtl.m4: New file.
9517         * m4/tanl.m4: New file.
9518         * m4/mathl.m4: Remove file.
9519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9520         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9521         Don't initialize GNULIB_MATHL.
9522         * modules/acosl: New file.
9523         * modules/asinl: New file.
9524         * modules/atanl: New file.
9525         * modules/cosl: New file.
9526         * modules/expl: New file.
9527         * modules/logl: New file.
9528         * modules/sinl: New file.
9529         * modules/sqrtl: New file.
9530         * modules/tanl: New file.
9531         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9532         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9533         substitute GNULIB_MATHL.
9534         * modules/mathl: Rewritten.
9535         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9536         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9537         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9538         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9539         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9540         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9541         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9542         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9543         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9544
9545 2010-01-18  Bruno Haible  <bruno@clisp.org>
9546
9547         sqrt: Make gl_FUNC_SQRT requirable.
9548         * m4/sqrt.m4: New file.
9549         * modules/sqrt (Files): Add it.
9550         (configure.ac): Invoke gl_FUNC_SQRT.
9551
9552 2010-01-18  Bruno Haible  <bruno@clisp.org>
9553
9554         New modules for common <math.h> functions.
9555         * m4/mathfunc.m4: New file.
9556         * modules/acos: New file.
9557         * modules/asin: New file.
9558         * modules/atan: New file.
9559         * modules/atan2: New file.
9560         * modules/cbrt: New file.
9561         * modules/copysign: New file.
9562         * modules/cos: New file.
9563         * modules/cosh: New file.
9564         * modules/erf: New file.
9565         * modules/erfc: New file.
9566         * modules/exp: New file.
9567         * modules/fabs: New file.
9568         * modules/fmod: New file.
9569         * modules/hypot: New file.
9570         * modules/j0: New file.
9571         * modules/j1: New file.
9572         * modules/jn: New file.
9573         * modules/ldexp: New file.
9574         * modules/lgamma: New file.
9575         * modules/log: New file.
9576         * modules/log10: New file.
9577         * modules/log1p: New file.
9578         * modules/logb: New file.
9579         * modules/modf: New file.
9580         * modules/nextafter: New file.
9581         * modules/pow: New file.
9582         * modules/remainder: New file.
9583         * modules/rint: New file.
9584         * modules/sin: New file.
9585         * modules/sinh: New file.
9586         * modules/sqrt: New file.
9587         * modules/tan: New file.
9588         * modules/tanh: New file.
9589         * modules/y0: New file.
9590         * modules/y1: New file.
9591         * modules/yn: New file.
9592         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9593         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9594         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9595         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9596         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9597         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9598         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9599         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9600         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9601         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9602         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9603         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9604         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9605         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9606         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9607         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9608         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9609         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9610         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9611         * doc/posix-functions/log.texi: Mention the 'log' module.
9612         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9613         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9614         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9615         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9616         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9617         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9618         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9619         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9620         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9621         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9622         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9623         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9624         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9625         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9626         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9627         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9628
9629 2010-01-18  Jim Meyering  <meyering@redhat.com>
9630
9631         ignore-value: relax license to LGPLv2+
9632         * modules/ignore-value (License): Relax to LGPLv2+.
9633
9634         getdate: don't leak when TZ contains two or more '"'s
9635         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9636         double quote in TZ after the first one.
9637
9638         readtokens: do not leak internal token_lengths buffer
9639         * lib/readtokens.c (readtokens): Free the local, lengths,
9640         when the supplied "token_lengths" parameter is NULL.
9641
9642 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9643
9644         Fix a couple of missing LIBTHREAD link failures on AIX.
9645         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9646         $(LIBTHREAD).
9647         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9648
9649         Link test-poll against INET_PTON_LIB.
9650         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9651         for inet_pton on Solaris 10.
9652
9653 2010-01-17  Bruno Haible  <bruno@clisp.org>
9654
9655         unistdio/*-sprintf: Fix typo in module description.
9656         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9657         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9658         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9659         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9660         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9661         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9662         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9664
9665 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9666
9667         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9668         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9669         variables in shell case patterns, for AIX and HP-UX ksh.
9670
9671         Split large sed scripts, for HP-UX sed.
9672         * modules/stdio: Split sed scripts around 50 sed commands,
9673         to avoid HP-UX limit of 99 commands, in the near future.
9674         * modules/string: Likewise.
9675         * modules/unistd: Likewise.
9676
9677         gnulib-tool: avoid writing in the current directory.
9678         * gnulib-tool (func_emit_lib_Makefile_am)
9679         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9680         not in the current directory, so concurrent gnulib-tool
9681         instances do not interfere.
9682
9683 2010-01-16  Jim Meyering  <meyering@redhat.com>
9684
9685         doc: update users.txt
9686         * users.txt: Add grep.
9687         (diffutils, gzip): Update URLs.
9688
9689 2010-01-12  Bruno Haible  <bruno@clisp.org>
9690
9691         posix_spawn: Avoid test failure on Cygwin.
9692         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9693         characters.
9694         Reported by Simon Josefsson.
9695
9696 2010-01-12  Bruno Haible  <bruno@clisp.org>
9697
9698         * tests/test-cond.c (main): When skipping the test, show the reason.
9699
9700 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9701
9702         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9703
9704 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9705
9706         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9707         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9708
9709 2010-01-12  Eric Blake  <ebb9@byu.net>
9710
9711         build: guarantee AS_VAR_IF
9712         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9713         (gl_AS_VAR_IF): Move...
9714         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9715         Reported by Simon Josefsson.
9716
9717 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9718
9719         * lib/stdio.in.h: Fix typo.
9720
9721 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9722
9723         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9724         libgpg-error.
9725
9726 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9727
9728         * tests/test-xalloc-die.sh: Use $EXEEXT.
9729
9730 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9731             Bruno Haible  <bruno@clisp.org>
9732
9733         getlogin, getlogin_r: Avoid test failure.
9734         * tests/test-getlogin.c: Include <stdio.h>.
9735         (main): Skip the test when the function fails because stdin is not a
9736         tty.
9737         * tests/test-getlogin_r.c: Include <stdio.h>.
9738         (main): Skip the test when the function fails because stdin is not a
9739         tty.
9740
9741 2010-01-11  Eric Blake  <ebb9@byu.net>
9742
9743         tests: avoid more large file warnings
9744         * tests/test-fflush.c: Avoid warning about ftell use.
9745         * tests/test-fseek.c: Avoid warning about fseek use.
9746
9747 2010-01-10  Bruno Haible  <bruno@clisp.org>
9748
9749         nproc: Work better on Linux when /proc and /sys are not mounted.
9750         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9751         as lower bound when, on glibc/Linux systems,
9752         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9753         Suggested by Pádraig Brady <P@draigbrady.com>.
9754         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9755
9756         nproc: Refactor.
9757         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9758         extracted from num_processors.
9759         (num_processors): Call it.
9760
9761 2010-01-11  Jim Meyering  <meyering@redhat.com>
9762
9763         utimecmp: avoid new warning from upcoming gcc-4.5.0
9764         * lib/utimecmp.c (BILLION): Define using #define rather than an
9765         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9766
9767 2010-01-11  Eric Blake  <ebb9@byu.net>
9768
9769         math: add portability warnings for classification macros
9770         * modules/math (Depends-on): Add warn-on-use.
9771         (Makefile.am): Provide new substitutions.
9772         * m4/math_h.m4 (gl_MATH_H): Require inline.
9773         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9774         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9775         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9776         implement warnings.
9777
9778         unistd: warn on use of environ without module
9779         * modules/unistd (Depends-on): Add warn-on-use.
9780         (Makefile.am): Provide new substitutions.
9781         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9782         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9783
9784         stdio: warn on suspicious uses
9785         * modules/stdio (Depends-on): Add warn-on-use.
9786         (Makefile.am): Provide new substitutions.
9787         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9788         fseeko.
9789         * lib/stdio.in.h (gets): Always warn on use.
9790         (fseek, ftell): Adjust when warnings are issued, and honor
9791         _GL_NO_LARGE_FILES as a way to silence the warning.
9792         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9793         any warning about large file offsets.
9794         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9795         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9796         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9797         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9798         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9799         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9800         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9801         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9802
9803         warn-on-use: new module
9804         * modules/warn-on-use: New file.
9805         * build-aux/warn-on-use.h: Likewise.
9806         * m4/warn-on-use.m4: Likewise.
9807         * MODULES.html.sh (Support for building): Mention it.
9808
9809 2010-01-10  Bruno Haible  <bruno@clisp.org>
9810
9811         Tests for module 'unistr/u32-strdup'.
9812         * modules/unistr/u32-strdup-tests: New file.
9813         * tests/unistr/test-u32-strdup.c: New file.
9814
9815         Tests for module 'unistr/u16-strdup'.
9816         * modules/unistr/u16-strdup-tests: New file.
9817         * tests/unistr/test-u16-strdup.c: New file.
9818
9819         Tests for module 'unistr/u8-strdup'.
9820         * modules/unistr/u8-strdup-tests: New file.
9821         * tests/unistr/test-u8-strdup.c: New file.
9822         * tests/unistr/test-strdup.h: New file.
9823
9824         Tests for module 'unistr/u32-strncmp'.
9825         * modules/unistr/u32-strncmp-tests: New file.
9826         * tests/unistr/test-u32-strncmp.c: New file.
9827
9828         Tests for module 'unistr/u16-strncmp'.
9829         * modules/unistr/u16-strncmp-tests: New file.
9830         * tests/unistr/test-u16-strncmp.c: New file.
9831
9832         Tests for module 'unistr/u8-strncmp'.
9833         * modules/unistr/u8-strncmp-tests: New file.
9834         * tests/unistr/test-u8-strncmp.c: New file.
9835         * tests/unistr/test-strncmp.h: New file.
9836
9837         Tests for module 'unistr/u32-strcoll'.
9838         * modules/unistr/u32-strcoll-tests: New file.
9839         * tests/unistr/test-u32-strcoll.c: New file.
9840
9841         Tests for module 'unistr/u16-strcoll'.
9842         * modules/unistr/u16-strcoll-tests: New file.
9843         * tests/unistr/test-u16-strcoll.c: New file.
9844
9845         Tests for module 'unistr/u8-strcoll'.
9846         * modules/unistr/u8-strcoll-tests: New file.
9847         * tests/unistr/test-u8-strcoll.c: New file.
9848
9849         Tests for module 'unistr/u32-strcmp'.
9850         * modules/unistr/u32-strcmp-tests: New file.
9851         * tests/unistr/test-u32-strcmp.c: New file.
9852         * tests/unistr/test-u32-strcmp.h: New file.
9853
9854         Tests for module 'unistr/u16-strcmp'.
9855         * modules/unistr/u16-strcmp-tests: New file.
9856         * tests/unistr/test-u16-strcmp.c: New file.
9857         * tests/unistr/test-u16-strcmp.h: New file.
9858
9859         Tests for module 'unistr/u8-strcmp'.
9860         * modules/unistr/u8-strcmp-tests: New file.
9861         * tests/unistr/test-u8-strcmp.c: New file.
9862         * tests/unistr/test-u8-strcmp.h: New file.
9863         * tests/unistr/test-strcmp.h: New file.
9864
9865         Tests for module 'unistr/u32-strncat'.
9866         * modules/unistr/u32-strncat-tests: New file.
9867         * tests/unistr/test-u32-strncat.c: New file.
9868
9869         Tests for module 'unistr/u16-strncat'.
9870         * modules/unistr/u16-strncat-tests: New file.
9871         * tests/unistr/test-u16-strncat.c: New file.
9872
9873         Tests for module 'unistr/u8-strncat'.
9874         * modules/unistr/u8-strncat-tests: New file.
9875         * tests/unistr/test-u8-strncat.c: New file.
9876         * tests/unistr/test-strncat.h: New file.
9877
9878         Tests for module 'unistr/u32-strcat'.
9879         * modules/unistr/u32-strcat-tests: New file.
9880         * tests/unistr/test-u32-strcat.c: New file.
9881
9882         Tests for module 'unistr/u16-strcat'.
9883         * modules/unistr/u16-strcat-tests: New file.
9884         * tests/unistr/test-u16-strcat.c: New file.
9885
9886         Tests for module 'unistr/u8-strcat'.
9887         * modules/unistr/u8-strcat-tests: New file.
9888         * tests/unistr/test-u8-strcat.c: New file.
9889         * tests/unistr/test-strcat.h: New file.
9890
9891         Tests for module 'unistr/u32-stpncpy'.
9892         * modules/unistr/u32-stpncpy-tests: New file.
9893         * tests/unistr/test-u32-stpncpy.c: New file.
9894
9895         Tests for module 'unistr/u16-stpncpy'.
9896         * modules/unistr/u16-stpncpy-tests: New file.
9897         * tests/unistr/test-u16-stpncpy.c: New file.
9898
9899         Tests for module 'unistr/u8-stpncpy'.
9900         * modules/unistr/u8-stpncpy-tests: New file.
9901         * tests/unistr/test-u8-stpncpy.c: New file.
9902         * tests/unistr/test-stpncpy.h: New file.
9903
9904         Tests for module 'unistr/u32-strncpy'.
9905         * modules/unistr/u32-strncpy-tests: New file.
9906         * tests/unistr/test-u32-strncpy.c: New file.
9907
9908         Tests for module 'unistr/u16-strncpy'.
9909         * modules/unistr/u16-strncpy-tests: New file.
9910         * tests/unistr/test-u16-strncpy.c: New file.
9911
9912         Tests for module 'unistr/u8-strncpy'.
9913         * modules/unistr/u8-strncpy-tests: New file.
9914         * tests/unistr/test-u8-strncpy.c: New file.
9915         * tests/unistr/test-strncpy.h: New file.
9916
9917         Tests for module 'unistr/u32-stpcpy'.
9918         * modules/unistr/u32-stpcpy-tests: New file.
9919         * tests/unistr/test-u32-stpcpy.c: New file.
9920
9921         Tests for module 'unistr/u16-stpcpy'.
9922         * modules/unistr/u16-stpcpy-tests: New file.
9923         * tests/unistr/test-u16-stpcpy.c: New file.
9924
9925         Tests for module 'unistr/u8-stpcpy'.
9926         * modules/unistr/u8-stpcpy-tests: New file.
9927         * tests/unistr/test-u8-stpcpy.c: New file.
9928         * tests/unistr/test-stpcpy.h: New file.
9929
9930         Tests for module 'unistr/u32-strcpy'.
9931         * modules/unistr/u32-strcpy-tests: New file.
9932         * tests/unistr/test-u32-strcpy.c: New file.
9933
9934         Tests for module 'unistr/u16-strcpy'.
9935         * modules/unistr/u16-strcpy-tests: New file.
9936         * tests/unistr/test-u16-strcpy.c: New file.
9937
9938         Tests for module 'unistr/u8-strcpy'.
9939         * modules/unistr/u8-strcpy-tests: New file.
9940         * tests/unistr/test-u8-strcpy.c: New file.
9941         * tests/unistr/test-strcpy.h: New file.
9942
9943         Tests for module 'unistr/u32-strnlen'.
9944         * modules/unistr/u32-strnlen-tests: New file.
9945         * tests/unistr/test-u32-strnlen.c: New file.
9946
9947         Tests for module 'unistr/u16-strnlen'.
9948         * modules/unistr/u16-strnlen-tests: New file.
9949         * tests/unistr/test-u16-strnlen.c: New file.
9950
9951         Tests for module 'unistr/u8-strnlen'.
9952         * modules/unistr/u8-strnlen-tests: New file.
9953         * tests/unistr/test-u8-strnlen.c: New file.
9954         * tests/unistr/test-strnlen.h: New file.
9955
9956         Tests for module 'unistr/u32-strlen'.
9957         * modules/unistr/u32-strlen-tests: New file.
9958         * tests/unistr/test-u32-strlen.c: New file.
9959
9960         Tests for module 'unistr/u16-strlen'.
9961         * modules/unistr/u16-strlen-tests: New file.
9962         * tests/unistr/test-u16-strlen.c: New file.
9963
9964         Tests for module 'unistr/u8-strlen'.
9965         * modules/unistr/u8-strlen-tests: New file.
9966         * tests/unistr/test-u8-strlen.c: New file.
9967
9968         Tests for module 'unistr/u32-prev'.
9969         * modules/unistr/u32-prev-tests: New file.
9970         * tests/unistr/test-u32-prev.c: New file.
9971
9972         Tests for module 'unistr/u16-prev'.
9973         * modules/unistr/u16-prev-tests: New file.
9974         * tests/unistr/test-u16-prev.c: New file.
9975
9976         Tests for module 'unistr/u8-prev'.
9977         * modules/unistr/u8-prev-tests: New file.
9978         * tests/unistr/test-u8-prev.c: New file.
9979
9980         Tests for module 'unistr/u32-next'.
9981         * modules/unistr/u32-next-tests: New file.
9982         * tests/unistr/test-u32-next.c: New file.
9983
9984         Tests for module 'unistr/u16-next'.
9985         * modules/unistr/u16-next-tests: New file.
9986         * tests/unistr/test-u16-next.c: New file.
9987
9988         Tests for module 'unistr/u8-next'.
9989         * modules/unistr/u8-next-tests: New file.
9990         * tests/unistr/test-u8-next.c: New file.
9991
9992         Tests for module 'unistr/u32-strmbtouc'.
9993         * modules/unistr/u32-strmbtouc-tests: New file.
9994         * tests/unistr/test-u32-strmbtouc.c: New file.
9995
9996         Tests for module 'unistr/u16-strmbtouc'.
9997         * modules/unistr/u16-strmbtouc-tests: New file.
9998         * tests/unistr/test-u16-strmbtouc.c: New file.
9999
10000         Tests for module 'unistr/u8-strmbtouc'.
10001         * modules/unistr/u8-strmbtouc-tests: New file.
10002         * tests/unistr/test-u8-strmbtouc.c: New file.
10003
10004         Tests for module 'unistr/u32-strmblen'.
10005         * modules/unistr/u32-strmblen-tests: New file.
10006         * tests/unistr/test-u32-strmblen.c: New file.
10007
10008         Tests for module 'unistr/u16-strmblen'.
10009         * modules/unistr/u16-strmblen-tests: New file.
10010         * tests/unistr/test-u16-strmblen.c: New file.
10011
10012         Tests for module 'unistr/u8-strmblen'.
10013         * modules/unistr/u8-strmblen-tests: New file.
10014         * tests/unistr/test-u8-strmblen.c: New file.
10015
10016         Tests for module 'unistr/u32-cpy-alloc'.
10017         * modules/unistr/u32-cpy-alloc-tests: New file.
10018         * tests/unistr/test-u32-cpy-alloc.c: New file.
10019
10020         Tests for module 'unistr/u16-cpy-alloc'.
10021         * modules/unistr/u16-cpy-alloc-tests: New file.
10022         * tests/unistr/test-u16-cpy-alloc.c: New file.
10023
10024         Tests for module 'unistr/u8-cpy-alloc'.
10025         * modules/unistr/u8-cpy-alloc-tests: New file.
10026         * tests/unistr/test-u8-cpy-alloc.c: New file.
10027         * tests/unistr/test-cpy-alloc.h: New file.
10028
10029         Tests for module 'unistr/u32-mbsnlen'.
10030         * modules/unistr/u32-mbsnlen-tests: New file.
10031         * tests/unistr/test-u32-mbsnlen.c: New file.
10032
10033         Tests for module 'unistr/u16-mbsnlen'.
10034         * modules/unistr/u16-mbsnlen-tests: New file.
10035         * tests/unistr/test-u16-mbsnlen.c: New file.
10036
10037         Tests for module 'unistr/u8-mbsnlen'.
10038         * modules/unistr/u8-mbsnlen-tests: New file.
10039         * tests/unistr/test-u8-mbsnlen.c: New file.
10040
10041         Tests for module 'unistr/u32-chr'.
10042         * modules/unistr/u32-chr-tests: New file.
10043         * tests/unistr/test-u32-chr.c: New file.
10044
10045         Tests for module 'unistr/u16-chr'.
10046         * modules/unistr/u16-chr-tests: New file.
10047         * tests/unistr/test-u16-chr.c: New file.
10048
10049         Tests for module 'unistr/u8-chr'.
10050         * modules/unistr/u8-chr-tests: New file.
10051         * tests/unistr/test-u8-chr.c: New file.
10052         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10053
10054         Tests for module 'unistr/u32-cmp2'.
10055         * modules/unistr/u32-cmp2-tests: New file.
10056         * tests/unistr/test-u32-cmp2.c: New file.
10057
10058         Tests for module 'unistr/u16-cmp2'.
10059         * modules/unistr/u16-cmp2-tests: New file.
10060         * tests/unistr/test-u16-cmp2.c: New file.
10061
10062         Tests for module 'unistr/u8-cmp2'.
10063         * modules/unistr/u8-cmp2-tests: New file.
10064         * tests/unistr/test-u8-cmp2.c: New file.
10065         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10066
10067         Tests for module 'unistr/u32-cmp'.
10068         * modules/unistr/u32-cmp-tests: New file.
10069         * tests/unistr/test-u32-cmp.c: New file.
10070
10071         Tests for module 'unistr/u16-cmp'.
10072         * modules/unistr/u16-cmp-tests: New file.
10073         * tests/unistr/test-u16-cmp.c: New file.
10074
10075         Tests for module 'unistr/u8-cmp'.
10076         * modules/unistr/u8-cmp-tests: New file.
10077         * tests/unistr/test-u8-cmp.c: New file.
10078         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10079
10080         Tests for module 'unistr/u32-set'.
10081         * modules/unistr/u32-set-tests: New file.
10082         * tests/unistr/test-u32-set.c: New file.
10083
10084         Tests for module 'unistr/u16-set'.
10085         * modules/unistr/u16-set-tests: New file.
10086         * tests/unistr/test-u16-set.c: New file.
10087
10088         Tests for module 'unistr/u8-set'.
10089         * modules/unistr/u8-set-tests: New file.
10090         * tests/unistr/test-u8-set.c: New file.
10091         * tests/unistr/test-set.h: New file.
10092
10093         Tests for module 'unistr/u32-move'.
10094         * modules/unistr/u32-move-tests: New file.
10095         * tests/unistr/test-u32-move.c: New file.
10096
10097         Tests for module 'unistr/u16-move'.
10098         * modules/unistr/u16-move-tests: New file.
10099         * tests/unistr/test-u16-move.c: New file.
10100
10101         Tests for module 'unistr/u8-move'.
10102         * modules/unistr/u8-move-tests: New file.
10103         * tests/unistr/test-u8-move.c: New file.
10104         * tests/unistr/test-move.h: New file.
10105
10106         Tests for module 'unistr/u32-cpy'.
10107         * modules/unistr/u32-cpy-tests: New file.
10108         * tests/unistr/test-u32-cpy.c: New file.
10109
10110         Tests for module 'unistr/u16-cpy'.
10111         * modules/unistr/u16-cpy-tests: New file.
10112         * tests/unistr/test-u16-cpy.c: New file.
10113
10114         Tests for module 'unistr/u8-cpy'.
10115         * modules/unistr/u8-cpy-tests: New file.
10116         * tests/unistr/test-u8-cpy.c: New file.
10117         * tests/unistr/test-cpy.h: New file.
10118
10119 2010-01-09  Bruno Haible  <bruno@clisp.org>
10120
10121         Tests for module 'unistr/u32-uctomb'.
10122         * modules/unistr/u32-uctomb-tests: New file.
10123         * tests/unistr/test-u32-uctomb.c: New file.
10124
10125         Tests for module 'unistr/u16-uctomb'.
10126         * modules/unistr/u16-uctomb-tests: New file.
10127         * tests/unistr/test-u16-uctomb.c: New file.
10128
10129         Tests for module 'unistr/u8-uctomb'.
10130         * modules/unistr/u8-uctomb-tests: New file.
10131         * tests/unistr/test-u8-uctomb.c: New file.
10132
10133         Tests for module 'unistr/u32-mbtoucr'.
10134         * modules/unistr/u32-mbtoucr-tests: New file.
10135         * tests/unistr/test-u32-mbtoucr.c: New file.
10136
10137         Tests for module 'unistr/u16-mbtoucr'.
10138         * modules/unistr/u16-mbtoucr-tests: New file.
10139         * tests/unistr/test-u16-mbtoucr.c: New file.
10140
10141         Tests for module 'unistr/u8-mbtoucr'.
10142         * modules/unistr/u8-mbtoucr-tests: New file.
10143         * tests/unistr/test-u8-mbtoucr.c: New file.
10144
10145         Tests for module 'unistr/u32-mbtouc'.
10146         * modules/unistr/u32-mbtouc-tests: New file.
10147         * tests/unistr/test-u32-mbtouc.c: New file.
10148
10149         Tests for module 'unistr/u16-mbtouc'.
10150         * modules/unistr/u16-mbtouc-tests: New file.
10151         * tests/unistr/test-u16-mbtouc.c: New file.
10152
10153         Tests for module 'unistr/u8-mbtouc'.
10154         * modules/unistr/u8-mbtouc-tests: New file.
10155         * tests/unistr/test-u8-mbtouc.c: New file.
10156
10157         Tests for module 'unistr/u32-mbtouc-unsafe'.
10158         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10159         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10160         * tests/unistr/test-u32-mbtouc.h: New file.
10161
10162         Tests for module 'unistr/u16-mbtouc-unsafe'.
10163         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10164         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10165         * tests/unistr/test-u16-mbtouc.h: New file.
10166
10167         Tests for module 'unistr/u8-mbtouc-unsafe'.
10168         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10169         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10170         * tests/unistr/test-u8-mbtouc.h: New file.
10171
10172         Tests for module 'unistr/u32-mblen'.
10173         * modules/unistr/u32-mblen-tests: New file.
10174         * tests/unistr/test-u32-mblen.c: New file.
10175
10176         Tests for module 'unistr/u16-mblen'.
10177         * modules/unistr/u16-mblen-tests: New file.
10178         * tests/unistr/test-u16-mblen.c: New file.
10179
10180         Tests for module 'unistr/u8-mblen'.
10181         * modules/unistr/u8-mblen-tests: New file.
10182         * tests/unistr/test-u8-mblen.c: New file.
10183
10184         Tests for module 'unistr/u32-to-u16'.
10185         * modules/unistr/u32-to-u16-tests: New file.
10186         * tests/unistr/test-u32-to-u16.c: New file.
10187
10188         Tests for module 'unistr/u32-to-u8'.
10189         * modules/unistr/u32-to-u8-tests: New file.
10190         * tests/unistr/test-u32-to-u8.c: New file.
10191
10192         Tests for module 'unistr/u16-to-u32'.
10193         * modules/unistr/u16-to-u32-tests: New file.
10194         * tests/unistr/test-u16-to-u32.c: New file.
10195
10196         Tests for module 'unistr/u16-to-u8'.
10197         * modules/unistr/u16-to-u8-tests: New file.
10198         * tests/unistr/test-u16-to-u8.c: New file.
10199
10200         Tests for module 'unistr/u8-to-u32'.
10201         * modules/unistr/u8-to-u32-tests: New file.
10202         * tests/unistr/test-u8-to-u32.c: New file.
10203
10204         Tests for module 'unistr/u8-to-u16'.
10205         * modules/unistr/u8-to-u16-tests: New file.
10206         * tests/unistr/test-u8-to-u16.c: New file.
10207
10208         Tests for module 'unistr/u32-check'.
10209         * modules/unistr/u32-check-tests: New file.
10210         * tests/unistr/test-u32-check.c: New file.
10211
10212         Tests for module 'unistr/u16-check'.
10213         * modules/unistr/u16-check-tests: New file.
10214         * tests/unistr/test-u16-check.c: New file.
10215
10216         Tests for module 'unistr/u8-check'.
10217         * modules/unistr/u8-check-tests: New file.
10218         * tests/unistr/test-u8-check.c: New file.
10219
10220         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10221         (category_equals): New function.
10222         (main): Add more tests.
10223         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10224
10225         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10226
10227 2010-01-10  Bruno Haible  <bruno@clisp.org>
10228
10229         unistr/u*-strcoll: Try harder to distinguish different strings.
10230         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10231         compare s1 and s2 to see if they are different.
10232
10233 2010-01-10  Bruno Haible  <bruno@clisp.org>
10234
10235         unistr/u*-stpncpy: Fix the return value.
10236         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10237         description of the return value consistent with stpncpy in glibc.
10238         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10239         written non-NUL unit.
10240
10241 2010-01-10  Bruno Haible  <bruno@clisp.org>
10242
10243         unistr/u*-next: Add missing dependencies.
10244         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10245         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10246         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10247
10248 2010-01-10  Bruno Haible  <bruno@clisp.org>
10249
10250         unistr/u8-mbsnlen: Fix return value for incomplete character.
10251         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10252         u8_mblen.
10253         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10254         Remove unistr/u8-mblen.
10255         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10256         u16_mblen.
10257         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10258         Remove unistr/u16-mblen.
10259
10260 2010-01-10  Bruno Haible  <bruno@clisp.org>
10261
10262         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10263         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10264         Reported by Brian Gough <bjg@gnu.org> and
10265         Chris Clayton <chris2553@googlemail.com> via
10266         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10267
10268 2010-01-09  Bruno Haible  <bruno@clisp.org>
10269
10270         unistr/u16-to-u32: Reject invalid input.
10271         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10272         u16_mbtouc.
10273         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10274         Remove unistr/u16-mbtouc.
10275
10276         unistr/u16-to-u8: Reject invalid input.
10277         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10278         u16_mbtouc.
10279         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10280         Remove unistr/u16-mbtouc.
10281
10282         unistr/u8-to-u32: Reject invalid input.
10283         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10284         u8_mbtouc.
10285         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10286         Remove unistr/u8-mbtouc.
10287
10288         unistr/u8-to-u16: Reject invalid input.
10289         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10290         u8_mbtouc.
10291         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10292         Remove unistr/u8-mbtouc.
10293
10294 2010-01-09  Bruno Haible  <bruno@clisp.org>
10295
10296         Tests for module 'getlogin'.
10297         * modules/getlogin-tests: New file.
10298         * tests/test-getlogin.c: New file.
10299
10300         New module 'getlogin'.
10301         * lib/unistd.in.h (getlogin): New declaration.
10302         * lib/getlogin.c: New file.
10303         * m4/getlogin.m4: New file.
10304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10305         HAVE_GETLOGIN.
10306         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10307         HAVE_GETLOGIN.
10308         * modules/getlogin: New file.
10309         * doc/posix-functions/getlogin.texi: Mention the new module.
10310         Reported by John W. Eaton <jwe@gnu.org>.
10311
10312 2010-01-09  Bruno Haible  <bruno@clisp.org>
10313
10314         getlogin_r: Support for native Windows.
10315         * lib/getlogin_r.c: Include <windows.h>
10316         (getlogin_r): Implement for native Windows.
10317         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10318         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10319         via John W. Eaton <jwe@gnu.org>.
10320
10321 2010-01-09  Bruno Haible  <bruno@clisp.org>
10322
10323         getlogin_r: Small fixes.
10324         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10325         succeeds.
10326         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10327         before testing whether getlogin_r is declared. No need to set
10328         HAVE_DECL_GETLOGIN_R to 1.
10329         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10330
10331 2010-01-09  Bruno Haible  <bruno@clisp.org>
10332
10333         * lib/unistd.in.h (getlogin_r): Add comment.
10334
10335 2010-01-09  Bruno Haible  <bruno@clisp.org>
10336
10337         Tests for module 'getlogin_r'.
10338         * modules/getlogin_r-tests: New file.
10339         * tests/test-getlogin_r.c: New file.
10340
10341 2010-01-09  Jim Meyering  <meyering@redhat.com>
10342
10343         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10344         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10345         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10346
10347 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10348
10349         * lib/dup2.c (rpl_dup2): Improve comment.
10350
10351 2010-01-08  Eric Blake  <ebb9@byu.net>
10352
10353         maint.mk: allow packages to add makefile @@ exceptions
10354         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10355         (sc_makefile_check): Rename...
10356         (sc_makefile_at_at_check): ...to this, and use hook.
10357
10358         dup2: work around mingw bug
10359         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10360         Reported by Simon Josefsson.
10361
10362 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10363
10364         glob: Fix C++ compilation.
10365         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10366         C++.
10367
10368 2010-01-07  Bruno Haible  <bruno@clisp.org>
10369
10370         Fix indentation of wctype.in.h, broken since 2007-01-06.
10371         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10372
10373 2010-01-07  Bruno Haible  <bruno@clisp.org>
10374
10375         mbslen: Avoid collision with system function.
10376         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10377         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10378         * m4/mbslen.m4: New file.
10379         * modules/mbslen (Files): Add it.
10380         (configure.ac): Invoke gl_MBSLEN.
10381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10382         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10383         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10384         via Ian Beckwith <ianb@erislabs.net>.
10385
10386 2010-01-07  Bruno Haible  <bruno@clisp.org>
10387
10388         dirent: Document the last fix.
10389         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10390
10391 2010-01-07  Bruno Haible  <bruno@clisp.org>
10392
10393         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10394         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10395         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10396         va_list are defined.
10397         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10398         Reported by Eric Blake.
10399
10400 2010-01-07  Bruno Haible  <bruno@clisp.org>
10401
10402         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10403         * modules/xlist (Depends-on): Add 'list',
10404         * modules/xoset (Depends-on): Add 'oset'.
10405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10406
10407 2010-01-07  Bruno Haible  <bruno@clisp.org>
10408
10409         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10410         * doc/posix-functions/strncasecmp.texi: Likewise.
10411
10412 2010-01-07  Bruno Haible  <bruno@clisp.org>
10413
10414         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10415
10416 2010-01-07  John W. Eaton  <jwe@octave.org>
10417
10418         wctype: allow C++ use
10419         * lib/wctype.in.h: Add extern "C" block for C++.
10420
10421 2010-01-06  Eric Blake  <ebb9@byu.net>
10422
10423         maint.mk: detect incorrect GFDL usage
10424         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10425
10426 2010-01-06  Jim Meyering  <meyering@redhat.com>
10427         and Eric Blake  <ebb9@byu.net>
10428
10429         maint.mk: ignore multi-line copyright in NEWS
10430         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10431
10432 2010-01-06  Eric Blake  <ebb9@byu.net>
10433
10434         select: add missing dependency
10435         * modules/select-tests (Depends-on): Move sockets dependency...
10436         * modules/select (Depends-on): ...here.
10437         Reported by Ian Beckwith.
10438
10439         doc: regenerate INSTALL
10440         * doc/INSTALL: Reflect recent autoconf update.
10441         * doc/INSTALL.ISO: Likewise.
10442         * doc/INSTALL.UTF-8: Likewise.
10443
10444         pread: fix compilation on glibc
10445         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10446         Reported by Ralf Wildenhues.
10447
10448         dirent: fix test failure
10449         * lib/dirent.in.h (includes): Guarantee ino_t.
10450         Reported by Ralf Wildenhues.
10451
10452 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10453
10454         linkat, renameat: avoid bad free
10455         * lib/at-func2.c (at_func2): Fix typo.
10456         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10457
10458 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10459
10460         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10461         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10462         to avoid failure of symlink test later.
10463
10464 2010-01-06  Eric Blake  <ebb9@byu.net>
10465
10466         stdio, unistd: guarantee ssize_t
10467         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10468         2008 are exposed when needed.
10469         * lib/stdio.in.h (includes): Likewise.
10470         Reported by Ralf Wildenhues.
10471
10472 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10473
10474         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10475         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10476         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10477
10478 2010-01-06  Jim Meyering  <meyering@redhat.com>
10479
10480         readtokens: this module *does* require xalloc.h
10481         It uses only functions that were omitted by the old syntax-check rule.
10482         * lib/readtokens.c: Include "xalloc.h" once again.
10483         * modules/readtokens (Depends-on): Add xalloc.
10484         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10485
10486 2010-01-05  Eric Blake  <ebb9@byu.net>
10487
10488         maint: support 'make announcement' from a VPATH build
10489         * top/maint.mk (announcement): Look for correct NEWS file.
10490
10491 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10492
10493         utimens (fdutimens): ignore a negative FD, per contract
10494         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10495         when we have a valid file descriptor.  Otherwise, using a brand
10496         new glibc (with just-patched futimens that now fails with EBADF)
10497         would cause this function to fail with ENOSYS.
10498         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10499         See also http://bugzilla.redhat.com/552320.
10500
10501 2010-01-05  Eric Blake  <ebb9@byu.net>
10502
10503         strcase: document what it provides
10504         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10505         gnulib module.
10506         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10507         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10508
10509 2010-01-05  Jim Meyering  <meyering@redhat.com>
10510
10511         maint: remove useless inclusions of "xalloc.h"
10512         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10513         * lib/readtokens.c: Likewise.
10514         * lib/same.c: Likewise.
10515         * modules/getloadavg (Depends-on): Remove xalloc.
10516         * modules/readtokens: Likewise.
10517         * modules/same: Likewise.
10518
10519         maint.mk: include 4 more function names in alloca.h-checking regexp
10520         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10521         regexp.  Before, we would give a false-positive (saying alloca.h
10522         is included unnecessarily) when the only uses involved omitted symbols.
10523
10524         xalloc.h: use consistent formatting
10525         * lib/xalloc.h: Move declarations to start in the first column.
10526
10527 2010-01-05  Eric Blake  <ebb9@byu.net>
10528
10529         mkdir: avoid xalloc
10530         * lib/mkdir.c (includes): Drop unused header.
10531         Reported by John W. Eaton.
10532
10533 2010-01-04  Jim Meyering  <meyering@redhat.com>
10534
10535         nl_langinfo: avoid configure-time syntax error
10536         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10537         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10538         the empty string.  Don't let that provoke a shell syntax error.
10539
10540         regcomp, regexec, fnmatch: avoid array bounds read error
10541         * lib/regcomp.c (build_equiv_class): From glibc:
10542         Use only the low 24 bits of a findidx return value as an index
10543         into the weights array.  Patch by Ulrich Drepper:
10544         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10545         * lib/regexec.c (check_node_accept_bytes): Likewise.
10546         * lib/fnmatch_loop.c (FCT): Likewise.
10547
10548         regcomp: skip collseq lookup when there are no rules
10549         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10550         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10551
10552         regcomp: recognize ill-formed { } expressions
10553         * lib/regcomp.c (parse_dup_op): From glibc:
10554         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10555
10556         regcomp: fix typo in comment
10557         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10558         s/satisfy/satisfies/.
10559
10560         regcomp: sync from glibc: remove dead store
10561         * lib/regcomp.c (duplicate_node_closure): Remove useless
10562         search_duplicated_node call and dead store.
10563
10564         regcomp: sync from glibc; always use nl_langinfo
10565         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10566         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10567         * modules/regex (Depends-on): Add nl_langinfo.
10568
10569 2010-01-04  Eric Blake  <ebb9@byu.net>
10570
10571         fdopendir: fix configure test
10572         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10573
10574 2010-01-01  Bruno Haible  <bruno@clisp.org>
10575
10576         wchar: Remove unused configure check.
10577         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10578
10579 2010-01-01  Eric Blake  <ebb9@byu.net>
10580
10581         headers: make check of system header explicit
10582         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10583         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10584         ourselves.
10585         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10587         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10588         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10589         internals.
10590         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10591         missing.
10592         Suggested by Bruno Haible.
10593
10594 2010-01-01  Jim Meyering  <meyering@redhat.com>
10595
10596         ChangeLog: tweak to eliminate unnecessary copyright line
10597         * ChangeLog: Remove a copyright line that was mistakenly updated
10598         by today's update-copyright run.  Reported by Eric Blake.
10599
10600         test-update-copyright: don't let envvar setting cause test failure
10601         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10602
10603 2010-01-01  Bruno Haible  <bruno@clisp.org>
10604
10605         localename: Avoid gcc warning.
10606         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10607         function if it is not used.
10608
10609 2010-01-01  Jim Meyering  <meyering@redhat.com>
10610
10611         update nearly all FSF copyright year lists to include 2010
10612         Use the same procedure as for 2009, outlined in
10613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10614
10615         version-etc: set COPYRIGHT_YEAR to 2010
10616         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10617
10618 2009-12-31  Eric Blake  <ebb9@byu.net>
10619
10620         doc: correct availability of cygwin 1.5.x getopt
10621         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10622         variables.
10623         * doc/posix-functions/opterr.texi (opterr): Likewise.
10624         * doc/posix-functions/optind.texi (optind): Likewise.
10625         * doc/posix-functions/optopt.texi (optopt): Likewise.
10626         * doc/posix-functions/tzname.texi (tzname): Likewise.
10627
10628         openat: update maintainer
10629         * modules/openat (Maintainer): Add myself.
10630
10631         utimens: avoid shadowing warning
10632         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10633         buffers into one, to avoid shadowing, as well as avoiding a
10634         redundant stat.
10635         Reported by Jim Meyering.
10636
10637         test-dup2: avoid compiler warning
10638         * tests/test-dup2.c (is_inheritable): Only define if used.
10639
10640 2010-01-01  Bruno Haible  <bruno@clisp.org>
10641
10642         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10643         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10644         defined, use wctomb instead of wcrtomb.
10645
10646 2010-01-01  Bruno Haible  <bruno@clisp.org>
10647
10648         iconv: Reject native Solaris iconv.
10649         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10650         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10651
10652 2009-12-31  Bruno Haible  <bruno@clisp.org>
10653
10654         * tests/test-signal.c (main): Remove test of 'SIG'.
10655
10656 2009-12-31  Bruno Haible  <bruno@clisp.org>
10657
10658         spawn: Fix incomplete fix.
10659         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10660         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10661         warnings for GNULIB_POSIXCHECK again.
10662         Reported by Eric Blake.
10663
10664 2009-12-31  Bruno Haible  <bruno@clisp.org>
10665
10666         Avoid namespace pollution on glibc systems.
10667         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10668         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10669         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10670         glibc systems.
10671
10672 2009-12-31  Bruno Haible  <bruno@clisp.org>
10673
10674         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10675         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10676         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10677         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10678         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10679         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10680         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10681
10682 2009-12-31  Bruno Haible  <bruno@clisp.org>
10683
10684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10685         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10686         afterwards.
10687
10688 2009-12-31  Bruno Haible  <bruno@clisp.org>
10689
10690         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10691         SYS_UTSNAME_H.
10692
10693 2009-12-31  Bruno Haible  <bruno@clisp.org>
10694
10695         spawn: Fix misapplied patch.
10696         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10697         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10698         warnings for GNULIB_POSIXCHECK.
10699
10700 2009-12-31  Bruno Haible  <bruno@clisp.org>
10701
10702         times: Update after sys_times changed.
10703         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10704         * modules/times (Files): Add it.
10705         (configure.ac): Invoke gl_FUNC_TIMES.
10706
10707 2009-12-31  Bruno Haible  <bruno@clisp.org>
10708
10709         Use AC_C_INLINE where necessary.
10710         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10711         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10713         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10714         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10715         * m4/mbiter.m4 (gl_MBITER): Likewise.
10716         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10717         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10718         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10719         * modules/u64 (configure.ac): Likewise.
10720
10721 2009-12-31  Bruno Haible  <bruno@clisp.org>
10722
10723         Use AC_C_INLINE instead of module 'inline' where possible.
10724         * modules/inline (Description): Clarify purpose.
10725         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10726         * modules/count-one-bits (Depends-on): Remove inline.
10727         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10728         * modules/openat (Depends-on): Remove inline.
10729         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10730         instead of depending on module 'inline'.
10731         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10732         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10733         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10734         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10735         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10736         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10737         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10738         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10739         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10740         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10741         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10742         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10743         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10744         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10745         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10746         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10747         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10748         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10749         Likewise.
10750         * modules/unictype/property-ascii-hex-digit (Depends-on,
10751         configure.ac): Likewise.
10752         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10753         configure.ac): Likewise.
10754         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10755         configure.ac): Likewise.
10756         * modules/unictype/property-bidi-block-separator (Depends-on,
10757         configure.ac): Likewise.
10758         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10759         configure.ac): Likewise.
10760         * modules/unictype/property-bidi-common-separator (Depends-on,
10761         configure.ac): Likewise.
10762         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10763         Likewise.
10764         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10765         configure.ac): Likewise.
10766         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10767         configure.ac): Likewise.
10768         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10769         configure.ac): Likewise.
10770         * modules/unictype/property-bidi-european-digit (Depends-on,
10771         configure.ac): Likewise.
10772         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10773         configure.ac): Likewise.
10774         * modules/unictype/property-bidi-left-to-right (Depends-on,
10775         configure.ac): Likewise.
10776         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10777         configure.ac): Likewise.
10778         * modules/unictype/property-bidi-other-neutral (Depends-on,
10779         configure.ac): Likewise.
10780         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10781         Likewise.
10782         * modules/unictype/property-bidi-segment-separator (Depends-on,
10783         configure.ac): Likewise.
10784         * modules/unictype/property-bidi-whitespace (Depends-on,
10785         configure.ac): Likewise.
10786         * modules/unictype/property-combining (Depends-on, configure.ac):
10787         Likewise.
10788         * modules/unictype/property-composite (Depends-on, configure.ac):
10789         Likewise.
10790         * modules/unictype/property-currency-symbol (Depends-on,
10791         configure.ac): Likewise.
10792         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10793         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10794         Likewise.
10795         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10796         configure.ac): Likewise.
10797         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10798         Likewise.
10799         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10800         Likewise.
10801         * modules/unictype/property-extender (Depends-on, configure.ac):
10802         Likewise.
10803         * modules/unictype/property-format-control (Depends-on, configure.ac):
10804         Likewise.
10805         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10806         Likewise.
10807         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10808         Likewise.
10809         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10810         Likewise.
10811         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10812         Likewise.
10813         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10814         Likewise.
10815         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10816         Likewise.
10817         * modules/unictype/property-id-start (Depends-on, configure.ac):
10818         Likewise.
10819         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10820         Likewise.
10821         * modules/unictype/property-ids-binary-operator (Depends-on,
10822         configure.ac): Likewise.
10823         * modules/unictype/property-ids-trinary-operator (Depends-on,
10824         configure.ac): Likewise.
10825         * modules/unictype/property-ignorable-control (Depends-on,
10826         configure.ac): Likewise.
10827         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10828         Likewise.
10829         * modules/unictype/property-join-control (Depends-on, configure.ac):
10830         Likewise.
10831         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10832         Likewise.
10833         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10834         Likewise.
10835         * modules/unictype/property-logical-order-exception (Depends-on,
10836         configure.ac): Likewise.
10837         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10838         Likewise.
10839         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10840         * modules/unictype/property-non-break (Depends-on, configure.ac):
10841         Likewise.
10842         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10843         Likewise.
10844         * modules/unictype/property-numeric (Depends-on, configure.ac):
10845         Likewise.
10846         * modules/unictype/property-other-alphabetic (Depends-on,
10847         configure.ac): Likewise.
10848         * modules/unictype/property-other-default-ignorable-code-point
10849         (Depends-on, configure.ac): Likewise.
10850         * modules/unictype/property-other-grapheme-extend (Depends-on,
10851         configure.ac): Likewise.
10852         * modules/unictype/property-other-id-continue (Depends-on,
10853         configure.ac): Likewise.
10854         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10855         Likewise.
10856         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10857         Likewise.
10858         * modules/unictype/property-other-math (Depends-on, configure.ac):
10859         Likewise.
10860         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10861         Likewise.
10862         * modules/unictype/property-paired-punctuation (Depends-on,
10863         configure.ac): Likewise.
10864         * modules/unictype/property-paragraph-separator (Depends-on,
10865         configure.ac): Likewise.
10866         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10867         Likewise.
10868         * modules/unictype/property-pattern-white-space (Depends-on,
10869         configure.ac): Likewise.
10870         * modules/unictype/property-private-use (Depends-on, configure.ac):
10871         Likewise.
10872         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10873         Likewise.
10874         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10875         Likewise.
10876         * modules/unictype/property-radical (Depends-on, configure.ac):
10877         Likewise.
10878         * modules/unictype/property-sentence-terminal (Depends-on,
10879         configure.ac): Likewise.
10880         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10881         Likewise.
10882         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10883         * modules/unictype/property-terminal-punctuation (Depends-on,
10884         configure.ac): Likewise.
10885         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10886         Likewise.
10887         * modules/unictype/property-unassigned-code-value (Depends-on,
10888         configure.ac): Likewise.
10889         * modules/unictype/property-unified-ideograph (Depends-on,
10890         configure.ac): Likewise.
10891         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10892         Likewise.
10893         * modules/unictype/property-variation-selector (Depends-on,
10894         configure.ac): Likewise.
10895         * modules/unictype/property-white-space (Depends-on, configure.ac):
10896         Likewise.
10897         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10898         Likewise.
10899         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10900         Likewise.
10901         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10902         Likewise.
10903         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10904         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10905         Likewise.
10906
10907 2009-12-31  Bruno Haible  <bruno@clisp.org>
10908
10909         Remove unnecessary AC_C_INLINE invocation.
10910         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10911         since 2009-08-21.
10912
10913 2009-12-31  Jim Meyering  <meyering@redhat.com>
10914
10915         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10916         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10917         With this change, we can all remove the gpg_key_ID = ... definition
10918         from our respective cfg.mk files.
10919
10920         maint.mk: create announcement template in ~/, not in /tmp
10921         * top/maint.mk (emit_upload_commands): Adjust.
10922         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10923         Remove temporary file, .ci-msg.
10924
10925 2009-12-31  Eric Blake  <ebb9@byu.net>
10926
10927         link-warning: always build headers with link warnings
10928         * modules/arpa_inet (Makefile.am): Always build replacement
10929         header.
10930         * modules/ctype (Makefile.am): Likewise.
10931         * modules/dirent (Makefile.am): Likewise.
10932         * modules/inttypes (Makefile.am): Likewise.
10933         * modules/langinfo (Makefile.am): Likewise.
10934         * modules/locale (Makefile.am): Likewise.
10935         * modules/spawn (Makefile.am): Likewise.
10936         * modules/sys_file (Makefile.am): Likewise.
10937         * modules/sys_ioctl (Makefile.am): Likewise.
10938         * modules/sys_select (Makefile.am): Likewise.
10939         * modules/sys_socket (Makefile.am): Likewise.
10940         * modules/sys_times (Makefile.am): Likewise.
10941         * modules/sys_utsname (Makefile.am): Likewise.
10942         * modules/sys_wait (Makefile.am): Likewise.
10943         * modules/wchar (Makefile.am): Likewise.
10944         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
10945         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
10946         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
10947         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
10948         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
10949         Likewise.
10950         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10951         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10952         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
10953         Likewise.
10954         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
10955         Likewise.
10956         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
10958         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
10959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10960         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10961         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10962         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10963         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
10964         (gl_WCHAR_H_DEFAULTS): Likewise.
10965
10966 2009-12-31  Eric Blake  <ebb9@byu.net>
10967
10968         signal, spawn: use link warnings
10969         * lib/signal.in.h (sigset_t): Make unconditional.
10970         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
10971         (sigpending, sigprocmask, sigaction): Add link warnings.
10972         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
10973         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
10974         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
10975         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
10976         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
10977         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
10978         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
10979         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
10980         (posix_spawn_file_actions_destroy)
10981         (posix_spawn_file_actions_addopen)
10982         (posix_spawn_file_actions_addclose)
10983         (posix_spawn_file_actions_adddup2): Likewise.
10984         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
10985         * tests/test-signal.c (main): Enhance test.
10986
10987         spawn: improve wrapper support
10988         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
10989         (gl_SPAWN_H_DEFAULTS): New defaults.
10990         * modules/spawn (Makefile.am): Substitute them.
10991         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
10992         Only declare if missing or broken.
10993
10994         sys_times, sys_utsname: use include_next
10995         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
10996         header.
10997         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
10998         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10999         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11000         * modules/sys_times (Depends-on): Add include_next.
11001         (Makefile.am): Substitute additional values.
11002         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11003         * lib/sys_times.in.h (includes): Include native header, if
11004         available.
11005         * lib/sys_utsname.in.h (includes): Likewise.
11006         * tests/test-sys_times.c (main): Enhance test.
11007
11008         fdutimensat: revert prior patch
11009         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11010         utimens.h.
11011         Reported by Bruno Haible.
11012
11013 2009-12-30  Eric Blake  <ebb9@byu.net>
11014
11015         sys_wait: drop link-warning dependency
11016         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11017         link-warning efforts.
11018         * lib/sys_wait.in.h: Likewise.
11019
11020         fdutimensat: remove bogus dependency
11021         * modules/fdutimensat (Depends-on): Drop inline.
11022
11023         unistd: fix typo
11024         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11025
11026 2009-12-30  Bruno Haible  <bruno@clisp.org>
11027
11028         Fix compilation error with Solaris cc.
11029         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11030         * lib/unicase/u16-is-invariant.c: Likewise.
11031         * lib/unicase/u32-is-invariant.c: Likewise.
11032         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11033
11034 2009-12-30  Bruno Haible  <bruno@clisp.org>
11035
11036         Fix test crash.
11037         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11038         locales.
11039         Reported by Simon Josefsson <simon@josefsson.org>.
11040
11041 2009-12-30  Bruno Haible  <bruno@clisp.org>
11042
11043         Fix compilation error on most platforms.
11044         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11045         Reported by Simon Josefsson <simon@josefsson.org>
11046         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11047
11048 2009-12-30  Eric Blake  <ebb9@byu.net>
11049
11050         futimens, utimensat: work around ntfs-3g bug
11051         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11052         a ctime bug is present, and expand workaround to cover ntfs-3g.
11053         * lib/utimens.c (fdutimens, lutimens): Likewise.
11054         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11055         (validate_timespec): Adjust return value.
11056         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11057         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11058         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11059
11060 2009-12-29  Eric Blake  <ebb9@byu.net>
11061
11062         link-warning: make usage consistent
11063         * modules/ctype (Depends-on): Add link-warning.
11064         (Makefile.am): Update rules accordingly.
11065         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11066         * modules/locale (Depends-on, Makefile.am): Likewise.
11067         * modules/sys_file (Makefile.am): Likewise.
11068         * modules/getopt-posix (Makefile.am): Delete unused link warning
11069         efforts.
11070         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11071         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11072         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11073         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11074
11075         stdio: remove unused variables
11076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11078         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11079
11080         tests: test more substitute headers
11081         * modules/ctype-tests: New file.
11082         * modules/dirent-tests: Likewise.
11083         * modules/spawn-tests: Likewise.
11084         * modules/sys_file-tests: Likewise.
11085         * modules/sys_ioctl-tests: Likewise.
11086         * modules/sys_wait-tests: Likewise.
11087         * tests/test-ctype.c: Likewise.
11088         * tests/test-dirent.c: Likewise.
11089         * tests/test-spawn.c: Likewise.
11090         * tests/test-sys_file.c: Likewise.
11091         * tests/test-sys_ioctl.c: Likewise.
11092         * tests/test-sys_wait.c: Likewise.
11093         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11094         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11095         whether or not flock is in use.
11096
11097         tests: remove License section from module
11098         * modules/arpa_inet-tests: Remove unneeded section.
11099         * modules/byteswap-tests: Likewise.
11100         * modules/ceilf-tests: Likewise.
11101         * modules/ceill-tests: Likewise.
11102         * modules/crypto/des-tests: Likewise.
11103         * modules/crypto/gc-arcfour-tests: Likewise.
11104         * modules/crypto/gc-arctwo-tests: Likewise.
11105         * modules/crypto/gc-des-tests: Likewise.
11106         * modules/crypto/gc-hmac-md5-tests: Likewise.
11107         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11108         * modules/crypto/gc-md2-tests: Likewise.
11109         * modules/crypto/gc-md4-tests: Likewise.
11110         * modules/crypto/gc-md5-tests: Likewise.
11111         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11112         * modules/crypto/gc-rijndael-tests: Likewise.
11113         * modules/crypto/gc-sha1-tests: Likewise.
11114         * modules/crypto/gc-tests: Likewise.
11115         * modules/crypto/md2-tests: Likewise.
11116         * modules/crypto/md4-tests: Likewise.
11117         * modules/fcntl-h-tests: Likewise.
11118         * modules/floorf-tests: Likewise.
11119         * modules/floorl-tests: Likewise.
11120         * modules/frexp-nolibm-tests: Likewise.
11121         * modules/frexp-tests: Likewise.
11122         * modules/frexpl-nolibm-tests: Likewise.
11123         * modules/frexpl-tests: Likewise.
11124         * modules/getaddrinfo-tests: Likewise.
11125         * modules/inttypes-tests: Likewise.
11126         * modules/isfinite-tests: Likewise.
11127         * modules/isinf-tests: Likewise.
11128         * modules/ldexpl-tests: Likewise.
11129         * modules/locale-tests: Likewise.
11130         * modules/math-tests: Likewise.
11131         * modules/netdb-tests: Likewise.
11132         * modules/netinet_in-tests: Likewise.
11133         * modules/printf-frexp-tests: Likewise.
11134         * modules/printf-frexpl-tests: Likewise.
11135         * modules/priv-set-tests: Likewise.
11136         * modules/random_r-tests: Likewise.
11137         * modules/round-tests: Likewise.
11138         * modules/roundf-tests: Likewise.
11139         * modules/roundl-tests: Likewise.
11140         * modules/search-tests: Likewise.
11141         * modules/select-tests: Likewise.
11142         * modules/signal-tests: Likewise.
11143         * modules/stdbool-tests: Likewise.
11144         * modules/stddef-tests: Likewise.
11145         * modules/stdint-tests: Likewise.
11146         * modules/stdio-tests: Likewise.
11147         * modules/stdlib-tests: Likewise.
11148         * modules/string-tests: Likewise.
11149         * modules/strings-tests: Likewise.
11150         * modules/sys_select-tests: Likewise.
11151         * modules/sys_socket-tests: Likewise.
11152         * modules/sys_stat-tests: Likewise.
11153         * modules/sys_time-tests: Likewise.
11154         * modules/sys_utsname-tests: Likewise.
11155         * modules/sysexits-tests: Likewise.
11156         * modules/time-tests: Likewise.
11157         * modules/trunc-tests: Likewise.
11158         * modules/truncf-tests: Likewise.
11159         * modules/truncl-tests: Likewise.
11160         * modules/tsearch-tests: Likewise.
11161         * modules/unistd-tests: Likewise.
11162         * modules/wchar-tests: Likewise.
11163         * modules/wctype-tests: Likewise.
11164
11165         tests: fix license on several tests
11166         * tests/test-des.c: Update to GPLv3+.
11167         * tests/test-flock.c: Likewise.
11168         * tests/test-fsync.c: Likewise.
11169         * tests/test-futimens.h: Likewise.
11170         * tests/test-gc-arcfour.c: Likewise.
11171         * tests/test-gc-arctwo.c: Likewise.
11172         * tests/test-gc-des.c: Likewise.
11173         * tests/test-gc-hmac-md5.c: Likewise.
11174         * tests/test-gc-hmac-sha1.c: Likewise.
11175         * tests/test-gc-md2.c: Likewise.
11176         * tests/test-gc-md4.c: Likewise.
11177         * tests/test-gc-md5.c: Likewise.
11178         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11179         * tests/test-gc-rijndael.c: Likewise.
11180         * tests/test-gc-sha1.c: Likewise.
11181         * tests/test-gc.c: Likewise.
11182         * tests/test-getcwd.c: Likewise.
11183         * tests/test-link.c: Likewise.
11184         * tests/test-link.h: Likewise.
11185         * tests/test-lutimens.h: Likewise.
11186         * tests/test-md2.c: Likewise.
11187         * tests/test-md4.c: Likewise.
11188         * tests/test-mkdir.h: Likewise.
11189         * tests/test-rename.c: Likewise.
11190         * tests/test-rename.h: Likewise.
11191         * tests/test-safe-alloc.c: Likewise.
11192         * tests/test-utimens-common.h: Likewise.
11193         * tests/test-utimens.h: Likewise.
11194
11195         maint: sync license texts
11196         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11197         * doc/gpl-3.0.texi: Revert copyright year update.
11198         * doc/lgpl-3.0.texi: Likewise.
11199
11200 2009-12-29  Jim Meyering  <meyering@redhat.com>
11201
11202         update nearly all FSF copyright year lists to include 2009
11203         The files named by the following are exempted:
11204             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11205               test -f "$dst" && { echo "$dst"; continue; }
11206               test -d "$dst" || continue
11207               echo "$dst"/$(basename "$src")
11208             done > exempt
11209             git ls-files tests/unictype >> exempt
11210         In the remaining files, convert to all-interval notation if
11211         - there is already at least one year interval like 2000-2003
11212         - the file is maintained by me
11213         - the file is in lib/uni*/, where that style already prevails
11214         Otherwise, use update-copyright's default.
11215
11216 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11217         and Eric Blake  <ebb9@byu.net>
11218
11219         tests: don't require debug system() to pass
11220         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11221         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11222         * tests/test-unlink.h (test_unlink_func): Likewise.
11223         * tests/test-fstatat.c (main): ...into callers.
11224         * tests/test-lstat.c (main): Likewise.
11225         * tests/test-rmdir.c (main): Likewise.
11226         * tests/test-unlink.c (main): Likewise.
11227         * tests/test-unlinkat.c (main): Likewise.
11228         * tests/test-areadlink-with-size.c (main): Don't require a
11229         debug-only system call to pass, aiding cross-testing to mingw.
11230         * tests/test-areadlink.c (main): Likewise.
11231         * tests/test-areadlinkat-with-size.c (main): Likewise.
11232         * tests/test-areadlinkat.c (main): Likewise.
11233         * tests/test-canonicalize-lgpl.c (main): Likewise.
11234         * tests/test-canonicalize.c (main): Likewise.
11235         * tests/test-chown.c (main): Likewise.
11236         * tests/test-fchownat.c (main): Likewise.
11237         * tests/test-lchown.c (main): Likewise.
11238         * tests/test-fdutimensat.c (main): Likewise.
11239         * tests/test-futimens.c (main): Likewise.
11240         * tests/test-link.c (main): Likewise.
11241         * tests/test-linkat.c (main): Likewise.
11242         * tests/test-mkdir.c (main): Likewise.
11243         * tests/test-mkdirat.c (main): Likewise.
11244         * tests/test-mkfifo.c (main): Likewise.
11245         * tests/test-mkfifoat.c (main): Likewise.
11246         * tests/test-mknod.c (main): Likewise.
11247         * tests/test-readlink.c (main): Likewise.
11248         * tests/test-remove.c (main): Likewise.
11249         * tests/test-rename.c (main): Likewise.
11250         * tests/test-renameat.c (main): Likewise.
11251         * tests/test-symlink.c (main): Likewise.
11252         * tests/test-symlinkat.c (main): Likewise.
11253         * tests/test-utimens.c (main): Likewise.
11254         * tests/test-utimensat.c (main): Likewise.
11255
11256 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11257
11258         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11259         on $(UNUSED_PARAMETER_H) to avoid build failure.
11260
11261 2009-12-28  Jim Meyering  <meyering@redhat.com>
11262
11263         update-copyright: you may specify a max. line length other than 72
11264         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11265
11266         maint: use consistent FSF copyright line syntax
11267         * lib/posixtm.c: Add missing comma in FSF copyright line.
11268         * lib/posixtm.h: Likewise.
11269         * lib/getugroups.c: Add missing ", Inc.".
11270
11271         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11272         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11273         FSF copyright line.  Remove trailing blanks.
11274
11275 2009-12-28  Eric Blake  <ebb9@byu.net>
11276
11277         test-dup2: reduce dependencies
11278         * modules/cloexec (Configure.ac): Set witness.
11279         * modules/dup2-tests (Depends-on): Drop cloexec.
11280         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11281         not present.
11282         Suggested by Bruno Haible.
11283
11284 2009-12-26  Bruno Haible  <bruno@clisp.org>
11285
11286         Remove an unneeded dependency.
11287         * modules/fseterr (Depends-on): Remove dup2.
11288
11289 2009-12-26  Eric Blake  <ebb9@byu.net>
11290
11291         tests: use macros.h in more places
11292         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11293         (ASSERT_STREAM): Provide default of stderr.
11294         * tests/test-dirent-safer.c: Include macros.h, using alternate
11295         stream for assertions.
11296         * tests/test-dup-safer.c: Likewise.
11297         * tests/test-freopen-safer.c: Likewise.
11298         * tests/test-getopt.c: Likewise.
11299         * tests/test-openat-safer.c: Likewise.
11300         * tests/test-pipe.c: Likewise.
11301         * tests/test-popen-safer.c: Likewise.
11302         * modules/dirent-safer-tests (Files): Include macros.h.
11303         * modules/unistd-safer-tests (Files): Likewise.
11304         * modules/freopen-safer-tests (Files): Likewise.
11305         * modules/getopt-posix-tests (Files): Likewise.
11306         * modules/openat-safer-tests (Files): Likewise.
11307         * modules/pipe-tests (Files): Likewise.
11308
11309 2009-12-26  Bruno Haible  <bruno@clisp.org>
11310
11311         javacomp: Portability fix.
11312         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11313         that it also works on Solaris.
11314
11315 2009-12-26  Bruno Haible  <bruno@clisp.org>
11316
11317         localename: Fix storage allocation of gl_locale_name_thread's result.
11318         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11319         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11320         all platforms that have 'uselocale'.
11321         (gl_locale_name_thread_unsafe): New function, extracted from
11322         gl_locale_name_thread.
11323         (gl_locale_name_thread): Call struniq on all platforms that have
11324         'uselocale'.
11325         * tests/test-localename.c (test_locale_name_thread): Check that the
11326         resulting strings are permanently allocated.
11327         * modules/localename-tests (Depends-on): Add strdup.
11328
11329 2009-12-26  Bruno Haible  <bruno@clisp.org>
11330
11331         * tests/test-localename.c (categories): Fill in the strings.
11332
11333 2009-12-26  Jim Meyering  <meyering@redhat.com>
11334
11335         isdir: complete the removal of m4/isdir.m4
11336         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11337
11338         isdir: clean up, since at least grep still uses it
11339         * lib/isdir.c: Include "isdir.h".
11340         (S_ISDIR): Remove now-unneeded definition.
11341         * modules/isdir (Files): Add lib/isdir.h.
11342         * lib/isdir.h: New file, with declaration.
11343         * m4/isdir.m4: Remove file -- unneeded.
11344
11345 2009-12-25  Bruno Haible  <bruno@clisp.org>
11346
11347         selinux-h: Make generated .h files standalone.
11348         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11349         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11350         * lib/se-selinux.in.h: Likewise.
11351         * modules/selinux-h (Depends-on): Add unused-parameter.
11352         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11353         selinux/selinux.h and selinux/context.h.
11354         Suggested by Eric Blake.
11355
11356 2009-12-25  Bruno Haible  <bruno@clisp.org>
11357
11358         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11359         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11360         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11361         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11362         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11363
11364 2009-12-24  Bruno Haible  <bruno@clisp.org>
11365
11366         openat: Fix warning.
11367         * lib/openat-proc.c: Include <unistd.h>.
11368
11369 2009-12-24  Bruno Haible  <bruno@clisp.org>
11370
11371         New module 'unused-parameter'.
11372         * build-aux/unused-parameter.h: New file, extracted from earlier
11373         gnulib-common.m4.
11374         * modules/unused-parameter: New file.
11375         * lib/unistr.h: Include unused-parameter.h.
11376         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11377         _GL_UNUSED.
11378         * modules/unistr/base (Depends-on): Add unused-parameter.
11379
11380 2009-12-24  Bruno Haible  <bruno@clisp.org>
11381
11382         Add missing dependencies to 'extensions' module.
11383         * m4/extensions.m4: Add comment.
11384         * modules/accept4 (Depends-on): Add extensions.
11385         * modules/dup3 (Depends-on): Likewise.
11386         * modules/fcntl (Depends-on): Likewise.
11387         * modules/futimens (Depends-on): Likewise.
11388         * modules/mknod (Depends-on): Likewise.
11389         * modules/pipe2 (Depends-on): Likewise.
11390         * modules/stat-time (Depends-on): Likewise.
11391         * modules/strcasestr-simple (Depends-on): Likewise.
11392         * modules/strsignal (Depends-on): Likewise.
11393         * modules/utimensat (Depends-on): Likewise.
11394         * modules/localcharset (Depends-on): Likewise. Needed because of
11395         gl_FCNTL_O_FLAGS.
11396         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11397         AC_TYPE_MBSTATE_T.
11398         * modules/wcsnrtombs (Depends-on): Likewise.
11399         * modules/wcsrtombs (Depends-on): Likewise.
11400
11401 2009-12-24  Bruno Haible  <bruno@clisp.org>
11402
11403         binary-io: Avoid gcc warning due to SET_BINARY.
11404         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11405         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11406
11407 2009-12-24  Bruno Haible  <bruno@clisp.org>
11408
11409         Avoid future namespace pollution on glibc systems.
11410         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11411         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11412         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11413         glibc systems.
11414
11415 2009-12-24  Bruno Haible  <bruno@clisp.org>
11416
11417         Refactor common macros used in tests.
11418         * tests/macros.h: New file.
11419         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11420         and/or <stdlib.h>, if appropriate.
11421         (ASSERT, SIZEOF): Remove macros.
11422         * tests/test-areadlink-with-size.c: Likewise.
11423         * tests/test-areadlinkat.c: Likewise.
11424         * tests/test-areadlinkat-with-size.c: Likewise.
11425         * tests/test-argmatch.c: Likewise.
11426         * tests/test-argv-iter.c: Likewise.
11427         * tests/test-array-mergesort.c: Likewise.
11428         * tests/test-array_list.c: Likewise.
11429         * tests/test-array_oset.c: Likewise.
11430         * tests/test-avltree_list.c: Likewise.
11431         * tests/test-avltree_oset.c: Likewise.
11432         * tests/test-avltreehash_list.c: Likewise.
11433         * tests/test-base64.c: Likewise.
11434         * tests/test-binary-io.c: Likewise.
11435         * tests/test-bitrotate.c: Likewise.
11436         * tests/test-btowc.c: Likewise.
11437         * tests/test-byteswap.c: Likewise.
11438         * tests/test-c-ctype.c: Likewise.
11439         * tests/test-c-stack.c: Likewise.
11440         * tests/test-c-strcasecmp.c: Likewise.
11441         * tests/test-c-strcasestr.c: Likewise.
11442         * tests/test-c-strncasecmp.c: Likewise.
11443         * tests/test-c-strstr.c: Likewise.
11444         * tests/test-canonicalize-lgpl.c: Likewise.
11445         * tests/test-canonicalize.c: Likewise.
11446         * tests/test-carray_list.c: Likewise.
11447         * tests/test-ceilf1.c: Likewise.
11448         * tests/test-ceilf2.c: Likewise.
11449         * tests/test-ceill.c: Likewise.
11450         * tests/test-chown.c: Likewise.
11451         * tests/test-cloexec.c: Likewise.
11452         * tests/test-copy-acl.c: Likewise.
11453         * tests/test-copy-file.c: Likewise.
11454         * tests/test-count-one-bits.c: Likewise.
11455         * tests/test-dprintf-posix.c: Likewise.
11456         * tests/test-dup2.c: Likewise.
11457         * tests/test-dup3.c: Likewise.
11458         * tests/test-duplocale.c: Likewise.
11459         * tests/test-fbufmode.c: Likewise.
11460         * tests/test-fchdir.c: Likewise.
11461         * tests/test-fchownat.c: Likewise.
11462         * tests/test-fcntl-safer.c: Likewise.
11463         * tests/test-fcntl.c: Likewise.
11464         * tests/test-fdopendir.c: Likewise.
11465         * tests/test-fdutimensat.c: Likewise.
11466         * tests/test-fflush2.c: Likewise.
11467         * tests/test-file-has-acl.c: Likewise.
11468         * tests/test-filevercmp.c: Likewise.
11469         * tests/test-flock.c: Likewise.
11470         * tests/test-floorf1.c: Likewise.
11471         * tests/test-floorf2.c: Likewise.
11472         * tests/test-floorl.c: Likewise.
11473         * tests/test-fnmatch.c: Likewise.
11474         * tests/test-fopen.h: Likewise.
11475         * tests/test-fpending.c: Likewise.
11476         * tests/test-fprintf-posix.c: Likewise.
11477         * tests/test-fpurge.c: Likewise.
11478         * tests/test-freadable.c: Likewise.
11479         * tests/test-freadahead.c: Likewise.
11480         * tests/test-freading.c: Likewise.
11481         * tests/test-freadptr.c: Likewise.
11482         * tests/test-freadptr2.c: Likewise.
11483         * tests/test-freadseek.c: Likewise.
11484         * tests/test-freopen.c: Likewise.
11485         * tests/test-frexp.c: Likewise.
11486         * tests/test-frexpl.c: Likewise.
11487         * tests/test-fseek.c: Likewise.
11488         * tests/test-fseeko.c: Likewise.
11489         * tests/test-fstatat.c: Likewise.
11490         * tests/test-fstrcmp.c: Likewise.
11491         * tests/test-fsync.c: Likewise.
11492         * tests/test-ftell.c: Likewise.
11493         * tests/test-ftello.c: Likewise.
11494         * tests/test-func.c: Likewise.
11495         * tests/test-futimens.c: Likewise.
11496         * tests/test-fwritable.c: Likewise.
11497         * tests/test-fwriting.c: Likewise.
11498         * tests/test-getcwd.c: Likewise.
11499         * tests/test-getdate.c: Likewise.
11500         * tests/test-getdelim.c: Likewise.
11501         * tests/test-getdtablesize.c: Likewise.
11502         * tests/test-getgroups.c: Likewise.
11503         * tests/test-getline.c: Likewise.
11504         * tests/test-getndelim2.c: Likewise.
11505         * tests/test-glob.c: Likewise.
11506         * tests/test-hash.c: Likewise.
11507         * tests/test-i-ring.c: Likewise.
11508         * tests/test-iconv-utf.c: Likewise.
11509         * tests/test-iconv.c: Likewise.
11510         * tests/test-idpriv-drop.c: Likewise.
11511         * tests/test-idpriv-droptemp.c: Likewise.
11512         * tests/test-inet_ntop.c: Likewise.
11513         * tests/test-inet_pton.c: Likewise.
11514         * tests/test-isblank.c: Likewise.
11515         * tests/test-isfinite.c: Likewise.
11516         * tests/test-isinf.c: Likewise.
11517         * tests/test-isnan.c: Likewise.
11518         * tests/test-isnand.h: Likewise.
11519         * tests/test-isnanf.h: Likewise.
11520         * tests/test-isnanl.h: Likewise.
11521         * tests/test-lchown.c: Likewise.
11522         * tests/test-ldexpl.c: Likewise.
11523         * tests/test-link.c: Likewise.
11524         * tests/test-linkat.c: Likewise.
11525         * tests/test-linked_list.c: Likewise.
11526         * tests/test-linkedhash_list.c: Likewise.
11527         * tests/test-localename.c: Likewise.
11528         * tests/test-lseek.c: Likewise.
11529         * tests/test-lstat.c: Likewise.
11530         * tests/test-mbmemcasecmp.c: Likewise.
11531         * tests/test-mbmemcasecoll.c: Likewise.
11532         * tests/test-mbrtowc.c: Likewise.
11533         * tests/test-mbscasecmp.c: Likewise.
11534         * tests/test-mbscasestr1.c: Likewise.
11535         * tests/test-mbscasestr2.c: Likewise.
11536         * tests/test-mbscasestr3.c: Likewise.
11537         * tests/test-mbscasestr4.c: Likewise.
11538         * tests/test-mbschr.c: Likewise.
11539         * tests/test-mbscspn.c: Likewise.
11540         * tests/test-mbsinit.c: Likewise.
11541         * tests/test-mbsncasecmp.c: Likewise.
11542         * tests/test-mbsnrtowcs.c: Likewise.
11543         * tests/test-mbspbrk.c: Likewise.
11544         * tests/test-mbspcasecmp.c: Likewise.
11545         * tests/test-mbsrchr.c: Likewise.
11546         * tests/test-mbsrtowcs.c: Likewise.
11547         * tests/test-mbsspn.c: Likewise.
11548         * tests/test-mbsstr1.c: Likewise.
11549         * tests/test-mbsstr2.c: Likewise.
11550         * tests/test-mbsstr3.c: Likewise.
11551         * tests/test-memchr.c: Likewise.
11552         * tests/test-memchr2.c: Likewise.
11553         * tests/test-memcmp.c: Likewise.
11554         * tests/test-memmem.c: Likewise.
11555         * tests/test-memrchr.c: Likewise.
11556         * tests/test-mkdir.c: Likewise.
11557         * tests/test-mkdirat.c: Likewise.
11558         * tests/test-mkfifo.c: Likewise.
11559         * tests/test-mkfifoat.c: Likewise.
11560         * tests/test-mknod.c: Likewise.
11561         * tests/test-nanosleep.c: Likewise.
11562         * tests/test-nl_langinfo.c: Likewise.
11563         * tests/test-obstack-printf.c: Likewise.
11564         * tests/test-open.c: Likewise.
11565         * tests/test-openat.c: Likewise.
11566         * tests/test-pipe-filter-gi1.c: Likewise.
11567         * tests/test-pipe-filter-gi2-main.c: Likewise.
11568         * tests/test-pipe-filter-ii1.c: Likewise.
11569         * tests/test-pipe-filter-ii2-main.c: Likewise.
11570         * tests/test-pipe2.c: Likewise.
11571         * tests/test-popen.h: Likewise.
11572         * tests/test-posixtm.c: Likewise.
11573         * tests/test-pread.c: Likewise.
11574         * tests/test-printf-frexp.c: Likewise.
11575         * tests/test-printf-frexpl.c: Likewise.
11576         * tests/test-printf-posix.c: Likewise.
11577         * tests/test-priv-set.c: Likewise.
11578         * tests/test-quotearg.c: Likewise.
11579         * tests/test-random_r.c: Likewise.
11580         * tests/test-rawmemchr.c: Likewise.
11581         * tests/test-rbtree_list.c: Likewise.
11582         * tests/test-rbtree_oset.c: Likewise.
11583         * tests/test-rbtreehash_list.c: Likewise.
11584         * tests/test-readlink.c: Likewise.
11585         * tests/test-remove.c: Likewise.
11586         * tests/test-rename.c: Likewise.
11587         * tests/test-renameat.c: Likewise.
11588         * tests/test-rmdir.c: Likewise.
11589         * tests/test-round1.c: Likewise.
11590         * tests/test-roundf1.c: Likewise.
11591         * tests/test-roundl.c: Likewise.
11592         * tests/test-safe-alloc.c: Likewise.
11593         * tests/test-sameacls.c: Likewise.
11594         * tests/test-set-mode-acl.c: Likewise.
11595         * tests/test-setenv.c: Likewise.
11596         * tests/test-sigaction.c: Likewise.
11597         * tests/test-signbit.c: Likewise.
11598         * tests/test-sleep.c: Likewise.
11599         * tests/test-snprintf-posix.c: Likewise.
11600         * tests/test-snprintf.c: Likewise.
11601         * tests/test-sprintf-posix.c: Likewise.
11602         * tests/test-stat-time.c: Likewise.
11603         * tests/test-stat.c: Likewise.
11604         * tests/test-strcasestr.c: Likewise.
11605         * tests/test-strchrnul.c: Likewise.
11606         * tests/test-strerror.c: Likewise.
11607         * tests/test-striconv.c: Likewise.
11608         * tests/test-striconveh.c: Likewise.
11609         * tests/test-striconveha.c: Likewise.
11610         * tests/test-strsignal.c: Likewise.
11611         * tests/test-strstr.c: Likewise.
11612         * tests/test-strtod.c: Likewise.
11613         * tests/test-strverscmp.c: Likewise.
11614         * tests/test-symlink.c: Likewise.
11615         * tests/test-symlinkat.c: Likewise.
11616         * tests/test-trunc1.c: Likewise.
11617         * tests/test-trunc2.c: Likewise.
11618         * tests/test-truncf1.c: Likewise.
11619         * tests/test-truncf2.c: Likewise.
11620         * tests/test-truncl.c: Likewise.
11621         * tests/test-uname.c: Likewise.
11622         * tests/test-unlink.c: Likewise.
11623         * tests/test-unlinkat.c: Likewise.
11624         * tests/test-unsetenv.c: Likewise.
11625         * tests/test-usleep.c: Likewise.
11626         * tests/test-utimens.c: Likewise.
11627         * tests/test-utimensat.c: Likewise.
11628         * tests/test-vasnprintf-posix.c: Likewise.
11629         * tests/test-vasnprintf-posix2.c: Likewise.
11630         * tests/test-vasnprintf.c: Likewise.
11631         * tests/test-vasprintf-posix.c: Likewise.
11632         * tests/test-vasprintf.c: Likewise.
11633         * tests/test-vdprintf-posix.c: Likewise.
11634         * tests/test-vfprintf-posix.c: Likewise.
11635         * tests/test-vprintf-posix.c: Likewise.
11636         * tests/test-vsnprintf-posix.c: Likewise.
11637         * tests/test-vsnprintf.c: Likewise.
11638         * tests/test-vsprintf-posix.c: Likewise.
11639         * tests/test-wcrtomb.c: Likewise.
11640         * tests/test-wcsnrtombs.c: Likewise.
11641         * tests/test-wcsrtombs.c: Likewise.
11642         * tests/test-wctype.c: Likewise.
11643         * tests/test-wcwidth.c: Likewise.
11644         * tests/test-xfprintf-posix.c: Likewise.
11645         * tests/test-xmemdup0.c: Likewise.
11646         * tests/test-xprintf-posix.c: Likewise.
11647         * tests/test-xvasprintf.c: Likewise.
11648         * tests/unicase/test-locale-language.c: Likewise.
11649         * tests/unicase/test-mapping-part1.h: Likewise.
11650         * tests/unicase/test-predicate-part1.h: Likewise.
11651         * tests/unicase/test-u8-casecmp.c: Likewise.
11652         * tests/unicase/test-u8-casecoll.c: Likewise.
11653         * tests/unicase/test-u8-casefold.c: Likewise.
11654         * tests/unicase/test-u8-is-cased.c: Likewise.
11655         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11656         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11657         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11658         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11659         * tests/unicase/test-u8-tolower.c: Likewise.
11660         * tests/unicase/test-u8-totitle.c: Likewise.
11661         * tests/unicase/test-u8-toupper.c: Likewise.
11662         * tests/unicase/test-u16-casecmp.c: Likewise.
11663         * tests/unicase/test-u16-casecoll.c: Likewise.
11664         * tests/unicase/test-u16-casefold.c: Likewise.
11665         * tests/unicase/test-u16-is-cased.c: Likewise.
11666         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11667         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11668         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11669         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11670         * tests/unicase/test-u16-tolower.c: Likewise.
11671         * tests/unicase/test-u16-totitle.c: Likewise.
11672         * tests/unicase/test-u16-toupper.c: Likewise.
11673         * tests/unicase/test-u32-casecmp.c: Likewise.
11674         * tests/unicase/test-u32-casecoll.c: Likewise.
11675         * tests/unicase/test-u32-casefold.c: Likewise.
11676         * tests/unicase/test-u32-is-cased.c: Likewise.
11677         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11678         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11679         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11680         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11681         * tests/unicase/test-u32-tolower.c: Likewise.
11682         * tests/unicase/test-u32-totitle.c: Likewise.
11683         * tests/unicase/test-u32-toupper.c: Likewise.
11684         * tests/unicase/test-ulc-casecmp.c: Likewise.
11685         * tests/unicase/test-ulc-casecoll.c: Likewise.
11686         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11687         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11688         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11689         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11690         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11691         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11692         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11693         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11694         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11695         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11696         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11697         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11698         * tests/unictype/test-bidi_byname.c: Likewise.
11699         * tests/unictype/test-bidi_name.c: Likewise.
11700         * tests/unictype/test-bidi_of.c: Likewise.
11701         * tests/unictype/test-bidi_test.c: Likewise.
11702         * tests/unictype/test-block_list.c: Likewise.
11703         * tests/unictype/test-block_of.c: Likewise.
11704         * tests/unictype/test-block_test.c: Likewise.
11705         * tests/unictype/test-categ_and.c: Likewise.
11706         * tests/unictype/test-categ_and_not.c: Likewise.
11707         * tests/unictype/test-categ_byname.c: Likewise.
11708         * tests/unictype/test-categ_name.c: Likewise.
11709         * tests/unictype/test-categ_none.c: Likewise.
11710         * tests/unictype/test-categ_of.c: Likewise.
11711         * tests/unictype/test-categ_or.c: Likewise.
11712         * tests/unictype/test-categ_test_withtable.c: Likewise.
11713         * tests/unictype/test-combining.c: Likewise.
11714         * tests/unictype/test-decdigit.c: Likewise.
11715         * tests/unictype/test-digit.c: Likewise.
11716         * tests/unictype/test-mirror.c: Likewise.
11717         * tests/unictype/test-numeric.c: Likewise.
11718         * tests/unictype/test-pr_byname.c: Likewise.
11719         * tests/unictype/test-pr_test.c: Likewise.
11720         * tests/unictype/test-predicate-part1.h: Likewise.
11721         * tests/unictype/test-scripts.c: Likewise.
11722         * tests/unictype/test-sy_c_ident.c: Likewise.
11723         * tests/unictype/test-sy_java_ident.c: Likewise.
11724         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11725         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11726         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11727         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11728         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11729         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11730         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11731         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11732         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11733         * tests/uninorm/test-compat-decomposition.c: Likewise.
11734         * tests/uninorm/test-composition.c: Likewise.
11735         * tests/uninorm/test-decomposing-form.c: Likewise.
11736         * tests/uninorm/test-decomposition.c: Likewise.
11737         * tests/uninorm/test-u8-nfc.c: Likewise.
11738         * tests/uninorm/test-u8-nfd.c: Likewise.
11739         * tests/uninorm/test-u8-nfkc.c: Likewise.
11740         * tests/uninorm/test-u8-nfkd.c: Likewise.
11741         * tests/uninorm/test-u8-normcmp.c: Likewise.
11742         * tests/uninorm/test-u8-normcoll.c: Likewise.
11743         * tests/uninorm/test-u16-nfc.c: Likewise.
11744         * tests/uninorm/test-u16-nfd.c: Likewise.
11745         * tests/uninorm/test-u16-nfkc.c: Likewise.
11746         * tests/uninorm/test-u16-nfkd.c: Likewise.
11747         * tests/uninorm/test-u16-normcmp.c: Likewise.
11748         * tests/uninorm/test-u16-normcoll.c: Likewise.
11749         * tests/uninorm/test-u32-nfc.c: Likewise.
11750         * tests/uninorm/test-u32-nfd.c: Likewise.
11751         * tests/uninorm/test-u32-nfkc.c: Likewise.
11752         * tests/uninorm/test-u32-nfkd.c: Likewise.
11753         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11754         * tests/uninorm/test-u32-normcmp.c: Likewise.
11755         * tests/uninorm/test-u32-normcoll.c: Likewise.
11756         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11757         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11758         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11759         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11760         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11761         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11762         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11763         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11764         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11765         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11766         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11767         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11768         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11769         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11770         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11771         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11772         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11773         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11774         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11775         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11776         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11777         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11778         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11779         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11780         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11781         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11782         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11783         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11784         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11785         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11786         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11787         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11788         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11789         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11790         * tests/uniwidth/test-u8-width.c: Likewise.
11791         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11792         * tests/uniwidth/test-u16-width.c: Likewise.
11793         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11794         * tests/uniwidth/test-u32-width.c: Likewise.
11795         * tests/uniwidth/test-uc_width.c: Likewise.
11796         * tests/uniwidth/test-uc_width2.c: Likewise.
11797         * modules/acl-tests (Files): Add tests/macros.h.
11798         * modules/areadlink-tests (Files): Likewise.
11799         * modules/areadlink-with-size-tests (Files): Likewise.
11800         * modules/areadlinkat-tests (Files): Likewise.
11801         * modules/areadlinkat-with-size-tests (Files): Likewise.
11802         * modules/argmatch-tests (Files): Likewise.
11803         * modules/argv-iter-tests (Files): Likewise.
11804         * modules/array-list-tests (Files): Likewise.
11805         * modules/array-mergesort-tests (Files): Likewise.
11806         * modules/array-oset-tests (Files): Likewise.
11807         * modules/avltree-list-tests (Files): Likewise.
11808         * modules/avltree-oset-tests (Files): Likewise.
11809         * modules/avltreehash-list-tests (Files): Likewise.
11810         * modules/base64-tests (Files): Likewise.
11811         * modules/binary-io-tests (Files): Likewise.
11812         * modules/bitrotate-tests (Files): Likewise.
11813         * modules/btowc-tests (Files): Likewise.
11814         * modules/byteswap-tests (Files): Likewise.
11815         * modules/c-ctype-tests (Files): Likewise.
11816         * modules/c-stack-tests (Files): Likewise.
11817         * modules/c-strcase-tests (Files): Likewise.
11818         * modules/c-strcasestr-tests (Files): Likewise.
11819         * modules/c-strstr-tests (Files): Likewise.
11820         * modules/canonicalize-lgpl-tests (Files): Likewise.
11821         * modules/canonicalize-tests (Files): Likewise.
11822         * modules/carray-list-tests (Files): Likewise.
11823         * modules/ceilf-tests (Files): Likewise.
11824         * modules/ceill-tests (Files): Likewise.
11825         * modules/chown-tests (Files): Likewise.
11826         * modules/cloexec-tests (Files): Likewise.
11827         * modules/copy-file-tests (Files): Likewise.
11828         * modules/count-one-bits-tests (Files): Likewise.
11829         * modules/dprintf-posix-tests (Files): Likewise.
11830         * modules/dup2-tests (Files): Likewise.
11831         * modules/dup3-tests (Files): Likewise.
11832         * modules/duplocale-tests (Files): Likewise.
11833         * modules/fbufmode-tests (Files): Likewise.
11834         * modules/fchdir-tests (Files): Likewise.
11835         * modules/fcntl-safer-tests (Files): Likewise.
11836         * modules/fcntl-tests (Files): Likewise.
11837         * modules/fdopendir-tests (Files): Likewise.
11838         * modules/fdutimensat-tests (Files): Likewise.
11839         * modules/fflush-tests (Files): Likewise.
11840         * modules/filevercmp-tests (Files): Likewise.
11841         * modules/flock-tests (Files): Likewise.
11842         * modules/floorf-tests (Files): Likewise.
11843         * modules/floorl-tests (Files): Likewise.
11844         * modules/fnmatch-tests (Files): Likewise.
11845         * modules/fopen-safer-tests (Files): Likewise.
11846         * modules/fopen-tests (Files): Likewise.
11847         * modules/fpending-tests (Files): Likewise.
11848         * modules/fprintf-posix-tests (Files): Likewise.
11849         * modules/fpurge-tests (Files): Likewise.
11850         * modules/freadable-tests (Files): Likewise.
11851         * modules/freadahead-tests (Files): Likewise.
11852         * modules/freading-tests (Files): Likewise.
11853         * modules/freadptr-tests (Files): Likewise.
11854         * modules/freadseek-tests (Files): Likewise.
11855         * modules/freopen-tests (Files): Likewise.
11856         * modules/frexp-nolibm-tests (Files): Likewise.
11857         * modules/frexp-tests (Files): Likewise.
11858         * modules/frexpl-nolibm-tests (Files): Likewise.
11859         * modules/frexpl-tests (Files): Likewise.
11860         * modules/fseek-tests (Files): Likewise.
11861         * modules/fseeko-tests (Files): Likewise.
11862         * modules/fstrcmp-tests (Files): Likewise.
11863         * modules/fsync-tests (Files): Likewise.
11864         * modules/ftell-tests (Files): Likewise.
11865         * modules/ftello-tests (Files): Likewise.
11866         * modules/func-tests (Files): Likewise.
11867         * modules/futimens-tests (Files): Likewise.
11868         * modules/fwritable-tests (Files): Likewise.
11869         * modules/fwriting-tests (Files): Likewise.
11870         * modules/getcwd-tests (Files): Likewise.
11871         * modules/getdate-tests (Files): Likewise.
11872         * modules/getdelim-tests (Files): Likewise.
11873         * modules/getdtablesize-tests (Files): Likewise.
11874         * modules/getgroups-tests (Files): Likewise.
11875         * modules/getline-tests (Files): Likewise.
11876         * modules/getndelim2-tests (Files): Likewise.
11877         * modules/glob-tests (Files): Likewise.
11878         * modules/hash-tests (Files): Likewise.
11879         * modules/i-ring-tests (Files): Likewise.
11880         * modules/iconv-tests (Files): Likewise.
11881         * modules/iconv_open-utf-tests (Files): Likewise.
11882         * modules/idpriv-drop-tests (Files): Likewise.
11883         * modules/idpriv-droptemp-tests (Files): Likewise.
11884         * modules/inet_ntop-tests (Files): Likewise.
11885         * modules/inet_pton-tests (Files): Likewise.
11886         * modules/isblank-tests (Files): Likewise.
11887         * modules/isfinite-tests (Files): Likewise.
11888         * modules/isinf-tests (Files): Likewise.
11889         * modules/isnan-tests (Files): Likewise.
11890         * modules/isnand-nolibm-tests (Files): Likewise.
11891         * modules/isnand-tests (Files): Likewise.
11892         * modules/isnanf-nolibm-tests (Files): Likewise.
11893         * modules/isnanf-tests (Files): Likewise.
11894         * modules/isnanl-nolibm-tests (Files): Likewise.
11895         * modules/isnanl-tests (Files): Likewise.
11896         * modules/lchown-tests (Files): Likewise.
11897         * modules/ldexpl-tests (Files): Likewise.
11898         * modules/link-tests (Files): Likewise.
11899         * modules/linkat-tests (Files): Likewise.
11900         * modules/linked-list-tests (Files): Likewise.
11901         * modules/linkedhash-list-tests (Files): Likewise.
11902         * modules/localename-tests (Files): Likewise.
11903         * modules/lseek-tests (Files): Likewise.
11904         * modules/lstat-tests (Files): Likewise.
11905         * modules/mbmemcasecmp-tests (Files): Likewise.
11906         * modules/mbmemcasecoll-tests (Files): Likewise.
11907         * modules/mbrtowc-tests (Files): Likewise.
11908         * modules/mbscasecmp-tests (Files): Likewise.
11909         * modules/mbscasestr-tests (Files): Likewise.
11910         * modules/mbschr-tests (Files): Likewise.
11911         * modules/mbscspn-tests (Files): Likewise.
11912         * modules/mbsinit-tests (Files): Likewise.
11913         * modules/mbsncasecmp-tests (Files): Likewise.
11914         * modules/mbsnrtowcs-tests (Files): Likewise.
11915         * modules/mbspbrk-tests (Files): Likewise.
11916         * modules/mbspcasecmp-tests (Files): Likewise.
11917         * modules/mbsrchr-tests (Files): Likewise.
11918         * modules/mbsrtowcs-tests (Files): Likewise.
11919         * modules/mbsspn-tests (Files): Likewise.
11920         * modules/mbsstr-tests (Files): Likewise.
11921         * modules/memchr-tests (Files): Likewise.
11922         * modules/memchr2-tests (Files): Likewise.
11923         * modules/memcmp-tests (Files): Likewise.
11924         * modules/memmem-tests (Files): Likewise.
11925         * modules/memrchr-tests (Files): Likewise.
11926         * modules/mkdir-tests (Files): Likewise.
11927         * modules/mkfifo-tests (Files): Likewise.
11928         * modules/mkfifoat-tests (Files): Likewise.
11929         * modules/mknod-tests (Files): Likewise.
11930         * modules/nanosleep-tests (Files): Likewise.
11931         * modules/nl_langinfo-tests (Files): Likewise.
11932         * modules/obstack-printf-tests (Files): Likewise.
11933         * modules/open-tests (Files): Likewise.
11934         * modules/openat-tests (Files): Likewise.
11935         * modules/pipe-filter-gi-tests (Files): Likewise.
11936         * modules/pipe-filter-ii-tests (Files): Likewise.
11937         * modules/pipe2-tests (Files): Likewise.
11938         * modules/popen-safer-tests (Files): Likewise.
11939         * modules/popen-tests (Files): Likewise.
11940         * modules/posixtm-tests (Files): Likewise.
11941         * modules/pread-tests (Files): Likewise.
11942         * modules/printf-frexp-tests (Files): Likewise.
11943         * modules/printf-frexpl-tests (Files): Likewise.
11944         * modules/printf-posix-tests (Files): Likewise.
11945         * modules/priv-set-tests (Files): Likewise.
11946         * modules/quotearg-tests (Files): Likewise.
11947         * modules/random_r-tests (Files): Likewise.
11948         * modules/rawmemchr-tests (Files): Likewise.
11949         * modules/rbtree-list-tests (Files): Likewise.
11950         * modules/rbtree-oset-tests (Files): Likewise.
11951         * modules/rbtreehash-list-tests (Files): Likewise.
11952         * modules/readlink-tests (Files): Likewise.
11953         * modules/remove-tests (Files): Likewise.
11954         * modules/rename-tests (Files): Likewise.
11955         * modules/renameat-tests (Files): Likewise.
11956         * modules/rmdir-tests (Files): Likewise.
11957         * modules/round-tests (Files): Likewise.
11958         * modules/roundf-tests (Files): Likewise.
11959         * modules/roundl-tests (Files): Likewise.
11960         * modules/safe-alloc-tests (Files): Likewise.
11961         * modules/setenv-tests (Files): Likewise.
11962         * modules/sigaction-tests (Files): Likewise.
11963         * modules/signbit-tests (Files): Likewise.
11964         * modules/sleep-tests (Files): Likewise.
11965         * modules/snprintf-posix-tests (Files): Likewise.
11966         * modules/snprintf-tests (Files): Likewise.
11967         * modules/sprintf-posix-tests (Files): Likewise.
11968         * modules/stat-tests (Files): Likewise.
11969         * modules/stat-time-tests (Files): Likewise.
11970         * modules/strcasestr-tests (Files): Likewise.
11971         * modules/strchrnul-tests (Files): Likewise.
11972         * modules/strerror-tests (Files): Likewise.
11973         * modules/striconv-tests (Files): Likewise.
11974         * modules/striconveh-tests (Files): Likewise.
11975         * modules/striconveha-tests (Files): Likewise.
11976         * modules/strsignal-tests (Files): Likewise.
11977         * modules/strstr-tests (Files): Likewise.
11978         * modules/strtod-tests (Files): Likewise.
11979         * modules/strverscmp-tests (Files): Likewise.
11980         * modules/symlink-tests (Files): Likewise.
11981         * modules/symlinkat-tests (Files): Likewise.
11982         * modules/trunc-tests (Files): Likewise.
11983         * modules/truncf-tests (Files): Likewise.
11984         * modules/truncl-tests (Files): Likewise.
11985         * modules/uname-tests (Files): Likewise.
11986         * modules/unicase/cased-tests (Files): Likewise.
11987         * modules/unicase/ignorable-tests (Files): Likewise.
11988         * modules/unicase/locale-language-tests (Files): Likewise.
11989         * modules/unicase/tolower-tests (Files): Likewise.
11990         * modules/unicase/totitle-tests (Files): Likewise.
11991         * modules/unicase/toupper-tests (Files): Likewise.
11992         * modules/unicase/u8-casecmp-tests (Files): Likewise.
11993         * modules/unicase/u8-casecoll-tests (Files): Likewise.
11994         * modules/unicase/u8-casefold-tests (Files): Likewise.
11995         * modules/unicase/u8-is-cased-tests (Files): Likewise.
11996         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
11997         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
11998         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
11999         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12000         * modules/unicase/u8-tolower-tests (Files): Likewise.
12001         * modules/unicase/u8-totitle-tests (Files): Likewise.
12002         * modules/unicase/u8-toupper-tests (Files): Likewise.
12003         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12004         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12005         * modules/unicase/u16-casefold-tests (Files): Likewise.
12006         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12007         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12008         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12009         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12010         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12011         * modules/unicase/u16-tolower-tests (Files): Likewise.
12012         * modules/unicase/u16-totitle-tests (Files): Likewise.
12013         * modules/unicase/u16-toupper-tests (Files): Likewise.
12014         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12015         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12016         * modules/unicase/u32-casefold-tests (Files): Likewise.
12017         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12018         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12019         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12020         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12021         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12022         * modules/unicase/u32-tolower-tests (Files): Likewise.
12023         * modules/unicase/u32-totitle-tests (Files): Likewise.
12024         * modules/unicase/u32-toupper-tests (Files): Likewise.
12025         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12026         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12027         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12028         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12029         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12030         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12031         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12032         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12033         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12034         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12035         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12036         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12037         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12038         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12039         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12040         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12041         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12042         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12043         * modules/unictype/block-list-tests (Files): Likewise.
12044         * modules/unictype/block-of-tests (Files): Likewise.
12045         * modules/unictype/block-test-tests (Files): Likewise.
12046         * modules/unictype/category-C-tests (Files): Likewise.
12047         * modules/unictype/category-Cc-tests (Files): Likewise.
12048         * modules/unictype/category-Cf-tests (Files): Likewise.
12049         * modules/unictype/category-Cn-tests (Files): Likewise.
12050         * modules/unictype/category-Co-tests (Files): Likewise.
12051         * modules/unictype/category-Cs-tests (Files): Likewise.
12052         * modules/unictype/category-L-tests (Files): Likewise.
12053         * modules/unictype/category-Ll-tests (Files): Likewise.
12054         * modules/unictype/category-Lm-tests (Files): Likewise.
12055         * modules/unictype/category-Lo-tests (Files): Likewise.
12056         * modules/unictype/category-Lt-tests (Files): Likewise.
12057         * modules/unictype/category-Lu-tests (Files): Likewise.
12058         * modules/unictype/category-M-tests (Files): Likewise.
12059         * modules/unictype/category-Mc-tests (Files): Likewise.
12060         * modules/unictype/category-Me-tests (Files): Likewise.
12061         * modules/unictype/category-Mn-tests (Files): Likewise.
12062         * modules/unictype/category-N-tests (Files): Likewise.
12063         * modules/unictype/category-Nd-tests (Files): Likewise.
12064         * modules/unictype/category-Nl-tests (Files): Likewise.
12065         * modules/unictype/category-No-tests (Files): Likewise.
12066         * modules/unictype/category-P-tests (Files): Likewise.
12067         * modules/unictype/category-Pc-tests (Files): Likewise.
12068         * modules/unictype/category-Pd-tests (Files): Likewise.
12069         * modules/unictype/category-Pe-tests (Files): Likewise.
12070         * modules/unictype/category-Pf-tests (Files): Likewise.
12071         * modules/unictype/category-Pi-tests (Files): Likewise.
12072         * modules/unictype/category-Po-tests (Files): Likewise.
12073         * modules/unictype/category-Ps-tests (Files): Likewise.
12074         * modules/unictype/category-S-tests (Files): Likewise.
12075         * modules/unictype/category-Sc-tests (Files): Likewise.
12076         * modules/unictype/category-Sk-tests (Files): Likewise.
12077         * modules/unictype/category-Sm-tests (Files): Likewise.
12078         * modules/unictype/category-So-tests (Files): Likewise.
12079         * modules/unictype/category-Z-tests (Files): Likewise.
12080         * modules/unictype/category-Zl-tests (Files): Likewise.
12081         * modules/unictype/category-Zp-tests (Files): Likewise.
12082         * modules/unictype/category-Zs-tests (Files): Likewise.
12083         * modules/unictype/category-and-not-tests (Files): Likewise.
12084         * modules/unictype/category-and-tests (Files): Likewise.
12085         * modules/unictype/category-byname-tests (Files): Likewise.
12086         * modules/unictype/category-name-tests (Files): Likewise.
12087         * modules/unictype/category-none-tests (Files): Likewise.
12088         * modules/unictype/category-of-tests (Files): Likewise.
12089         * modules/unictype/category-or-tests (Files): Likewise.
12090         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12091         * modules/unictype/combining-class-tests (Files): Likewise.
12092         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12093         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12094         * modules/unictype/ctype-blank-tests (Files): Likewise.
12095         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12096         * modules/unictype/ctype-digit-tests (Files): Likewise.
12097         * modules/unictype/ctype-graph-tests (Files): Likewise.
12098         * modules/unictype/ctype-lower-tests (Files): Likewise.
12099         * modules/unictype/ctype-print-tests (Files): Likewise.
12100         * modules/unictype/ctype-punct-tests (Files): Likewise.
12101         * modules/unictype/ctype-space-tests (Files): Likewise.
12102         * modules/unictype/ctype-upper-tests (Files): Likewise.
12103         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12104         * modules/unictype/decimal-digit-tests (Files): Likewise.
12105         * modules/unictype/digit-tests (Files): Likewise.
12106         * modules/unictype/mirror-tests (Files): Likewise.
12107         * modules/unictype/numeric-tests (Files): Likewise.
12108         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12109         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12110         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12111         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12112         Likewise.
12113         * modules/unictype/property-bidi-block-separator-tests (Files):
12114         Likewise.
12115         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12116         Likewise.
12117         * modules/unictype/property-bidi-common-separator-tests (Files):
12118         Likewise.
12119         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12120         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12121         Likewise.
12122         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12123         Likewise.
12124         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12125         Likewise.
12126         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12127         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12128         Likewise.
12129         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12130         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12131         Likewise.
12132         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12133         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12134         * modules/unictype/property-bidi-segment-separator-tests (Files):
12135         Likewise.
12136         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12137         * modules/unictype/property-byname-tests (Files): Likewise.
12138         * modules/unictype/property-combining-tests (Files): Likewise.
12139         * modules/unictype/property-composite-tests (Files): Likewise.
12140         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12141         * modules/unictype/property-dash-tests (Files): Likewise.
12142         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12143         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12144         Likewise.
12145         * modules/unictype/property-deprecated-tests (Files): Likewise.
12146         * modules/unictype/property-diacritic-tests (Files): Likewise.
12147         * modules/unictype/property-extender-tests (Files): Likewise.
12148         * modules/unictype/property-format-control-tests (Files): Likewise.
12149         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12150         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12151         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12152         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12153         * modules/unictype/property-hyphen-tests (Files): Likewise.
12154         * modules/unictype/property-id-continue-tests (Files): Likewise.
12155         * modules/unictype/property-id-start-tests (Files): Likewise.
12156         * modules/unictype/property-ideographic-tests (Files): Likewise.
12157         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12158         * modules/unictype/property-ids-trinary-operator-tests (Files):
12159         Likewise.
12160         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12161         * modules/unictype/property-iso-control-tests (Files): Likewise.
12162         * modules/unictype/property-join-control-tests (Files): Likewise.
12163         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12164         * modules/unictype/property-line-separator-tests (Files): Likewise.
12165         * modules/unictype/property-logical-order-exception-tests (Files):
12166         Likewise.
12167         * modules/unictype/property-lowercase-tests (Files): Likewise.
12168         * modules/unictype/property-math-tests (Files): Likewise.
12169         * modules/unictype/property-non-break-tests (Files): Likewise.
12170         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12171         * modules/unictype/property-numeric-tests (Files): Likewise.
12172         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12173         * modules/unictype/property-other-default-ignorable-code-point-tests
12174         (Files): Likewise.
12175         * modules/unictype/property-other-grapheme-extend-tests (Files):
12176         Likewise.
12177         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12178         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12179         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12180         * modules/unictype/property-other-math-tests (Files): Likewise.
12181         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12182         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12183         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12184         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12185         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12186         * modules/unictype/property-private-use-tests (Files): Likewise.
12187         * modules/unictype/property-punctuation-tests (Files): Likewise.
12188         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12189         * modules/unictype/property-radical-tests (Files): Likewise.
12190         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12191         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12192         * modules/unictype/property-space-tests (Files): Likewise.
12193         * modules/unictype/property-terminal-punctuation-tests (Files):
12194         Likewise.
12195         * modules/unictype/property-test-tests (Files): Likewise.
12196         * modules/unictype/property-titlecase-tests (Files): Likewise.
12197         * modules/unictype/property-unassigned-code-value-tests (Files):
12198         Likewise.
12199         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12200         * modules/unictype/property-uppercase-tests (Files): Likewise.
12201         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12202         * modules/unictype/property-white-space-tests (Files): Likewise.
12203         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12204         * modules/unictype/property-xid-start-tests (Files): Likewise.
12205         * modules/unictype/property-zero-width-tests (Files): Likewise.
12206         * modules/unictype/scripts-tests (Files): Likewise.
12207         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12208         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12209         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12210         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12211         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12212         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12213         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12214         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12215         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12216         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12217         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12218         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12219         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12220         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12221         * modules/uninorm/composition-tests (Files): Likewise.
12222         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12223         * modules/uninorm/decomposition-tests (Files): Likewise.
12224         * modules/uninorm/filter-tests (Files): Likewise.
12225         * modules/uninorm/nfc-tests (Files): Likewise.
12226         * modules/uninorm/nfd-tests (Files): Likewise.
12227         * modules/uninorm/nfkc-tests (Files): Likewise.
12228         * modules/uninorm/nfkd-tests (Files): Likewise.
12229         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12230         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12231         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12232         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12233         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12234         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12235         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12236         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12237         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12238         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12239         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12240         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12241         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12242         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12243         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12244         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12245         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12246         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12247         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12248         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12249         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12250         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12251         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12252         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12253         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12254         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12255         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12256         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12257         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12258         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12259         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12260         * modules/uniwidth/u8-width-tests (Files): Likewise.
12261         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12262         * modules/uniwidth/u16-width-tests (Files): Likewise.
12263         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12264         * modules/uniwidth/u32-width-tests (Files): Likewise.
12265         * modules/uniwidth/width-tests (Files): Likewise.
12266         * modules/unlink-tests (Files): Likewise.
12267         * modules/unsetenv-tests (Files): Likewise.
12268         * modules/usleep-tests (Files): Likewise.
12269         * modules/utimens-tests (Files): Likewise.
12270         * modules/utimensat-tests (Files): Likewise.
12271         * modules/vasnprintf-posix-tests (Files): Likewise.
12272         * modules/vasnprintf-tests (Files): Likewise.
12273         * modules/vasprintf-posix-tests (Files): Likewise.
12274         * modules/vasprintf-tests (Files): Likewise.
12275         * modules/vdprintf-posix-tests (Files): Likewise.
12276         * modules/vfprintf-posix-tests (Files): Likewise.
12277         * modules/vprintf-posix-tests (Files): Likewise.
12278         * modules/vsnprintf-posix-tests (Files): Likewise.
12279         * modules/vsnprintf-tests (Files): Likewise.
12280         * modules/vsprintf-posix-tests (Files): Likewise.
12281         * modules/wcrtomb-tests (Files): Likewise.
12282         * modules/wcsnrtombs-tests (Files): Likewise.
12283         * modules/wcsrtombs-tests (Files): Likewise.
12284         * modules/wctype-tests (Files): Likewise.
12285         * modules/wcwidth-tests (Files): Likewise.
12286         * modules/xmemdup0-tests (Files): Likewise.
12287         * modules/xprintf-posix-tests (Files): Likewise.
12288         * modules/xvasprintf-tests (Files): Likewise.
12289
12290 2009-12-24  Eric Blake  <ebb9@byu.net>
12291
12292         test-nanosleep: fix typo
12293         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12294         patch.
12295         Reported by Bruno Haible.
12296
12297 2009-12-24  Bruno Haible  <bruno@clisp.org>
12298
12299         Reduce namespace pollution on glibc systems.
12300         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12301         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12302         systems.
12303         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12304         <getopt.h> on glibc systems.
12305         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12306         systems.
12307         * lib/fcntl.c: Include <unistd.h> here instead.
12308
12309 2009-12-24  Bruno Haible  <bruno@clisp.org>
12310
12311         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12312
12313 2009-12-24  Eric Blake  <ebb9@byu.net>
12314
12315         tests: add signature checks
12316         * tests/signature.h (SIGNATURE_CHECK): New file.
12317         * modules/atexit-tests (Files): Use it.
12318         * modules/btowc-tests (Files): Likewise.
12319         * modules/canonicalize-lgpl-tests (Files): Likewise.
12320         * modules/ceilf-tests (Files): Likewise.
12321         * modules/ceill-tests (Files): Likewise.
12322         * modules/chown-tests (Files): Likewise.
12323         * modules/dprintf-posix-tests (Files): Likewise.
12324         * modules/dup2-tests (Files): Likewise.
12325         * modules/dup3-tests (Files): Likewise.
12326         * modules/duplocale-tests (Files): Likewise.
12327         * modules/fchdir-tests (Files): Likewise.
12328         * modules/fcntl-tests (Files): Likewise.
12329         * modules/fdopendir-tests (Files): Likewise.
12330         * modules/fflush-tests (Files): Likewise.
12331         * modules/flock-tests (Files): Likewise.
12332         * modules/floorf-tests (Files): Likewise.
12333         * modules/floorl-tests (Files): Likewise.
12334         * modules/fnmatch-tests (Files): Likewise.
12335         * modules/fopen-tests (Files): Likewise.
12336         * modules/fprintf-posix-tests (Files): Likewise.
12337         * modules/freopen-tests (Files): Likewise.
12338         * modules/frexp-nolibm-tests (Files): Likewise.
12339         * modules/frexp-tests (Files): Likewise.
12340         * modules/frexpl-nolibm-tests (Files): Likewise.
12341         * modules/frexpl-tests (Files): Likewise.
12342         * modules/fseek-tests (Files): Likewise.
12343         * modules/fseeko-tests (Files): Likewise.
12344         * modules/fsync-tests (Files): Likewise.
12345         * modules/ftell-tests (Files): Likewise.
12346         * modules/ftello-tests (Files): Likewise.
12347         * modules/futimens-tests (Files): Likewise.
12348         * modules/getaddrinfo-tests (Files): Likewise.
12349         * modules/getcwd-tests (Files): Likewise.
12350         * modules/getdelim-tests (Files): Likewise.
12351         * modules/getdtablesize-tests (Files): Likewise.
12352         * modules/getgroups-tests (Files): Likewise.
12353         * modules/gethostname-tests (Files): Likewise.
12354         * modules/getline-tests (Files): Likewise.
12355         * modules/getopt-posix-tests (Files): Likewise.
12356         * modules/gettimeofday-tests (Files): Likewise.
12357         * modules/glob-tests (Files): Likewise.
12358         * modules/iconv-tests (Files): Likewise.
12359         * modules/inet_ntop-tests (Files): Likewise.
12360         * modules/inet_pton-tests (Files): Likewise.
12361         * modules/isblank-tests (Files): Likewise.
12362         * modules/lchown-tests (Files): Likewise.
12363         * modules/ldexpl-tests (Files): Likewise.
12364         * modules/link-tests (Files): Likewise.
12365         * modules/linkat-tests (Files): Likewise.
12366         * modules/lseek-tests (Files): Likewise.
12367         * modules/lstat-tests (Files): Likewise.
12368         * modules/mbrtowc-tests (Files): Likewise.
12369         * modules/mbsinit-tests (Files): Likewise.
12370         * modules/mbsnrtowcs-tests (Files): Likewise.
12371         * modules/mbsrtowcs-tests (Files): Likewise.
12372         * modules/memchr-tests (Files): Likewise.
12373         * modules/memcmp-tests (Files): Likewise.
12374         * modules/memmem-tests (Files): Likewise.
12375         * modules/memrchr-tests (Files): Likewise.
12376         * modules/mkdir-tests (Files): Likewise.
12377         * modules/mkfifo-tests (Files): Likewise.
12378         * modules/mkfifoat-tests (Files): Likewise.
12379         * modules/mknod-tests (Files): Likewise.
12380         * modules/nanosleep-tests (Files): Likewise.
12381         * modules/nl_langinfo-tests (Files): Likewise.
12382         * modules/obstack-printf-tests (Files): Likewise.
12383         * modules/open-tests (Files): Likewise.
12384         * modules/openat-tests (Files): Likewise.
12385         * modules/perror-tests (Files): Likewise.
12386         * modules/pipe2-tests (Files): Likewise.
12387         * modules/poll-tests (Files): Likewise.
12388         * modules/popen-tests (Files): Likewise.
12389         * modules/posix_spawn-tests (Files): Likewise.
12390         * modules/posix_spawnp-tests (Files): Likewise.
12391         * modules/pread-tests (Files): Likewise.
12392         * modules/printf-posix-tests (Files): Likewise.
12393         * modules/pty-tests (Files): Likewise.
12394         * modules/random_r-tests (Files): Likewise.
12395         * modules/rawmemchr-tests (Files): Likewise.
12396         * modules/readlink-tests (Files): Likewise.
12397         * modules/remove-tests (Files): Likewise.
12398         * modules/rename-tests (Files): Likewise.
12399         * modules/renameat-tests (Files): Likewise.
12400         * modules/rmdir-tests (Files): Likewise.
12401         * modules/round-tests (Files): Likewise.
12402         * modules/roundf-tests (Files): Likewise.
12403         * modules/roundl-tests (Files): Likewise.
12404         * modules/select-tests (Files): Likewise.
12405         * modules/setenv-tests (Files): Likewise.
12406         * modules/sigaction-tests (Files): Likewise.
12407         * modules/sleep-tests (Files): Likewise.
12408         * modules/snprintf-posix-tests (Files): Likewise.
12409         * modules/snprintf-tests (Files): Likewise.
12410         * modules/sprintf-posix-tests (Files): Likewise.
12411         * modules/stat-tests (Files): Likewise.
12412         * modules/strcasestr-tests (Files): Likewise.
12413         * modules/strchrnul-tests (Files): Likewise.
12414         * modules/strerror-tests (Files): Likewise.
12415         * modules/strsignal-tests (Files): Likewise.
12416         * modules/strstr-tests (Files): Likewise.
12417         * modules/strtod-tests (Files): Likewise.
12418         * modules/strverscmp-tests (Files): Likewise.
12419         * modules/symlink-tests (Files): Likewise.
12420         * modules/symlinkat-tests (Files): Likewise.
12421         * modules/times-tests (Files): Likewise.
12422         * modules/trunc-tests (Files): Likewise.
12423         * modules/truncf-tests (Files): Likewise.
12424         * modules/truncl-tests (Files): Likewise.
12425         * modules/tsearch-tests (Files): Likewise.
12426         * modules/uname-tests (Files): Likewise.
12427         * modules/unlink-tests (Files): Likewise.
12428         * modules/unsetenv-tests (Files): Likewise.
12429         * modules/usleep-tests (Files): Likewise.
12430         * modules/utimensat-tests (Files): Likewise.
12431         * modules/vasprintf-tests (Files): Likewise.
12432         * modules/vdprintf-posix-tests (Files): Likewise.
12433         * modules/vfprintf-posix-tests (Files): Likewise.
12434         * modules/vprintf-posix-tests (Files): Likewise.
12435         * modules/vsnprintf-posix-tests (Files): Likewise.
12436         * modules/vsnprintf-tests (Files): Likewise.
12437         * modules/vsprintf-posix-tests (Files): Likewise.
12438         * modules/wcrtomb-tests (Files): Likewise.
12439         * modules/wcsnrtombs-tests (Files): Likewise.
12440         * modules/wcsrtombs-tests (Files): Likewise.
12441         * modules/wcwidth-tests (Files): Likewise.
12442         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12443         * tests/test-isinf.c (isinf): Likewise.
12444         * tests/test-isnan.c (isnan): Likewise.
12445         * tests/test-signbit.c (signbit): Likewise.
12446         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12447         declaration, either as macro or with correct signature.
12448         (select): Ensure function under test is declared with correct
12449         signature in correct header.
12450         * tests/test-atexit.c (atexit): Likewise.
12451         * tests/test-btowc.c (btowc): Likewise.
12452         * tests/test-canonicalize-lgpl.c (realpath)
12453         (canonicalize_file_name): Likewise.
12454         * tests/test-ceilf1.c (ceilf): Likewise.
12455         * tests/test-ceill.c (ceill): Likewise.
12456         * tests/test-chown.c (chown): Likewise.
12457         * tests/test-dprintf-posix.c (dprintf): Likewise.
12458         * tests/test-dup2.c (dup2): Likewise.
12459         * tests/test-dup3.c (dup3): Likewise.
12460         * tests/test-duplocale.c (duplocale): Likewise.
12461         * tests/test-fchdir.c (fchdir): Likewise.
12462         * tests/test-fchownat.c (fchownat): Likewise.
12463         * tests/test-fcntl.c (fcntl): Likewise.
12464         * tests/test-fdopendir.c (fdopendir): Likewise.
12465         * tests/test-fflush.c (fflush): Likewise.
12466         * tests/test-flock.c (flock): Likewise.
12467         * tests/test-floorf1.c (floorf): Likewise.
12468         * tests/test-floorl.c (floorl): Likewise.
12469         * tests/test-fnmatch.c (fnmatch): Likewise.
12470         * tests/test-fopen.c (fopen): Likewise.
12471         * tests/test-fprintf-posix.c (fprintf): Likewise.
12472         * tests/test-freopen.c (freopen): Likewise.
12473         * tests/test-frexp.c (frexp): Likewise.
12474         * tests/test-frexpl.c (frexpl): Likewise.
12475         * tests/test-fseek.c (fseek): Likewise.
12476         * tests/test-fseeko.c (fseeko): Likewise.
12477         * tests/test-fstatat.c (fstatat): Likewise.
12478         * tests/test-fsync.c (fsync): Likewise.
12479         * tests/test-ftell.c (ftell): Likewise.
12480         * tests/test-ftello.c (ftello): Likewise.
12481         * tests/test-futimens.c (futimens): Likewise.
12482         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12483         (gai_strerror): Likewise.
12484         * tests/test-getcwd.c (getcwd): Likewise.
12485         * tests/test-getdelim.c (getdelim): Likewise.
12486         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12487         * tests/test-getgroups.c (getgroups): Likewise.
12488         * tests/test-gethostname.c (gethostname): Likewise.
12489         * tests/test-getline.c (getline): Likewise.
12490         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12491         Likewise.
12492         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12493         * tests/test-glob.c (glob, globfree): Likewise.
12494         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12495         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12496         * tests/test-inet_pton.c (inet_pton): Likewise.
12497         * tests/test-isblank.c (isblank): Likewise.
12498         * tests/test-lchown.c (lchown): Likewise.
12499         * tests/test-ldexpl.c (ldexpl): Likewise.
12500         * tests/test-link.c (link): Likewise.
12501         * tests/test-linkat.c (linkat): Likewise.
12502         * tests/test-lseek.c (lseek): Likewise.
12503         * tests/test-lstat.c (lstat): Likewise.
12504         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12505         * tests/test-mbsinit.c (mbsinit): Likewise.
12506         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12507         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12508         * tests/test-memchr.c (memchr): Likewise.
12509         * tests/test-memcmp.c (memcmp): Likewise.
12510         * tests/test-memmem.c (memmem): Likewise.
12511         * tests/test-memrchr.c (memrchr): Likewise.
12512         * tests/test-mkdir.c (mkdir): Likewise.
12513         * tests/test-mkdirat.c (mkdirat): Likewise.
12514         * tests/test-mkfifo.c (mkfifo): Likewise.
12515         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12516         * tests/test-mknod.c (mknod): Likewise.
12517         * tests/test-nanosleep.c (nanosleep): Likewise.
12518         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12519         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12520         Likewise.
12521         * tests/test-open.c (open): Likewise.
12522         * tests/test-openat.c (openat): Likewise.
12523         * tests/test-perror.c (perror): Likewise.
12524         * tests/test-pipe2.c (pipe2): Likewise.
12525         * tests/test-poll.c (poll): Likewise.
12526         * tests/test-popen.c (popen, pclose): Likewise.
12527         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12528         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12529         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12530         (posix_spawn_file_actions_destroy)
12531         (posix_spawn_file_actions_addclose)
12532         (posix_spawn_file_actions_addopen)
12533         (posix_spawn_file_actions_adddup2): Likewise.
12534         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12535         * tests/test-pread.c (pread): Likewise.
12536         * tests/test-printf-posix.c (printf): Likewise.
12537         * tests/test-pty.c (openpty, forkpty): Likewise.
12538         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12539         (random_r): Likewise.
12540         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12541         * tests/test-readlink.c (readlink): Likewise.
12542         * tests/test-remove.c (remove): Likewise.
12543         * tests/test-rename.c (rename): Likewise.
12544         * tests/test-renameat.c (renameat): Likewise.
12545         * tests/test-rmdir.c (rmdir): Likewise.
12546         * tests/test-round1.c (round): Likewise.
12547         * tests/test-roundf1.c (roundf): Likewise.
12548         * tests/test-roundl.c (roundl): Likewise.
12549         * tests/test-setenv.c (setenv): Likewise.
12550         * tests/test-sigaction.c (sigaction): Likewise.
12551         * tests/test-sleep.c (sleep): Likewise.
12552         * tests/test-snprintf.c (snprintf): Likewise.
12553         * tests/test-sprintf-posix.c (sprintf): Likewise.
12554         * tests/test-stat.c (stat): Likewise.
12555         * tests/test-stpncpy.c (stpncpy): Likewise.
12556         * tests/test-strcasestr.c (strcasestr): Likewise.
12557         * tests/test-strchrnul.c (strchrnul): Likewise.
12558         * tests/test-strerror.c (strerror): Likewise.
12559         * tests/test-strsignal.c (strsignal): Likewise.
12560         * tests/test-strstr.c (strstr): Likewise.
12561         * tests/test-strtod.c (strtod): Likewise.
12562         * tests/test-strverscmp.c (strverscmp): Likewise.
12563         * tests/test-symlink.c (symlink): Likewise.
12564         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12565         * tests/test-times.c (times): Likewise.
12566         * tests/test-trunc1.c (trunc): Likewise.
12567         * tests/test-truncf1.c (truncf): Likewise.
12568         * tests/test-truncl.c (truncl): Likewise.
12569         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12570         Likewise.
12571         * tests/test-uname.c (uname): Likewise.
12572         * tests/test-unlink.c (unlink): Likewise.
12573         * tests/test-unlinkat.c (unlinkat): Likewise.
12574         * tests/test-unsetenv.c (unsetenv): Likewise.
12575         * tests/test-usleep.c (usleep): Likewise.
12576         * tests/test-utimensat.c (utimensat): Likewise.
12577         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12578         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12579         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12580         * tests/test-vprintf-posix.c (vprintf): Likewise.
12581         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12582         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12583         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12584         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12585         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12586         * tests/test-wcwidth.c (wcwidth): Likewise.
12587
12588         build: pull in conditional headers during GNULIB_POSIXCHECK
12589         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12590         definitions from any conditionally-included headers.
12591         * lib/stdlib.in.h (includes): Likewise.
12592         * lib/unistd.in.h (includes): Likewise.
12593
12594 2009-12-24  Bruno Haible  <bruno@clisp.org>
12595
12596         * tests/test-argv-iter.c: Include header file being tested immediately
12597         after config.h.
12598         * tests/test-base64.c: Likewise.
12599         * tests/test-flock.c: Likewise.
12600         * tests/test-fsync.c: Likewise.
12601         * tests/test-getdate.c: Likewise.
12602         * tests/test-getndelim2.c: Likewise.
12603         * tests/test-isfinite.c: Likewise.
12604         * tests/test-isinf.c: Likewise.
12605         * tests/test-strerror.c: Likewise.
12606         * tests/test-strsignal.c: Likewise.
12607
12608 2009-12-23  Eric Blake  <ebb9@byu.net>
12609
12610         unistd: work around cygwin bug
12611         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12612         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12613         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12614
12615 2009-12-23  Bruno Haible  <bruno@clisp.org>
12616
12617         localename: More tests.
12618         * tests/test-localename.c (SIZEOF): New macro.
12619         (categories): New variable.
12620         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12621         test_locale_name_default): Add test w.r.t. thread locale.
12622         (test_locale_name_thread): New function.
12623         (main): Invoke it.
12624
12625         localename: Make aware of thread locale.
12626         * lib/localename.h (gl_locale_name_thread): New declaration.
12627         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12628         behaviour with respect to thread locale.
12629         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12630         <langinfo.h>, glthread/lock.h.
12631         (SIZE_BITS): New macro.
12632         (string_hash): New function.
12633         (struct hash_node): New type.
12634         (HASH_TABLE_SIZE): New macro.
12635         (struniq_hash_table, struniq_lock): New variables.
12636         (struniq): New function.
12637         (gl_locale_name_thread): New function.
12638         (gl_locale_name): Invoke it.
12639         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12640         * modules/localename (Depends-on): Add lock.
12641         Reported by Mike Gran <spk121@yahoo.com>.
12642
12643 2009-12-23  Eric Blake  <ebb9@byu.net>
12644
12645         va-args: new module
12646         * modules/va-args: New file.
12647         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12648         * MODULES.html.sh (Core language properties): Mention it.
12649
12650         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12651         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12652         named alias for __attribute__((__unused__)).
12653         * lib/chown.c: Update client.
12654         * lib/fchmodat.c: Likewise.
12655         * lib/fts.c: Likewise.
12656         * lib/getdate.y: Likewise.
12657         * lib/getgroups.c: Likewise.
12658         * lib/getopt.c: Likewise.
12659         * lib/getugroups.c: Likewise.
12660         * lib/mkdir.c: Likewise.
12661         * lib/mkfifo.c: Likewise.
12662         * lib/mkfifoat.c: Likewise.
12663         * lib/mknod.c: Likewise.
12664         * lib/mknodat.c: Likewise.
12665         * lib/readlink.c: Likewise.
12666         * lib/se-context.in.h: Likewise.
12667         * lib/se-selinux.in.h: Likewise.
12668         * lib/sockets.c: Likewise.
12669         * lib/symlink.c: Likewise.
12670         * lib/symlinkat.c: Likewise.
12671         * lib/unicodeio.c: Likewise.
12672         * lib/unistr.h: Likewise.
12673         * tests/test-areadlink.c: Likewise.
12674         * tests/test-areadlinkat.c: Likewise.
12675         * tests/test-filenamecat.c: Likewise.
12676         * tests/test-fseeko.c: Likewise.
12677         * tests/test-ftello.c: Likewise.
12678         * tests/test-getdate.c: Likewise.
12679         * tests/test-getgroups.c: Likewise.
12680         * tests/test-gethostname.c: Likewise.
12681         * tests/test-quotearg.c: Likewise.
12682         * tests/test-version-etc.c: Likewise.
12683         * tests/test-xalloc-die.c: Likewise.
12684         * tests/test-xfprintf-posix.c: Likewise.
12685         * tests/test-xprintf-posix.c: Likewise.
12686         * tests/test-xvasprintf.c: Likewise.
12687
12688         tests: avoid compiler warnings
12689         * tests/test-fcntl.c (main): Delete unused parameters.
12690         * tests/test-freopen-safer.c (main): Likewise.
12691         * tests/test-xalloc-die.c (main): Mark unused parameters.
12692         * tests/test-fseeko.c (main): Likewise.
12693         * tests/test-ftello.c (main): Likewise.
12694         * tests/test-nanosleep.c (main): Avoid declaration warning.
12695         * tests/test-sleep.c (main): Likewise.
12696         * tests/test-unsetenv.c (main): Silence warning about string
12697         literal.
12698         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12699
12700 2009-12-23  Bruno Haible  <bruno@clisp.org>
12701
12702         * tests/test-localename.c (test_locale_name): New function, extracted
12703         from main. Also test mixed situations.
12704         (test_locale_name_posix, test_locale_name_environ,
12705         test_locale_name_default): New functions.
12706         (main): Invoke them all.
12707         * modules/localename-tests (configure.ac): Test for newlocale.
12708
12709 2009-12-23  Bruno Haible  <bruno@clisp.org>
12710
12711         unistd: Ensure getcwd gets declared before being overridden.
12712         * lib/unistd.in.h: Conditionally include <io.h>.
12713
12714 2009-12-22  Bruno Haible  <bruno@clisp.org>
12715
12716         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12717         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12718         (gl_WCHAR_H): Invoke it.
12719         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12720         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12721         Reported by Karl Berry <karl@freefriends.org>.
12722
12723 2009-12-22  Eric Blake  <ebb9@byu.net>
12724
12725         math, unistd: avoid redundant includes
12726         * lib/math.in.h (isnan): No need to re-include <math.h>.
12727         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12728
12729         getsubopt: work around cygwin bug
12730         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12731         avoid conflicting with system getsubopt.
12732         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12733         bug.
12734
12735         getopt: synchronize from glibc
12736         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12737         parameter order.  Adjust all callers.
12738         (_getopt_internal_r, main): Adjust quoting in error messages.
12739         Drop considerations for outdated POSIX 1003.2 error message.
12740         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12741         callers.
12742         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12743
12744         test-getopt: test stderr behavior
12745         * modules/getopt-posix-tests (Depends-on): Add dup2.
12746         * tests/test-getopt.c (ASSERT): Avoid stderr.
12747         (main): Move stderr to a temporary file.
12748         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12749         Instead, add parameter to inform caller if output occurred.
12750         (test_getopt): Adjust all existing tests to expect silence, and
12751         add new tests of leading ":".
12752         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12753         glibc shortcomings with leading "-:" or "+:" in optstring.
12754         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12755         Likewise.
12756         * doc/posix-functions/getopt.texi (getopt): Likewise.
12757
12758         test-getopt: enhance test
12759         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12760         supports optind=0.
12761         * tests/test-getopt.c (OPTIND_MIN): Move...
12762         * tests/test-getopt.h (OPTIND_MIN): ...here.
12763         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12764         Require that optind=0 works, since modern BSD supports it in
12765         addition to optreset, and since coreutils expects it.
12766         (test_getopt_long_only): New test.
12767         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12768         glibc shortcomings with 'W;', and enforcement of optind=0.
12769         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12770         Likewise.
12771
12772 2009-12-21  Bruno Haible  <bruno@clisp.org>
12773
12774         localename: Improvements for MacOS X and Cygwin.
12775         * lib/localename.h (gl_locale_name_environ): New declaration.
12776         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12777         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12778         (gl_locale_name_posix): Invoke it.
12779         (gl_locale_name_default): Add comments. Use Windows native API also on
12780         Cygwin.
12781
12782 2009-12-21  Bruno Haible  <bruno@clisp.org>
12783
12784         Update list of Win32 locale ids.
12785         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12786         (LANG_SAMI): Renamed from LANG_SAAMI.
12787         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12788         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12789         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12790         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12791         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12792         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12793         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12794         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12795         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12796         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12797         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12798         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12799         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12800         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12801         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12802         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12803         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12804         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12805         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12806         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12807         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12808         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12809         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12810         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12811         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12812         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12813         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12814         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12815         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12816         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12817         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12818         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12819         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12820         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12821         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12822         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12823         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12824         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12825         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12826         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12827         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12828         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12829         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12830         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12831         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12832         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12833         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12834         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12835         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12836         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12837         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12838         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12839         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12840         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12841         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12842         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12843         Add more languages and countries for Sami, Sorbian. Add more countries
12844         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12845         for Pashto. Change country for Syriac, Tswana.
12846
12847 2009-12-21  Eric Blake  <ebb9@byu.net>
12848
12849         test-utimens: avoid spurious failure
12850         * tests/test-chown.h (nap): Factor...
12851         * tests/nap.h: ...into new file.
12852         * tests/test-lchown.h (nap): Avoid duplication.
12853         * tests/test-utimens-common.h (nap): Use shared implementation,
12854         necessary on file systems with 1-second resolution.
12855         * modules/chown-tests (Files): Include new file.
12856         * modules/fdutimensat-tests (Files): Likewise.
12857         * modules/futimens-tests (Files): Likewise.
12858         * modules/lchown-tests (Files): Likewise.
12859         * modules/openat-tests (Files): Likewise.
12860         * modules/utimens-tests (Files): Likewise.
12861         * modules/utimensat-tests (Files): Likewise.
12862
12863 2009-12-19  Eric Blake  <ebb9@byu.net>
12864
12865         futimens, utimensat: work around Linux bug
12866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12867         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12868         * lib/utimensat.c (rpl_utimensat): Work around it.
12869         * lib/futimens.c (rpl_futimens): Adjust comment.
12870
12871         utimens: work around Linux ctime bug
12872         * lib/utimens.c (detect_ctime_bug): New helper function.
12873         (update_timespec): Differentiate between workaround needed for
12874         this bug vs. what is needed for systems that lack utimensat.
12875         (fdutimens, lutimens): Work around bug.
12876
12877         utimens: check for ctime update
12878         * tests/test-utimens-common.h (check_ctime): Define.
12879         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12880         * tests/test-futimens.h (test_futimens): Likewise.
12881         * tests/test-lutimens.h (test_lutimens): Likewise.
12882         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12883         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12884
12885 2009-12-19  Bruno Haible  <bruno@clisp.org>
12886
12887         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12888         * tests/test-dprintf-posix2.sh: New file.
12889         * tests/test-dprintf-posix2.c: New file.
12890         * modules/dprintf-posix-tests (Files): Add them.
12891         (configure.ac): Check for getrlimit and setrlimit.
12892         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12893
12894 2009-12-19  Bruno Haible  <bruno@clisp.org>
12895
12896         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12897         * tests/test-fprintf-posix3.sh: New file.
12898         * tests/test-fprintf-posix3.c: New file.
12899         * modules/fprintf-posix-tests (Files): Add them.
12900         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12901
12902 2009-12-19  Eric Blake  <ebb9@byu.net>
12903
12904         dirfd: fix prototype
12905         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12906         * lib/dirfd.c (dirfd): Likewise.
12907
12908         canonicalize: reduce memory usage
12909         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12910         allocation to size.
12911         Reported by Solar Designer <solar@openwall.com>.
12912
12913 2009-12-19  Bruno Haible  <bruno@clisp.org>
12914
12915         New module attribute 'Applicability'.
12916         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12917         * gnulib-tool: New option --extract-applicability.
12918         (func_usage): Document it.
12919         (sed_extract_prog): Recognize it.
12920         (func_get_applicability): New function.
12921         (func_import): Generalize handling of 'link-warning' module.
12922         * modules/link-warning (Applicability): New section.
12923         * modules/arg-nonnull (Applicability): New section.
12924         Repoted by Simon Josefsson <simon@josefsson.org>.
12925
12926 2009-12-19  Bruno Haible  <bruno@clisp.org>
12927
12928         fflush: tweak
12929         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12930         * lib/fseeko.c (rpl_fseeko): Likewise.
12931
12932 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12933
12934         * lib/gl_list.h: Fix typo in comment.
12935
12936 2009-12-16  Eric Blake  <ebb9@byu.net>
12937
12938         fcntl: use to simplify other modules
12939         * modules/cloexec (Depends-on): Add fcntl.
12940         * modules/fchdir (Depends-on): Likewise.
12941         * modules/fd-safer-flag (Depends-on): Likewise.
12942         * modules/unistd-safer (Depends-on): Likewise.
12943         * modules/dup3 (configure.ac): Set module indicator.
12944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
12945         missing.
12946         * lib/fchdir.c (_gl_register_dup): Fix comment.
12947         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
12948         * lib/dup-safer.c (dup_safer): Likewise.
12949         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
12950         * lib/dup3.c (dup3): Likewise.
12951         * tests/test-fchdir.c (main): Enhance test.
12952         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
12953
12954         fcntl: port portions of fcntl to mingw
12955         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
12956         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
12957         replacement for mingw.
12958         * modules/fcntl (Description): Update.
12959         (Depends-on): Add dup2.
12960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
12961         * modules/fcntl-h (Makefile.am): Substitute it.
12962         * lib/fcntl.in.h (fcntl): Update declaration.
12963         (F_DUPFD, F_GETFD): New macros, when needed.
12964         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12965         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
12966         * tests/test-fcntl.c (check_flags, main): Enhance test for items
12967         we now guarantee.
12968
12969         fcntl: work around cygwin bug in F_DUPFD
12970         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
12971         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
12972         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
12973         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
12974         * doc/posix-functions/fcntl.texi (fcntl): Document it.
12975
12976         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
12977         * modules/fcntl (Files): List new files.
12978         (configure.ac): Run a test.
12979         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
12980         * lib/fcntl.c (rpl_fcntl): Likewise.
12981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
12982         (gl_FCNTL_H): Always replace fcntl.h.
12983         * modules/fcntl-h (Makefile.am): Substitute witnesses.
12984         * lib/fcntl.in.h (fcntl): Declare replacement.
12985         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
12986         needed, plus a witness.
12987         * doc/posix-functions/fcntl.texi (fcntl): Document this.
12988         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12989         * tests/test-fcntl.c: New file.
12990         * modules/fcntl-tests: Likewise.
12991
12992         binary-io: avoid potential compilation warning
12993         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
12994         directives.
12995
12996         fflush: avoid compilation error on NetBSD
12997         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
12998         between off_t and fpos_t, since the latter is sometimes a struct.
12999         * lib/fseeko.c (rpl_fseeko): Likewise.
13000         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13001
13002 2009-12-15  Eric Blake  <ebb9@byu.net>
13003
13004         fcntl-h, stdio, sys_ioctl: fix declarations
13005         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13006         function must not take arguments.
13007         * lib/sys_ioctl.in.h (ioctl): Likewise.
13008         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13009         (open): Add a link warning.
13010
13011 2009-12-15  Jim Meyering  <meyering@redhat.com>
13012
13013         areadlink, areadlink-with-size: relax license to LGPLv2+
13014         * modules/areadlink (License): Relax to LGPLv2+.
13015         * modules/areadlink-with-size (License): Likewise.
13016
13017 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13018             Bruno Haible  <bruno@clisp.org>
13019
13020         *printf: Fix memory leak.
13021         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13022         * lib/vfprintf.c (vfprintf): Likewise.
13023         * lib/dprintf.c (dprintf): Likewise.
13024         * lib/vdprintf.c (vdprintf): Likewise.
13025
13026 2009-12-14  Eric Blake  <ebb9@byu.net>
13027
13028         accept4: adjust module dependencies
13029         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13030
13031         utimens: one more try at avoiding compiler warning
13032         * lib/utimens.c (lutimens): Lower scope of result.
13033
13034 2009-12-13  Bruno Haible  <bruno@clisp.org>
13035
13036         Move the malloc checking from module 'list' to new module 'xlist'.
13037         * modules/xlist: New file.
13038         * lib/gl_xlist.h: New file.
13039         * lib/gl_xlist.c: New file.
13040         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13041         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13042         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13043         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13044         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13045         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13046         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13047         gl_sortedlist_nx_add): New declarations.
13048         (struct gl_list_implementation): Rename and change methods accordingly.
13049         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13050         (gl_list_nx_create): Renamed from gl_list_create.
13051         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13052         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13053         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13054         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13055         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13056         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13057         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13058         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13059         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13060         gl_list_create_empty.
13061         (gl_list_nx_create): Renamed from gl_list_create.
13062         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13063         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13064         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13065         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13066         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13067         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13068         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13069         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13070         * lib/gl_array_list.c: Don't include xalloc.h.
13071         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13072         NULL upon out-of-memory.
13073         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13074         out-of-memory.
13075         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13076         Change return type to 'int'.
13077         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13078         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13079         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13080         upon out-of-memory.
13081         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13082         upon out-of-memory.
13083         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13084         upon out-of-memory.
13085         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13086         upon out-of-memory.
13087         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13088         out-of-memory.
13089         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13090         Update.
13091         (gl_array_list_implementation): Update.
13092         * lib/gl_carray_list.c: Don't include xalloc.h.
13093         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13094         Return NULL upon out-of-memory.
13095         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13096         out-of-memory.
13097         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13098         Change return type to 'int'.
13099         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13100         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13101         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13102         upon out-of-memory.
13103         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13104         upon out-of-memory.
13105         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13106         out-of-memory.
13107         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13108         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13109         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13110         Update.
13111         (gl_carray_list_implementation): Update.
13112         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13113         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13114         gl_linked_create_empty. Return NULL upon out-of-memory.
13115         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13116         out-of-memory.
13117         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13118         Change return type to 'int'. Return -1 upon out-of-memory.
13119         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13120         out-of-memory.
13121         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13122         upon out-of-memory.
13123         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13124         upon out-of-memory.
13125         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13126         NULL upon out-of-memory.
13127         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13128         upon out-of-memory.
13129         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13130         out-of-memory.
13131         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13132         Update.
13133         * lib/gl_linked_list.c: Don't include xalloc.h.
13134         (gl_linked_list_implementation): Update.
13135         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13136         (add_to_bucket): Change return type to 'int'.
13137         (gl_linkedhash_list_implementation): Update.
13138         * lib/gl_anytree_list1.h (free_subtree): New function.
13139         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13140         gl_tree_create_empty. Return NULL upon out-of-memory.
13141         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13142         Change return type to 'int'. Return -1 upon out-of-memory.
13143         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13144         out-of-memory.
13145         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13146         (gl_tree_remove_node): New function, moved here from
13147         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13148         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13149         Update.
13150         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13151         malloc, not xmalloc. Return NULL upon out-of-memory.
13152         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13153         out-of-memory.
13154         (gl_tree_remove_node_from_tree): New function, extracted from
13155         gl_tree_remove_node.
13156         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13157         upon out-of-memory.
13158         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13159         out-of-memory.
13160         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13161         upon out-of-memory.
13162         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13163         upon out-of-memory.
13164         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13165         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13166         not xmalloc. Return NULL upon out-of-memory.
13167         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13168         out-of-memory.
13169         (gl_tree_remove_node_from_tree): New function, extracted from
13170         gl_tree_remove_node.
13171         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13172         upon out-of-memory.
13173         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13174         out-of-memory.
13175         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13176         upon out-of-memory.
13177         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13178         upon out-of-memory.
13179         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13180         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13181         gl_anytree_list1.h before gl_anyavltree_list2.h.
13182         (gl_avltree_list_implementation): Update.
13183         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13184         gl_anytree_list1.h before gl_anyavltree_list2.h.
13185         (gl_rbtree_list_implementation): Update.
13186         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13187         Change return type to 'int'. Return -1 upon out-of-memory. Use
13188         __builtin_expect.
13189         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13190         (gl_avltreehash_list_implementation): Update.
13191         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13192         (gl_rbtreehash_list_implementation): Update.
13193         * modules/array-list (Depends-on): Remove xalloc.
13194         * modules/carray-list (Depends-on): Likewise.
13195         * modules/linked-list (Depends-on): Likewise.
13196         * modules/linkedhash-list (Depends-on): Likewise.
13197         * modules/avltree-list (Depends-on): Likewise.
13198         * modules/rbtree-list (Depends-on): Likewise.
13199         * modules/avltreehash-list (Depends-on): Likewise.
13200         * modules/rbtreehash-list (Depends-on): Likewise.
13201
13202         * modules/xsublist: New file.
13203         * lib/gl_xsublist.h: New file.
13204         * lib/gl_xsublist.c: New file.
13205         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13206         (gl_sublist_nx_create): New declaration.
13207         * lib/gl_sublist.c: Don't include xalloc.h.
13208         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13209         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13210         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13211         Change return type to 'int'. Return -1 upon out-of-memory.
13212         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13213         upon out-of-memory.
13214         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13215         NULL upon out-of-memory.
13216         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13217         upon out-of-memory.
13218         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13219         NULL upon out-of-memory.
13220         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13221         NULL upon out-of-memory.
13222         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13223         upon out-of-memory.
13224         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13225         (gl_sublist_list_implementation): Update.
13226         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13227         upon out-of-memory.
13228         * modules/sublist (Depends-on): Remove xalloc.
13229
13230         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13231         * tests/test-carray_list.c: Likewise.
13232         * tests/test-linked_list.c: Likewise.
13233         * tests/test-linkedhash_list.c: Likewise.
13234         * tests/test-avltree_list.c: Likewise.
13235         * tests/test-rbtree_list.c: Likewise.
13236         * tests/test-avltreehash_list.c: Likewise.
13237         * tests/test-rbtreehash_list.c: Likewise.
13238         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13239         * modules/carray-list-tests (Makefile.am): Likewise.
13240         * modules/linked-list-tests (Makefile.am): Likewise.
13241         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13242         * modules/avltree-list-tests (Makefile.am): Likewise.
13243         * modules/rbtree-list-tests (Makefile.am): Likewise.
13244         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13245         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13246
13247         * NEWS: Mention the changes.
13248
13249         * lib/clean-temp.c: Include gl_xlist.h.
13250         * modules/clean-temp (Depends-on): Add xlist.
13251
13252         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13253         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13254
13255         * tests/test-array_oset.c: Include gl_xlist.h.
13256         * modules/array-oset-tests (Depends-on): Add xlist.
13257
13258         Reported by José E. Marchesi <jemarch@gnu.org>.
13259
13260 2009-12-13  Bruno Haible  <bruno@clisp.org>
13261
13262         Move the malloc checking from module 'oset' to new module 'xoset'.
13263         * modules/xoset: New file.
13264         * lib/gl_xoset.h: New file.
13265         * lib/gl_xoset.c: New file.
13266         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13267         declarations.
13268         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13269         (struct gl_oset_implementation): Rename and change methods accordingly.
13270         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13271         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13272         'int'. Mark as __warn_unused_result__.
13273         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13274         gl_oset_create_empty.
13275         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13276         'int'.
13277         * lib/gl_array_oset.c: Don't include xalloc.h.
13278         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13279         malloc, not xmalloc.
13280         (grow): Change return type to 'int'. Don't call xalloc_die.
13281         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13282         to 'int'.
13283         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13284         'int'.
13285         (gl_array_oset_implementation): Update.
13286         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13287         gl_tree_create_empty.
13288         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13289         'int'.
13290         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13291         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13292         xmalloc.
13293         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13294         not xmalloc.
13295         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13296         xmalloc.
13297         (gl_avltree_oset_implementation): Update.
13298         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13299         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13300         xmalloc.
13301         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13302         not xmalloc.
13303         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13304         xmalloc.
13305         (gl_rbtree_oset_implementation): Update.
13306         * modules/array-oset (Depends-on): Remove xalloc.
13307         * modules/avltree-oset (Depends-on): Likewise.
13308         * modules/rbtree-oset (Depends-on): Likewise.
13309         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13310         * tests/test-avltree_oset.c: Likewise.
13311         * tests/test-rbtree_oset.c: Likewise.
13312         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13313         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13314         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13315         * NEWS: Mention the change.
13316
13317 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13318
13319         maint.mk: allow a project to override release-prep commands
13320         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13321         commands into a new rule.
13322         (release-prep): New rule.
13323         (release-prep-hook): New overridable variable.
13324
13325 2009-12-13  Bruno Haible  <bruno@clisp.org>
13326
13327         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13328
13329 2009-12-13  Jim Meyering  <meyering@redhat.com>
13330
13331         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13332         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13333
13334 2009-12-12  Bruno Haible  <bruno@clisp.org>
13335
13336         duplocale: Tweak.
13337         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13338
13339 2009-12-12  Karl Berry  <karl@gnu.org>
13340
13341         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13342
13343 2009-12-12  Bruno Haible  <bruno@clisp.org>
13344
13345         * m4/po.m4: Undo incorrect untabification.
13346
13347 2009-12-12  Bruno Haible  <bruno@clisp.org>
13348
13349         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13350         * modules/c-strtod (Depends-on): Add locale.
13351         * modules/c-strtold (Depends-on): Likewise.
13352
13353 2009-12-12  Bruno Haible  <bruno@clisp.org>
13354
13355         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13356
13357 2009-12-11  Eric Blake  <ebb9@byu.net>
13358
13359         setenv: relax requirement in light of POSIX ruling
13360         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13361         not NULL.
13362         * tests/test-setenv.c (main): Relax test.
13363         * tests/test-unsetenv.c (main): Likewise.
13364         * doc/posix-functions/setenv.texi (setenv): Document this.
13365         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13366
13367 2009-12-11  Bruno Haible  <bruno@clisp.org>
13368
13369         New module 'fd-safer-flag'.
13370         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13371         * lib/dup-safer.c (dup_safer_flag): Remove function.
13372         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13373         * lib/fd-safer.c (fd_safer_flag): Remove function.
13374         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13375         * modules/cloexec (configure.ac): Drop indicator macro.
13376         * modules/fd-safer-flag: New file.
13377         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13378         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13379         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13380
13381 2009-12-11  Bruno Haible  <bruno@clisp.org>
13382
13383         Tests for module 'nl_langinfo'.
13384         * modules/nl_langinfo-tests: New file.
13385         * tests/test-nl_langinfo.sh: New file.
13386         * tests/test-nl_langinfo.c: New file.
13387
13388         New module 'nl_langinfo'.
13389         * lib/nl_langinfo.c: New file.
13390         * m4/nl_langinfo.m4: New file.
13391         * modules/nl_langinfo: New file.
13392         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13393
13394 2009-12-11  Bruno Haible  <bruno@clisp.org>
13395
13396         Tests for module 'langinfo'.
13397         * modules/langinfo-tests: New file.
13398         * tests/test-langinfo.c: New file.
13399
13400         New module 'langinfo'.
13401         * lib/langinfo.in.h: New file.
13402         * m4/langinfo_h.m4: New file.
13403         * modules/langinfo: New file.
13404         * doc/posix-headers/langinfo.texi: Mention the new module.
13405
13406 2009-12-11  Bruno Haible  <bruno@clisp.org>
13407
13408         * lib/config.charset: Untabify.
13409
13410 2009-12-11  Bruno Haible  <bruno@clisp.org>
13411
13412         * modules/unistd-safer (configure.ac): Drop indicator macro.
13413
13414 2009-12-11  Bruno Haible  <bruno@clisp.org>
13415
13416         Move pipe2-safer code to its own file.
13417         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13418         * lib/pipe-safer.c (pipe2_safer): Remove function.
13419         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13420         (Makefile.am): Add it to lib_SOURCES.
13421
13422 2009-12-10  Bruno Haible  <bruno@clisp.org>
13423
13424         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13425
13426 2009-12-10  Bruno Haible  <bruno@clisp.org>
13427
13428         Declare which arguments expect non-NULL values, for GCC and clang.
13429         * build-aux/arg-nonnull.h: New file.
13430         * modules/arg-nonnull: New file.
13431         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13432         (inet_ntop, inet_pton): Use it.
13433         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13434         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13435         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13436         (open, openat): Use it.
13437         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13438         (fnmatch): Use it.
13439         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13440         (getopt, getopt_long, getopt_long_only): Use it.
13441         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13442         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13443         Use it.
13444         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13445         (iconv_open): Use it.
13446         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13447         (strtoimax, strtoumax): Use it.
13448         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13449         (duplocale): Use it.
13450         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13451         (frexp, frexpl): Use it.
13452         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13453         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13454         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13455         (tsearch, tfind, tdelete, twalk): Use it.
13456         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13457         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13458         sigpending): Use it.
13459         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13460         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13461         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13462         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13463         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13464         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13465         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13466         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13467         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13468         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13469         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13470         Use it.
13471         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13472         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13473         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13474         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13475         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13476         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13477         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13478         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13479         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13480         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13481         strtoull, unsetenv): Use it.
13482         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13483         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13484         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13485         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13486         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13487         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13488         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13489         (strcasecmp, strncasecmp): Use it.
13490         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13491         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13492         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13493         rpl_setsockopt): Use it.
13494         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13495         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13496         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13497         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13498         (gettimeofday): Use it.
13499         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13500         (times): Use it.
13501         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13502         (uname): Use it.
13503         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13504         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13505         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13506         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13507         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13508         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13509         unlinkat, write): Use it.
13510         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13511         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13512         * lib/argv-iter.h: Include arg-nonnull.h.
13513         (_ATTRIBUTE_NONNULL_): Remove macro.
13514         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13515         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13516         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13517         optimization.
13518         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13519         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13520         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13521         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13522         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13523         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13524         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13525         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13526         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13527         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13528         * modules/dirent (Depends-on): Add arg-nonnull.
13529         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13530         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13531         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13532         * modules/fnmatch (Depends-on): Add arg-nonnull.
13533         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13534         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13535         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13536         * modules/glob (Depends-on): Add arg-nonnull.
13537         (Makefile.am): Insert arg-nonnull.h into glob.h.
13538         * modules/iconv_open (Depends-on): Add arg-nonnull.
13539         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13540         * modules/inttypes (Depends-on): Add arg-nonnull.
13541         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13542         * modules/locale (Depends-on): Add arg-nonnull.
13543         (Makefile.am): Insert arg-nonnull.h into locale.h.
13544         * modules/math (Depends-on): Add arg-nonnull.
13545         (Makefile.am): Insert arg-nonnull.h into math.h.
13546         * modules/netdb (Depends-on): Add arg-nonnull.
13547         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13548         * modules/search (Depends-on): Add arg-nonnull.
13549         (Makefile.am): Insert arg-nonnull.h into search.h.
13550         * modules/signal (Depends-on): Add arg-nonnull.
13551         (Makefile.am): Insert arg-nonnull.h into signal.h.
13552         * modules/spawn (Depends-on): Add arg-nonnull.
13553         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13554         * modules/stdio (Depends-on): Add arg-nonnull.
13555         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13556         * modules/stdlib (Depends-on): Add arg-nonnull.
13557         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13558         * modules/string (Depends-on): Add arg-nonnull.
13559         (Makefile.am): Insert arg-nonnull.h into string.h.
13560         * modules/strings (Depends-on): Add arg-nonnull.
13561         (Makefile.am): Insert arg-nonnull.h into strings.h.
13562         * modules/sys_socket (Depends-on): Add arg-nonnull.
13563         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13564         * modules/sys_stat (Depends-on): Add arg-nonnull.
13565         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13566         * modules/sys_time (Depends-on): Add arg-nonnull.
13567         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13568         * modules/sys_times (Depends-on): Add arg-nonnull.
13569         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13570         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13571         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13572         * modules/time (Depends-on): Add arg-nonnull.
13573         (Makefile.am): Insert arg-nonnull.h into time.h.
13574         * modules/unistd (Depends-on): Add arg-nonnull.
13575         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13576         * modules/wchar (Depends-on): Add arg-nonnull.
13577         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13578         * modules/argv-iter (Depends-on): Add arg-nonnull.
13579         * tests/test-canonicalize.c (null_ptr): New function.
13580         (main): Use it.
13581         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13582         (main): Use it.
13583         * tests/test-memmem.c (null_ptr): New function.
13584         (main): Use it.
13585         Reported by Jim Meyering.
13586
13587 2009-12-10  Bruno Haible  <bruno@clisp.org>
13588
13589         Use spaces for indentation, not tabs.
13590         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13591         * m4/*.m4: Untabify.
13592         * build-aux/*.h: Untabify.
13593         * tests/**/*.[hc]: Untabify.
13594         * README: New section "Indent with spaces, not TABs", based on
13595         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13596         * NEWS: Mention the change.
13597
13598 2009-12-10  Bruno Haible  <bruno@clisp.org>
13599
13600         pty test: Fix link error.
13601         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13602         test_pty_LDADD.
13603
13604 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13605
13606         * modules/pty: New file.
13607         * modules/pty-tests: New file.
13608         * m4/pty.m4: New file.
13609         * tests/test-pty.c: New file.
13610         * doc/glibc-headers/pty.texi: Modified.
13611         * doc/glibc-functions/forkpty.texi: Modified.
13612         * doc/glibc-functions/openpty.texi: Modified.
13613
13614 2009-12-10  Bruno Haible  <bruno@clisp.org>
13615
13616         Avoid syntax error in C++ mode.
13617         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13618
13619 2009-12-10  Bruno Haible  <bruno@clisp.org>
13620
13621         Use sed with option -e.
13622         * gnulib-tool (func_version, func_emit_copyright_notice,
13623         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13624         option -e to sed.
13625         * modules/link-warning (Makefile.am): Likewise.
13626
13627 2009-12-10  Jim Meyering  <meyering@redhat.com>
13628
13629         mgetgroups: do not write bytes beyond end of malloc'd buffer
13630         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13631         username, we call getgroups with a one-element-shorter buffer,
13632         but still told it the length was original, max_n_groups.
13633
13634 2009-12-09  Eric Blake  <ebb9@byu.net>
13635
13636         cloexec: relax license
13637         * modules/cloexec (Maintainer): Add myself.
13638         (License): Use LGPL, not GPL.
13639
13640         link-warning: optimize generation
13641         * modules/link-warning (Makefile.am): Reduce process usage.
13642
13643 2009-12-09  Bruno Haible  <bruno@clisp.org>
13644
13645         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13646         workaround was added on 2009-11-17.
13647
13648 2009-12-09  Jim Meyering  <meyering@redhat.com>
13649             Bruno Haible  <bruno@clisp.org>
13650
13651         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13652         * modules/link-warning (Makefile.am): Make the comment-removing sed
13653         command more robust in the face of bootstrap-prepended comment lines.
13654
13655 2009-12-09  Bruno Haible  <bruno@clisp.org>
13656
13657         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13658         most one group.
13659
13660 2009-12-09  Simon Josefsson <simon@josefsson.org>
13661             Bruno Haible  <bruno@clisp.org>
13662
13663         * build-aux/link-warning.h: Add copyright notice.
13664         * modules/link-warning (Makefile.am): Generate link-warning.h from
13665         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13666         * NEWS: Mention change in link-warning module.
13667         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13668         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13669         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13670         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13671         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13672         * modules/math (Makefile.am): Add dependency to math.h.
13673         * modules/search (Makefile.am): Add dependency to search.h.
13674         * modules/signal (Makefile.am): Add dependency to signal.h.
13675         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13676         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13677         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13678         * modules/string (Makefile.am): Add dependency to string.h.
13679         * modules/strings (Makefile.am): Add dependency to strings.h.
13680         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13681         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13682         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13683         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13684         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13685         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13686         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13687         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13688         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13689
13690 2009-12-09  Bruno Haible  <bruno@clisp.org>
13691
13692         fchdir: Optimize away rpl_fstat when possible.
13693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13694         REPLACE_OPEN_DIRECTORY.
13695         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13696
13697 2009-12-09  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/fchdir.c: Update comment.
13700
13701 2009-12-09  Bruno Haible  <bruno@clisp.org>
13702
13703         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13704
13705 2009-12-08  Eric Blake  <ebb9@byu.net>
13706
13707         fchdir: avoid memory leak on re-registration.
13708         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13709
13710 2009-12-08  Jim Meyering  <meyering@redhat.com>
13711
13712         init.sh: avoid Solaris 10 /bin/sh portability problem
13713         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13714         sourced script:
13715           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13716           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13717           bar
13718         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13719         and two tests used that idiom.
13720         * tests/init.sh: Update suggested usage comments.
13721         (path_prepend_): New function, to be used in place
13722         of the --src-path=DIR option.
13723         (setup_): Move PATH-prepending code into path_prepend_.
13724         * tests/test-pread.sh: Adapt to new usage.
13725         * tests/test-xalloc-die.sh: Likewise.
13726
13727 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13728
13729         * doc/gnulib.texi (Glibc pty.h): Add.
13730         * doc/glibc-functions/forkpty.texi: Add.
13731         * doc/glibc-functions/openpty.texi: Add.
13732         Suggested by Bruno Haible.
13733
13734 2009-12-08  Eric Blake  <ebb9@byu.net>
13735
13736         fchdir: fix logic bugs
13737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13738         * tests/test-fchdir.c (main): Enhance test.
13739         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13740         is in use.
13741
13742         dup2: fix logic bugs
13743         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13744         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13745         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13746         exists.
13747         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13748
13749 2009-12-07  Eric Blake  <ebb9@byu.net>
13750
13751         unlink: fix m4 detection
13752         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13753
13754         unistd-safer: add unit test
13755         * modules/unistd-safer-tests: New file.
13756         * tests/test-dup-safer.c: Likewise.
13757         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13758         * tests/test-dup2.c (setmode): Likewise.
13759         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13760
13761         cloexec: preserve text vs. binary across dup_cloexec
13762         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13763         mode.
13764         * modules/dup2-tests (Depends-on): Add binary-io.
13765         * modules/cloexec-tests (Depends-on): Likewise.
13766         * tests/test-dup2.c (setmode, is_mode): New helpers.
13767         (main): Add tests that translation mode is preserved.
13768         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13769         Reported by Bruno Haible.
13770
13771         mgetgroups: reduce duplicate listings
13772         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13773         resulting array.
13774         * tests/test-chown.h (test_chown): Simplify client.
13775         * tests/test-lchown.h (test_lchown): Likewise.
13776
13777 2009-12-06  Bruno Haible  <bruno@clisp.org>
13778
13779         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13780         value.
13781
13782 2009-12-06  Bruno Haible  <bruno@clisp.org>
13783
13784         * lib/progname.c: Include stdio.h, stdlib.h.
13785         (set_program_name): Reject a NULL argument.
13786
13787 2009-12-05  Eric Blake  <ebb9@byu.net>
13788
13789         pipe2-safer: new module
13790         * modules/pipe2-safer: New file.
13791         * lib/unistd-safer.h (pipe2_safer): New prototype.
13792         * lib/unistd--.h (pipe2): New wrapper.
13793         * lib/pipe-safer.c (pipe2_safer): New function.
13794         * modules/pipe (Depends-on): Add pipe2-safer.
13795         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13796
13797         stdlib-safer: preserve cloexec flag for mkostemp[s]
13798         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13799         fd_safer_flag.
13800
13801         unistd-safer: allow preservation of cloexec status via flag
13802         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13803         prototypes.
13804         * lib/dup-safer.c (dup_safer_flag): New function.
13805         * lib/fd-safer.c (fd_safer_flag): Likewise.
13806         * modules/cloexec (configure.ac): Set witness.
13807
13808         test-dup2: enhance test
13809         * modules/dup2-tests (Depends-on): Add cloexec.
13810         * tests/test-dup2.c (main): Enhance test.
13811
13812         cloexec: add dup_cloexec
13813         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13814         header and comments.
13815         * lib/cloexec.c (set_cloexec_flag): Add comments.
13816         (dup_cloexec): New function, with mingw implementation borrowed
13817         from...
13818         * lib/w32spawn.h (dup_noinherit): ...here.
13819         * modules/execute (Depends-on): Add cloexec.
13820         * modules/pipe (Depends-on): Likewise.
13821         * modules/cloexec (Depends-on): Add dup2.
13822         * modules/cloexec-tests (Files): New file.
13823         * tests/test-cloexec.c: Likewise.
13824
13825         test-xalloc-die: fix test for mingw
13826         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13827         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13828         directory and .exe suffix off argv[0] output.
13829
13830         test-fseeko: fix test for mingw
13831         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13832         than undefining fseek, so test will pass on mingw.
13833
13834 2009-12-05  Bruno Haible  <bruno@clisp.org>
13835
13836         * lib/progname.h (set_program_name): Clarify specification.
13837         * lib/progname.c (set_program_name): Likewise.
13838         Reported by Jim Meyering.
13839
13840 2009-12-05  Jim Meyering  <meyering@redhat.com>
13841
13842         maint.mk: backslash-escape parens in default regexp
13843         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13844         backslash-escape the literal parentheses.
13845
13846         maint.mk: news-date-check: use grep -E
13847         * top/maint.mk (today): Define a Make variable, not a...
13848         (news-date-check): ...shell variable.
13849         (news-date-regexp): Use the Make variable.
13850         Use grep's -E option.  Change the failing diagnostic to mention
13851         the variable, $(news-date-regexp).
13852
13853 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13854
13855         maintainer-makefile: allow customization of NEWS entry format
13856         * top/maint.mk (news-date-regexp): New overridable variable.
13857         (news-date-check): Use it.
13858
13859 2009-12-04  Eric Blake  <ebb9@byu.net>
13860
13861         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13862         * lib/mgetgroups.h (xgetgroups): New prototype.
13863         * lib/mgetgroups.c (xgetgroups): New wrapper.
13864         (mgetgroups): Handle ENOSYS.
13865         * modules/mgetgroups (Depends-on): Add realloc.
13866         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13867
13868         mgetgroups: avoid argument promotion issues with -1
13869         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13870         for invalid gid_t.
13871         * tests/test-chown.h (getegid, test_chown): Likewise.
13872         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13873
13874 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13875
13876         exclude: Fix header file problems.
13877         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13878
13879 2009-12-01  Jim Meyering  <meyering@redhat.com>
13880
13881         fts: fts_open: do not let an empty string cause immediate failure
13882         This is required in support of GNU rm, for which the command
13883         "rm A '' B" must process and remove both A and B, in spite of
13884         the empty string argument.
13885         * lib/fts.c (fts_open): Do not let the presence of an empty string
13886         cause fts_open to fail immediately.  Most fts-using tools must be
13887         able to process all arguments, in order, and can be expected to
13888         diagnose such arguments themselves.
13889
13890 2009-11-30  Eric Blake  <ebb9@byu.net>
13891
13892         utimens: fix compilation error
13893         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13894         Declare variable at right scope.
13895
13896 2009-11-29  Jim Meyering  <meyering@redhat.com>
13897
13898         bootstrap: handle perl-5.11's changed --version output
13899         * build-aux/bootstrap (get_version): Handle perl separately,
13900         since perl-5.11's --version output is different.
13901
13902 2009-11-28  Jim Meyering  <meyering@redhat.com>
13903
13904         userspec: depend on the inttostr module, too
13905         * modules/userspec (Depends-on): Add inttostr.
13906
13907         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13908         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13909         number of MAXUID when it evaluates to (uid_t) -1.
13910         Likewise for group ID.  Reported by Matt McCutchen in
13911         <http://savannah.gnu.org/bugs/?28113>
13912
13913         userspec: reformat to use spaces, not TABs
13914         * lib/userspec.c: Expand TABs to spaces.
13915         Add Emacs' "indent-tabs-mode: nil" hint.
13916
13917 2009-11-27  Eric Blake  <ebb9@byu.net>
13918
13919         getopt-gnu: flush out another BSD bug
13920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13921         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13922         flush out BSD bug.
13923         * tests/test-getopt.h (test_getopt): End lists with NULL.
13924         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13925         (test_getopt_long_posix): Enhance test.
13926         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13927         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13928         getopt-gnu.
13929         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13930         Likewise.
13931
13932 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13933
13934         * modules/idpriv-droptemp-tests (Notice): Fix text.
13935
13936 2009-11-27  Jim Meyering  <meyering@redhat.com>
13937
13938         test-xalloc-die: avoid spurious failure due to libtool argv difference
13939         In a libtool-enabled project, this test would fail due to a difference
13940         in the emitted program name, e.g.,
13941         -test-xalloc-die: memory exhausted
13942         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
13943         Use program to avoid that.
13944         * modules/xalloc-die-tests (Depends-on): Add progname.
13945         * tests/test-xalloc-die.c: Include progname.h".
13946         (program_name): Remove decl.
13947         (main): Call set_program_name.
13948         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
13949
13950 2009-11-26  Richard Jones  <rjones@redhat.com>
13951
13952         w32sock: leave win32 error in place.
13953         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
13954
13955 2009-11-26  Eric Blake  <ebb9@byu.net>
13956
13957         init.sh: suggest to use skip_ and fail_ functions in comments
13958         * tests/init.sh: Add a sentence.
13959
13960 2009-11-25  Bruno Haible  <bruno@clisp.org>
13961
13962         init.sh: add documentation in comments
13963         * tests/init.sh: Add some developer and user documentation.
13964
13965 2009-11-26  Jim Meyering  <meyering@redhat.com>
13966
13967         init.sh: accommodate even those who specify bogus srcdir manually
13968         * tests/init.sh: Normally, srcdir is guaranteed by automake and
13969         configure-time tests to be sanitized, so that there is no need to
13970         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
13971         (with no double quotes) suffices.  However, since tests may be
13972         invoked manually, and since you may explicitly set srcdir to the
13973         name of a directory containing spaces, do quote its uses here.
13974         * tests/test-pread.sh: Likewise.
13975         Suggested by Bruno Haible.
13976
13977         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
13978         * tests/test-pread.sh: Write no data into the pipe, because
13979         test-pread actually reads none.  This avoids a diagnostic,
13980         "bash: echo: write error: Broken pipe", that arises in the unusual
13981         event something is ignoring SIGPIPE, and might be interpreted
13982         as some sort of failure.  Reported by Bruno Haible.
13983
13984 2009-11-25  Jim Meyering  <meyering@redhat.com>
13985
13986         test-pread: cover failure with ESPIPE and EINVAL
13987         * tests/test-pread.c (main): Test for failure, too.
13988         * tests/test-pread.sh: Invoke with stdin on a pipe.
13989         Suggested by Eric Blake.
13990
13991         pread: improvement and fix
13992         * modules/pread (Depends-on): Depend on lseek, for portability to
13993         e.g., mingw.  Suggested by Eric Blake.
13994         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
13995
13996         unistd.in.h: correct declaration of pread
13997         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
13998         Reported by Richard W.M. Jones.
13999
14000         test-pread.sh: distribute the test script
14001         * modules/pread-tests (Files): Include test-pread.sh.
14002
14003         test-pread.sh: clean up
14004         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14005         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14006         That is unnecessary, since it's always ".".
14007         Suggestion from Eric Blake.
14008
14009         test-pread.sh: make executable
14010         * tests/test-pread.sh: Set executable bit.
14011         Reported by Eric Blake.
14012
14013         correct typo in test-pread.sh
14014         * tests/test-pread.sh: Add #! line.
14015
14016         test pread
14017         * tests/test-pread.c: New file.
14018         * tests/test-pread.sh: Likewise.
14019         * modules/pread-tests: Likewise.
14020
14021         pread: new module
14022         * modules/pread: New file.
14023         * lib/unistd.in.h (pread): Define/declare.
14024         * lib/pread.c (pread): New file.
14025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14026         * modules/unistd (Makefile.am): Substitute witnesses.
14027         * doc/posix-functions/pread.texi (pread): Update.
14028         * MODULES.html.sh: Add pread.
14029
14030 2009-11-25  Jim Meyering  <meyering@redhat.com>
14031
14032         tests/init.sh: new file to be used via most *.sh tests
14033         * tests/init.sh: New file.
14034
14035 2009-11-25  Eric Blake  <ebb9@byu.net>
14036
14037         utimens: work around older Linux failure with symlinks
14038         * lib/utimens.c (lutimensat_works_really): New variable.
14039         (fdutimens, lutimens): Use it to manage kernels that support
14040         nanosecond times on files, but not on symlinks.
14041         Reported by OndÅ™ej Vašík.
14042
14043         utimes: fix configure grammar
14044         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14045
14046 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14047
14048         regex: Fix fastmap for multibyte character ranges.
14049         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14050         characters when a multibyte character range is included.
14051
14052 2009-11-22  Andy Wingo  <wingo@pobox.com>
14053
14054         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14055         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14056
14057 2009-11-24  Bruno Haible  <bruno@clisp.org>
14058
14059         doc: Most *_l functions exist in MacOS X 10.5.
14060         * doc/posix-functions/duplocale.texi: Update platforms list.
14061         * doc/posix-functions/freelocale.texi: Likewise.
14062         * doc/posix-functions/newlocale.texi: Likewise.
14063         * doc/posix-functions/uselocale.texi: Likewise.
14064         * doc/posix-functions/isalnum_l.texi: Likewise.
14065         * doc/posix-functions/isalpha_l.texi: Likewise.
14066         * doc/posix-functions/isblank_l.texi: Likewise.
14067         * doc/posix-functions/iscntrl_l.texi: Likewise.
14068         * doc/posix-functions/isdigit_l.texi: Likewise.
14069         * doc/posix-functions/isgraph_l.texi: Likewise.
14070         * doc/posix-functions/islower_l.texi: Likewise.
14071         * doc/posix-functions/isprint_l.texi: Likewise.
14072         * doc/posix-functions/ispunct_l.texi: Likewise.
14073         * doc/posix-functions/isspace_l.texi: Likewise.
14074         * doc/posix-functions/isupper_l.texi: Likewise.
14075         * doc/posix-functions/iswalnum_l.texi: Likewise.
14076         * doc/posix-functions/iswalpha_l.texi: Likewise.
14077         * doc/posix-functions/iswblank_l.texi: Likewise.
14078         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14079         * doc/posix-functions/iswctype_l.texi: Likewise.
14080         * doc/posix-functions/iswdigit_l.texi: Likewise.
14081         * doc/posix-functions/iswgraph_l.texi: Likewise.
14082         * doc/posix-functions/iswlower_l.texi: Likewise.
14083         * doc/posix-functions/iswprint_l.texi: Likewise.
14084         * doc/posix-functions/iswpunct_l.texi: Likewise.
14085         * doc/posix-functions/iswspace_l.texi: Likewise.
14086         * doc/posix-functions/iswupper_l.texi: Likewise.
14087         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14088         * doc/posix-functions/isxdigit_l.texi: Likewise.
14089         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14090         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14091         * doc/posix-functions/strcoll_l.texi: Likewise.
14092         * doc/posix-functions/strfmon_l.texi: Likewise.
14093         * doc/posix-functions/strftime_l.texi: Likewise.
14094         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14095         * doc/posix-functions/strxfrm_l.texi: Likewise.
14096         * doc/posix-functions/tolower_l.texi: Likewise.
14097         * doc/posix-functions/toupper_l.texi: Likewise.
14098         * doc/posix-functions/towctrans_l.texi: Likewise.
14099         * doc/posix-functions/towlower_l.texi: Likewise.
14100         * doc/posix-functions/towupper_l.texi: Likewise.
14101         * doc/posix-functions/wcscoll_l.texi: Likewise.
14102         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14103         * doc/posix-functions/wctrans_l.texi: Likewise.
14104         * doc/posix-functions/wctype_l.texi: Likewise.
14105         * doc/glibc-functions/strptime_l.texi: Likewise.
14106         * doc/glibc-functions/strtod_l.texi: Likewise.
14107         * doc/glibc-functions/strtof_l.texi: Likewise.
14108         * doc/glibc-functions/strtol_l.texi: Likewise.
14109         * doc/glibc-functions/strtold_l.texi: Likewise.
14110         * doc/glibc-functions/strtoll_l.texi: Likewise.
14111         * doc/glibc-functions/strtoul_l.texi: Likewise.
14112         * doc/glibc-functions/strtoull_l.texi: Likewise.
14113         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14114         * doc/glibc-functions/wcstod_l.texi: Likewise.
14115         * doc/glibc-functions/wcstof_l.texi: Likewise.
14116         * doc/glibc-functions/wcstol_l.texi: Likewise.
14117         * doc/glibc-functions/wcstold_l.texi: Likewise.
14118         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14119         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14120         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14121
14122 2009-11-24  Bruno Haible  <bruno@clisp.org>
14123
14124         duplocale: Fix logic bug.
14125         * lib/duplocale.c: Don't include <langinfo.h>.
14126         (_NL_LOCALE_NAME): Remove macro.
14127         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14128         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14129
14130 2009-11-23  Jim Meyering  <meyering@redhat.com>
14131
14132         test-update-copyright: don't hard-code /usr/bin/perl
14133         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14134         perl to print the current year.  Gilles Espinasse reported that
14135         the replaced use of perl was hard-coded as /usr/bin/perl.
14136
14137 2009-11-23  Bruno Haible  <bruno@clisp.org>
14138
14139         duplocale: Add support for glibc 2.3.x.
14140         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14141
14142 2009-11-22  Bruno Haible  <bruno@clisp.org>
14143
14144         vasnprintf: Tiny optimization.
14145         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14146         MacOS X.
14147
14148 2009-11-22  Bruno Haible  <bruno@clisp.org>
14149
14150         Tests for module 'duplocale'.
14151         * modules/duplocale-tests: New file.
14152         * tests/test-duplocale.c: New file.
14153
14154         New module 'duplocale'.
14155         * m4/duplocale.m4: New file.
14156         * lib/locale.in.h (duplocale): New declaration.
14157         * lib/duplocale.c: New file.
14158         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14159         gl_LOCALE_H_DEFAULTS): New macros.
14160         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14161         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14162         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14163         REPLACE_DUPLOCALE.
14164         * modules/duplocale: New file.
14165         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14166
14167 2009-11-22  Bruno Haible  <bruno@clisp.org>
14168
14169         * modules/locale-tests (configure.ac): Test for newlocale function.
14170         * tests/test-locale.c: When the system has extended locale functions,
14171         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14172
14173         locale: Make locale_t available when possible.
14174         * lib/locale.in.h: Include <xlocale.h> when it exists.
14175         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14176         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14177         * modules/locale (Depends-on): Add extensions.
14178         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14179         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14180
14181 2009-11-22  Bruno Haible  <bruno@clisp.org>
14182
14183         Add comments.
14184         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14185         invocation.
14186         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14187         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14188         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14189
14190 2009-11-22  Bruno Haible  <bruno@clisp.org>
14191
14192         error: account for the possibility of freopen (stdout).
14193         * lib/error.c: Include <unistd.h>.
14194         (flush_stdout): New function, extracted from error and error_at_line.
14195         Determine stdout's fd dynamically.
14196         (error, error_at_line): Invoke flush_stdout.
14197         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14198         * modules/error (Depends-on): Add unistd.
14199
14200 2009-11-22  Bruno Haible  <bruno@clisp.org>
14201
14202         diffseq: Add comment.
14203         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14204
14205 2009-11-22  Jim Meyering  <meyering@redhat.com>
14206
14207         c-stack: avoid defining an unused static function
14208         * lib/c-stack.c (find_stack_direction): Do not define this function
14209         when it will not be used.
14210
14211         diffseq: avoid spurious gcc warnings
14212         * lib/diffseq.h (IF_LINT2): Define.
14213         (compareseq): Use it to initialize two members of "part".
14214         This avoids two used-uninitialized warnings.
14215
14216 2009-11-21  Jim Meyering  <meyering@redhat.com>
14217
14218         c-stack: avoid "ignoring return value of `write'" warning
14219         * lib/c-stack.c: Include "ignore-value.h".
14220         (die): Explicitly ignore each write return value.
14221         * modules/c-stack (Depends-on): Add ignore-value.
14222
14223 2009-11-21  Bruno Haible  <bruno@clisp.org>
14224
14225         diffseq: reduce scope of variable 'best'.
14226         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14227         variable, earlier used for two different purposes.
14228
14229 2009-11-21  Jim Meyering  <meyering@redhat.com>
14230
14231         diffseq: remove useless assignment to "best"
14232         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14233         assignment.  At that point "best" is already guaranteed to be zero.
14234
14235 2009-11-20  Eric Blake  <ebb9@byu.net>
14236
14237         build: mention ftp redirector in release announcements
14238         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14239         values that used to come from cfg.mk; mention FTP redirect URL.
14240         * build-aux/announce-gen: Mention the mirror list.
14241         Suggested by Karl Berry.
14242
14243         nanosleep: improve port to mingw
14244         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14246         LIB_NANOSLEEP, but only when needed.
14247         * modules/select (Link): Document LIBSOCKET.
14248         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14249         enough.
14250
14251         nanosleep: work around cygwin bug
14252         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14253         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14254         bug.
14255         (getnow): Delete, not needed.
14256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14257         LIB_CLOCK_GETTIME.
14258         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14259         clock-time, gettime.
14260         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14261         bug.
14262         * modules/nanosleep-tests: New test.
14263         * tests/test-nanosleep.c: New file.
14264
14265         sleep: work around cygwin bug
14266         * lib/sleep.c (rpl_sleep): Work around the bug.
14267         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14268         (gl_PREREQ_SLEEP): Delete unused macro.
14269         * modules/sleep (Depends-on): Add verify.
14270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14271         * modules/unistd (Makefile.am): Substitute witness.
14272         * lib/unistd.in.h (sleep): Update prototype.
14273         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14274         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14275         * modules/sleep-tests (Depends-on): Check for alarm.
14276
14277 2009-11-20  Jim Meyering  <meyering@redhat.com>
14278
14279         maint.mk: improve sc_prohibit_magic_number_exit
14280         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14281         so it does not match uses like System.exit(1).
14282         Add comments showing how to correct all offenders.
14283
14284 2009-11-19  Eric Blake  <ebb9@byu.net>
14285
14286         xalloc-die-tests: add missing library
14287         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14288
14289         test-xvasprintf: silence compiler warnings
14290         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14291         empty string from gcc.
14292
14293 2009-11-19  Jim Meyering  <meyering@redhat.com>
14294
14295         xfreopen: new module, from coreutils
14296         * modules/xfreopen: New module.
14297         * lib/xfreopen.c: New file.
14298         * lib/xfreopen.h: New file.
14299         * MODULES.html.sh (File stream based Input/Output"): Add it.
14300
14301 2009-11-19  Eric Blake  <ebb9@byu.net>
14302
14303         manywarnings: depend on warnings
14304         * modules/manywarnings (Depends-on): Add warnings.
14305
14306         build: avoid compiler warnings
14307         * lib/select.c (rpl_select): Delete unused variable.
14308         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14309
14310 2009-11-18  Eric Blake  <ebb9@byu.net>
14311
14312         tests: avoid false negative with --with-packager
14313         * tests/test-version-etc.sh: Discard packager information.
14314         * tests/test-argp-version-etc-1.sh: Likewise.
14315         Reported by Mike Frysinger.
14316
14317         utimens: fix regression on Solaris
14318         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14319         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14320         can only change fd timestamps via futimesat.  Instead, use an
14321         additional witness macro to avoid BSD bug.
14322         Reported by Jim Meyering.
14323
14324 2009-11-17  Eric Blake  <ebb9@byu.net>
14325
14326         usleep: use it to simplify tests
14327         * modules/stat-time-tests (Depends-on): Add usleep.
14328         (configure.ac): Drop usleep check.
14329         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14330         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14331         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14332         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14333         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14334         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14335         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14336         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14337         Likewise.
14338         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14339         * tests/test-lchown.h (nap): Likewise.
14340         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14341         * tests/test-stat-time.c (nap): Likewise.
14342         * tests/test-utimens-common.h (nap): Update comments.
14343
14344         usleep: new module
14345         * modules/usleep: New file.
14346         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14347         * lib/usleep.c (usleep): Likewise.
14348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14349         * modules/unistd (Makefile.am): Substitute witnesses.
14350         * lib/unistd.in.h (usleep): Add declaration.
14351         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14352         * MODULES.html.sh (Date and time): Likewise.
14353         * modules/usleep-tests (Depends-on): New test.
14354         * tests/test-usleep.c: New file.
14355
14356         chown: work around OpenBSD bug
14357         * lib/chown.c (rpl_chown): Work around the bug.
14358         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14359         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14361         * modules/chown (Depends-on): Add stdbool.
14362         * modules/lchown (Depends-on): Likewise.
14363         * doc/posix-functions/chown.texi (chown): Document the bug.
14364         * doc/posix-functions/lchown.texi (lchown): Likewise.
14365         * tests/test-lchown.h (test_chown): Relax test.
14366
14367         mkstemp: avoid conflict with C++ keyword template
14368         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14369         * lib/mkostemp.c (mkostemp): Likewise.
14370         * lib/mkostemps.c (mkostemps): Likewise.
14371         * lib/mkstemp.c (mkstemp): Likewise.
14372         * lib/mkstemps.c (mkstemps): Likewise.
14373
14374         xalloc-die-tests: optimize
14375         * tests/test-xalloc-die.sh: Reduce number of processes.
14376
14377 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14378
14379         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14380         patch from ludo@gnu.org (Ludovic Courtès).
14381
14382 2009-11-17  Jim Meyering  <meyering@redhat.com>
14383
14384         version-etc: use proper license string
14385         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14386         * modules/version-etc-fsf: Likewise.
14387
14388 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14389
14390         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14391         printed to stdout.  Deal with EOL differences.
14392
14393 2009-11-17  Eric Blake  <ebb9@byu.net>
14394
14395         unsetenv: work around Solaris bug
14396         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14397         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14398         Reported by Jim Meyering.
14399
14400         vasnprintf: avoid compiler warnings
14401         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14402         variables.
14403         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14404
14405 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14406
14407         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14408         settings since xalloc-die is no longer the self test,
14409         xalloc-die.sh is.
14410
14411 2009-11-17  Jim Meyering  <meyering@redhat.com>
14412
14413         test-xalloc-die.sh: make the code agree with the commit log
14414         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14415         at the end, just in case you happen to have a test-xalloc-die
14416         program in some other PATH directory.
14417
14418         test-xalloc-die.sh: fix a portability bug
14419         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14420         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14421         Otherwise, argv[0] (as often seen in diagnostics) would be too
14422         system-dependent, sometimes with, and sometimes without the leading "./".
14423
14424         version-etc-fsf: relax license to LGPLv3+
14425         * modules/version-etc-fsf (License): Relax license.
14426
14427 2009-11-16  Eric Blake  <ebb9@byu.net>
14428
14429         xalloc-die-tests: avoid printing null pointer
14430         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14431         shell script.
14432         * tests/test-xalloc-die.c (program_name): Declare.
14433         * tests/test-xalloc-die.sh (tmpfiles): New file.
14434
14435         setenv, unsetenv: work around various bugs
14436         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14437         (setenv) [HAVE_SETENV]: Work around bugs.
14438         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14439         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14440         for bugs.
14441         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14442         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14444         * modules/stdlib (Makefile.am): Update substitutions.
14445         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14446         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14447         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14448         * modules/setenv-tests: New test.
14449         * modules/unsetenv-tests: Likewise.
14450         * tests/test-setenv.c: New file.
14451         * tests/test-unsetenv.c: Likewise.
14452
14453 2009-11-16  Jim Meyering  <meyering@redhat.com>
14454
14455         version-etc: relax license to LGPLv3+
14456         * modules/version-etc (License): Relax license.
14457
14458         better AC_REQUIRE expanded-before-required-warning avoidance
14459         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14460         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14461         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14462         which is no longer needed.
14463
14464 2009-11-16  Eric Blake  <ebb9@byu.net>
14465
14466         test-freading: clean up temporary file
14467         * tests/test-freading.c (main): Remove file on success, and use
14468         ASSERT more liberally.
14469         Reported by Jim Meyering.
14470
14471 2009-11-16  Jim Meyering  <meyering@redhat.com>
14472
14473         avoid new AC_REQUIRE expanded-before-required warnings
14474         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14475         merely using it.
14476         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14477         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14478
14479 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14480
14481         * tests/test-xalloc-die.c: New file.
14482         * modules/xalloc-die-tests: New file.
14483         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14484         XFAIL_TESTS so it can be appended by modules.
14485
14486 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14487
14488         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14489         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14490
14491 2009-11-14  Eric Blake  <ebb9@byu.net>
14492
14493         fnmatch: avoid compiler warning
14494         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14495         to silence compiler warning about mismatch signedness in ?:.
14496         Reported by Robert Millan.
14497
14498         intprops: add double-inclusion guard
14499         * lib/intprops.h: Allow idempotent includes.
14500         Suggested by Bruce Korb.
14501
14502         openat: detect Solaris fchownat bug
14503         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14504         penalizing glibc chownat when only lchownat is broken.
14505         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14506         trailing slash bugs.
14507         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14508         * modules/openat-tests (Files): Include more files.
14509         (Depends-on): Add mgetgroups, sleep, stat-time.
14510         (configure.ac): Add additional checks.
14511         (Makefile.am): Build new test.
14512         * tests/test-fchownat.c: New file.
14513
14514         lchown: detect Solaris and FreeBSD bug
14515         * lib/lchown.c (rpl_lchown): Work around bug.
14516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14518         * modules/unistd (Makefile.am): Populate it.
14519         * lib/unistd.in.h (lchown): Update declaration.
14520         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14521         * modules/lchown-tests: New file.
14522         * tests/test-lchown.h (test_lchown): Likewise.
14523         * tests/test-lchown.c (main): Likewise.
14524
14525         chown: detect Solaris and FreeBSD bug
14526         * lib/chown.c (rpl_chown): Work around bug.
14527         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14528         (gl_PREREQ_CHOWN): Delete.
14529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14530         * modules/unistd (Makefile.am): Populate it.
14531         * lib/unistd.in.h (chown): Update declaration.
14532         * lib/lchown.c (chown): Update client.
14533         * modules/lchown (Depends-on): Add lstat.
14534         * doc/posix-functions/chown.texi (chown): Document the bug.
14535         * doc/posix-functions/getgroups.texi (getgroups): Document
14536         getgroups pitfall.
14537         * modules/chown-tests: New file.
14538         * tests/test-chown.h (test_chown): Likewise.
14539         * tests/test-chown.c (main): Likewise.
14540
14541 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14542
14543         gnulib-tool: correctly detect absence of m4 directories
14544         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14545
14546 2009-11-14  Jim Meyering  <meyering@redhat.com>
14547
14548         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14549         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14550
14551 2009-11-14  John W. Eaton  <jwe@gnu.org>
14552
14553         strftime.h: wrap funtion declaration in extern "C" block
14554         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14555
14556 2009-11-13  Eric Blake  <ebb9@byu.net>
14557
14558         getgroups: avoid compiler warning
14559         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14560
14561         getgroups: work around FreeBSD bug
14562         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14563         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14564         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14565         * tests/test-getgroups.c (main): Fix buffer overrun.
14566
14567         getgroups: avoid compilation failure
14568         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14569         * modules/getgroups (Depends-on): Add stdint.
14570
14571 2009-11-13  Jim Meyering  <meyering@redhat.com>
14572
14573         test-getgroups: avoid compilation failure
14574         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14575
14576 2009-11-13  Eric Blake  <ebb9@byu.net>
14577
14578         mgetgroups: new module, taken from coreutils
14579         * modules/mgetgroups: New file.
14580         * lib/mgetgroups.h: Likewise.
14581         * lib/mgetgroups.c (mgetgroups): Likewise.
14582         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14583         * MODULES.html.sh (Users and groups): Mention it.
14584
14585         getgroups: don't expose GETGROUPS_T to user
14586         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14587         an element at a time if GETGROUPS_T is wrong size.
14588         * lib/getugroups.h (getugroups): Change signature.
14589         * lib/unistd.in.h (getgroups): Likewise.
14590         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14591         signature needs fixing.
14592         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14593         AC_TYPE_GETGROUPS.
14594         * modules/group-member (Depends-on): Add getgroups.
14595         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14596         (group_member): Rely on getgroups replacement.
14597         * lib/getugroups.c (getugroups): Use gid_t.
14598         * tests/test-getgroups.c (main): Likewise.
14599         * NEWS: Mention the signature change.
14600         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14601         problem with signature.
14602         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14603         GETGROUPS_T is still useful for setgroups.
14604
14605         getgroups, getugroups: provide stubs for mingw
14606         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14607         * lib/getugroups.c (getugroups): Likewise.
14608         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14609         function.  Modernize replacement scheme.
14610         (gl_PREREQ_GETGROUPS): Delete.
14611         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14612         * modules/getgroups (configure.ac): Declare witness.
14613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14614         * modules/unistd (Depends-on): Substitute witness.
14615         * lib/unistd.in.h (getgroups): Declare replacement.
14616
14617         getgroups: avoid calling exit
14618         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14619         drop xalloc.
14620         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14621         dependencies.
14622         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14623         exiting, in the rare case of malloc failure.
14624
14625         getgroups: fix logic error
14626         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14627         has more than 20 groups.
14628         * modules/getgroups-tests: New test.
14629         * tests/test-getgroups.c: New file.
14630
14631 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14632
14633         * tests/test-base64.c: Improve.
14634
14635 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14636
14637         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14638         Blake <ebb9@byu.net>.
14639
14640 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14641
14642         * tests/test-xvasprintf.c: Add %s%s related checks.
14643
14644 2009-11-12  Eric Blake  <ebb9@byu.net>
14645
14646         version-etc: match standards.texi style
14647         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14648         and use <> only for URLs.
14649
14650 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14651
14652         fts: do not fail on a submount during traversal
14653         * lib/fts.c (fts_build): Read the stat info again after opening
14654         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14655         Original report at http://bugzilla.redhat.com/501848.
14656
14657 2009-11-12  Jim Meyering  <meyering@redhat.com>
14658
14659         bootstrap: sync from coreutils
14660         * build-aux/bootstrap (bootstrap_epilogue): New function.
14661         Use git_modules_config in one more place.  This make bootstrap's
14662         --gnulib-srcdir option more useful for testing.
14663
14664         bootstrap: generalize autoheader check
14665         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14666         AC_CONFIG_HEADERS.
14667
14668 2009-11-11  Eric Blake  <ebb9@byu.net>
14669
14670         mkfifoat: use new modules for Solaris and BSD bugs
14671         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14672         * lib/mkfifoat.c (mknodat): Split...
14673         * lib/mknodat.c (mknodat): ...into new file.
14674         * modules/mkfifoat (Files): Ship new file.
14675         (Depends-on): Add mkfifo, mknod.
14676         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14677         (Depends-on): Add symlink.
14678         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14679         redundant with test_mkfifo.h.
14680         (do_mkfifoat, do_mknodat): New helpers.
14681
14682         mknod: new module
14683         * modules/mknod: New file.
14684         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14685         * lib/mknod.c (mknod): Likewise.
14686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14687         defaults.
14688         * modules/sys_stat (Makefile.am): Substitute them.
14689         * lib/sys_stat.in.h (mknod): Declare replacement.
14690         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14691         Document it.
14692         * doc/posix-functions/mknod.texi (mknod): Likewise.
14693         * modules/mknod-tests: New test.
14694         * tests/test-mknod.c: Likewise.
14695
14696         mkfifo: new module
14697         * modules/mkfifo: New file.
14698         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14699         * lib/mkfifo.c (mkfifo): Likewise.
14700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14701         defaults.
14702         * modules/sys_stat (Makefile.am): Substitute them.
14703         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14704         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14705         Document it.
14706         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14707         * modules/mkfifo-tests: New test.
14708         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14709         from test-mkfifoat.c.
14710         * tests/test-mkfifo.c: New file.
14711
14712         readlink: detect FreeBSD bug
14713         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14714         slash on symlink.
14715         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14716         * tests/test-readlink.h (test_readlink): Enhance test.
14717
14718         symlink: detect FreeBSD bug
14719         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14720         slash on symlink.
14721         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14722         * tests/test-symlink.h (test_symlink): Enhance test.
14723
14724 2009-11-10  Eric Blake  <ebb9@byu.net>
14725
14726         link: detect FreeBSD bug
14727         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14728         symlink.
14729         * doc/posix-functions/link.texi (link): Document the bug.
14730         * tests/test-link.h (test_link): Enhance test.
14731         * tests/test-linkat.c (main): Update caller.
14732
14733         unlink, remove: detect FreeBSD bug
14734         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14735         slash on symlink.
14736         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14737         * doc/posix-functions/remove.texi (remove): Likewise.
14738         * tests/test-unlink.h (test_unlink): Enhance test.
14739         * tests/test-remove.c (main): Likewise.
14740
14741 2009-11-09  Eric Blake  <ebb9@byu.net>
14742
14743         rename: detect FreeBSD bug
14744         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14745         slash on symlink.
14746         * modules/renameat-tests (Depends-on): Add filenamecat.
14747         * tests/test-rename.h (test_rename): Allow one more errno.
14748         * tests/test-renameat.c (main): Likewise.
14749         * doc/posix-functions/rename.texi (rename): Document the bug.
14750
14751         open: detect FreeBSD bug
14752         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14753         symlink.
14754         * doc/posix-functions/open.texi (open): Document the bug.
14755         * doc/posix-functions/utimes.texi (utimes): Likewise.
14756         * tests/test-open.h (test_open): Add parameters, and test symlink
14757         handling.
14758         * tests/test-open.c (main): Adjust caller.
14759         * tests/test-fcntl-safer.c (main): Likewise.
14760         * modules/open-tests (Depends-on): Add stdbool, symlink.
14761         * modules/fcntl-safer-tests (Depends-on): Likewise.
14762         * tests/test-openat.c (main): Add test-open tests.
14763
14764         stat: detect FreeBSD bug
14765         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14766         symlink.
14767         * doc/posix-functions/stat.texi (stat): Document the bug.
14768         * tests/test-stat.h (test_stat_func): Add argument.
14769         * tests/test-stat.c (main): Adjust caller.
14770         * tests/test-fstatat.c (main): Likewise.
14771         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14772         Reported by Jim Meyering.
14773
14774 2009-11-09  James Youngman  <jay@gnu.org>
14775
14776         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14777         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14778
14779 2009-11-08  Jim Meyering  <meyering@redhat.com>
14780
14781         utimens: remove invalid futimesat call
14782         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14783         It used the file descriptor of the target file as the DIR_FD
14784         parameter and NULL as the file name.  That caused failure with
14785         errno == EFAULT on FreeBSD-8.0-rc2
14786
14787 2009-11-07  Eric Blake  <ebb9@byu.net>
14788
14789         fflush, freadseek: use fseeko, not fseek
14790         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14791         (clear_ungetc_buffer): Avoid potential problems on large files.
14792         * lib/freadseek.c (freadseek): Likewise.
14793         * modules/freadseek (Depends-on): Add fseeko.
14794         * modules/fseek (configure.ac): Set a witness.
14795         * tests/test-fflush.c (main): Use fseeko.
14796         * tests/test-fpurge.c (fseek): Disable link warning.
14797         * tests/test-freadable.c (fseek): Likewise.
14798         * tests/test-freading.c (fseek): Likewise.
14799         * tests/test-fseeko.c (fseek): Likewise.
14800         * tests/test-ftell.c (fseek): Likewise.
14801         * tests/test-ftello.c (fseek): Likewise.
14802         * tests/test-fwritable.c (fseek): Likewise.
14803         * tests/test-fwriting.c (fseek): Likewise.
14804
14805 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14806
14807         * modules/memchr (Depends-on): Drop getpagesize dependency.
14808
14809 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14810
14811         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14812         Reported by Ludovic Courtès.
14813         * build-aux/pmccabe2html: Improve example usage.
14814         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14815
14816 2009-11-06  Jim Meyering  <meyering@redhat.com>
14817
14818         do-release-commit-and-tag: New module.
14819         Automate the release-commit and tag process.
14820         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14821         * modules/do-release-commit-and-tag: New file.
14822         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14823
14824 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14825
14826         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14827         because test-select.c uses inet_pton.
14828
14829 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14830
14831         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14832         GETADDRINFO_LIB.  Bump serial number.
14833         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14834         Suggested by Eric Blake <ebb9@byu.net>.
14835
14836 2009-11-05  Eric Blake  <ebb9@byu.net>
14837
14838         strtod: detect darwin bug
14839         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14840         Reported by Leo Davis.
14841
14842         freopen-safer: new module
14843         * modules/freopen-safer: New module.
14844         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14845         * lib/freopen-safer.c (freopen_safer): New file.
14846         * lib/stdio-safer.h (freopen_safer): New declaration.
14847         * lib/stdio--.h (freopen): New override.
14848         * MODULES.html.sh (File stream based Input/Output): Mention it.
14849         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14850         freopen-safer module.
14851         * doc/posix-functions/stderr.texi (stderr): Likewise.
14852         * doc/posix-functions/stdin.texi (stdin): Likewise.
14853         * doc/posix-functions/stdout.texi (stdout): Likewise.
14854         * modules/freopen-safer-tests: New test.
14855         * tests/test-reopen-safer.c: New file.
14856
14857 2009-11-05  Jim Meyering  <meyering@redhat.com>
14858
14859         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14860         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14861
14862 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14863
14864         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14865
14866 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14867
14868         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14869
14870 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14871
14872         Fix link error.
14873         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14874         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14875
14876 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14877
14878         * tests/test-func.c: Also test value of __func__.
14879
14880 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14881
14882         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14883         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14884
14885 2009-11-05  Bruno Haible  <bruno@clisp.org>
14886
14887         Fix link error.
14888         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14889         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14890         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14891
14892 2009-11-05  Bruno Haible  <bruno@clisp.org>
14893
14894         Tests for module 'inet_pton'.
14895         * modules/inet_pton-tests: New file.
14896         * tests/test-inet_pton.c: New file.
14897
14898 2009-11-05  Bruno Haible  <bruno@clisp.org>
14899
14900         Tests for module 'inet_ntop'.
14901         * modules/inet_ntop-tests: New file.
14902         * tests/test-inet_ntop.c: New file.
14903
14904 2009-11-04  Eric Blake  <ebb9@byu.net>
14905
14906         stdlib-safer: wrap all mkstemp variants
14907         * modules/mkostemp (configure.ac): Set witness.
14908         * modules/mkostemps (configure.ac): Likewise.
14909         * modules/mkstemps (configure.ac): Likewise.
14910         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14911         (mkstemps_safer): Wrap more functions.
14912         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14913         wrapping.
14914         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14915         (mkstemps_safer): Implement the wrappers.
14916
14917         mkstemps, mkostemps: new modules
14918         * modules/mkostemps: New module.
14919         * modules/mkstemps: Likewise.
14920         * lib/mkostemps.c (mkostemps): New file.
14921         * lib/mkstemps.c (mkstemps): Likewise.
14922         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14923         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14925         * modules/stdlib (Makefile.am): Substitute them.
14926         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14927         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14928         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14929         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14930         * MODULES.html.sh (File system functions): Mention them.
14931
14932         tempname: resync from glibc
14933         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14934         same values for __GT_FILE as glibc.  Abort even when assertions
14935         are disabled.
14936         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
14937         match its value otherwise.  Allow idempotent inclusion.
14938         * lib/mkdtemp.c (mkdtemp): Adjust caller.
14939         * lib/mkostemp.c (mkostemp): Likewise.
14940         * lib/mkstemp.c (mkstemp): Likewise.
14941         * lib/tmpfile.c (tmpfile): Likewise.
14942         * NEWS: Document this.
14943
14944         utimens: fix use of futimens on older Linux
14945         * lib/utimens.c (fdutimens): Use updated, rather than original,
14946         timespec to avoid bug in older Linux kernel.
14947         Reported by Simon Josefsson.
14948
14949 2009-11-04  Bruno Haible  <bruno@clisp.org>
14950
14951         Make num_processors more flexible and consistent.
14952         * lib/nproc.h (enum nproc_query): New type.
14953         (num_processors): Add a 'query' argument.
14954         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
14955         (num_processors): Add a 'query' argument. Test the value of the
14956         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
14957         mingw, count the number of CPUs available for the current process.
14958         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
14959         Check for sched_getaffinity and sched_getaffinity_np.
14960         * modules/nproc (Depends-on): Add c-ctype, extensions.
14961         * NEWS: Mention the change.
14962
14963 2009-11-03  Bruno Haible  <bruno@clisp.org>
14964
14965         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
14966
14967 2009-11-03  Jim Meyering  <meyering@redhat.com>
14968
14969         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
14970         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
14971         if it is defined.
14972
14973 2009-11-02  Eric Blake  <ebb9@byu.net>
14974
14975         mktime, timegm: share common declaration
14976         * lib/mktime-internal.h: New file.
14977         * lib/mktime.c: Use it rather than open-coding a declaration.
14978         * lib/timegm.c: Likewise.
14979         * modules/mktime (Files): Ship it.
14980         * modules/timegm (Files): Likewise.
14981         Suggested by Bruno Haible.
14982
14983         test-update-copyright: update test to match script changes
14984         * tests/test-update-copyright.sh: Avoid hard-coding perl
14985         location.  Don't update *.bak created by earlier runs.
14986
14987 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14988             Simon Josefsson  <simon@josefsson.org>
14989             Bruno Haible  <bruno@clisp.org>
14990
14991         Fix link error on Solaris 8.
14992         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
14993         also in libnsl. Define also INET_PTON_LIB.
14994         * modules/inet_pton (Link): New section.
14995
14996 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14997             Bruno Haible  <bruno@clisp.org>
14998
14999         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15000         * modules/inet_ntop (Link): New section.
15001         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15002
15003 2009-11-02  Eric Blake  <ebb9@byu.net>
15004
15005         maint: avoid compiler warnings in m4 macros
15006         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15007         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15008
15009 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15010
15011         * m4/pmccabe2html.m4: Remove file.
15012         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15013         function.  Change maintainer.
15014         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15015         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15016         Courtès).
15017
15018 2009-10-31  Eric Blake  <ebb9@byu.net>
15019
15020         fseeko: fix m4 regression
15021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15022         regression from 2009-10-27.
15023         Reported by Ralf Wildenhues.
15024
15025 2009-10-31  Jim Meyering  <meyering@redhat.com>
15026
15027         inttostr: aesthetics and improved (compile-time) safety
15028         Define inttype_is_signed rather than inttype_is_unsigned,
15029         since the sole use is via "#if inttype_is_signed".
15030         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15031         inttype_is_unsigned.
15032         * lib/offtostr.c (inttype_is_signed): Likewise.
15033         * lib/uinttostr.c (inttype_is_signed): Likewise.
15034         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15035         * lib/inttostr.c (inttostr): Use verify to cross-check the
15036         inttype_is_signed value and the signedness of the actual type.
15037         * modules/inttostr (Depends-on): Add verify.
15038
15039 2009-10-30  Eric Blake  <ebb9@byu.net>
15040
15041         build: avoid compiler warnings
15042         * lib/fchmodat.c (lchmod): Mark unused variables.
15043         * lib/getopt.c (_getopt_initialize): Likewise.
15044         * lib/mktime.c (__mktime_internal): Provide prototype.
15045         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15046         older gcc that do not understand #pragma GCC diagnostic.
15047         * lib/uinttostr.c (inttype_is_unsigned): Define.
15048         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15049
15050 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15051
15052         stat: fix compilation on AIX
15053         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15054         only see struct stat64.
15055
15056 2009-10-30  Eric Blake  <ebb9@byu.net>
15057
15058         exclude: make more robust
15059         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15060         rather than masking a coding bug.
15061         Suggested by Bruno Haible.
15062
15063 2009-10-30  Jim Meyering  <meyering@redhat.com>
15064
15065         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15066         Rather than putting #!/usr/bin/perl on the first line,
15067         start with a variant of what's recommended by "man perlrun" that
15068         invokes the first "perl" program from your shell's search path.
15069         * build-aux/gitlog-to-changelog: Replace #!... as above.
15070         Add a "Local Variables" perl mode setting.
15071         Prompted by a patch from Ludovic Courtès.
15072         Improved by Eric Blake.
15073         * build-aux/useless-if-before-free: Likewise.
15074         * build-aux/announce-gen: Likewise.
15075         * build-aux/update-copyright: Likewise.
15076
15077 2009-10-29  Eric Blake  <ebb9@byu.net>
15078
15079         filenamecat-lgpl: adjust clients
15080         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15081         filenamecat.
15082         * modules/renameat (Depends-on): Likewise.
15083
15084         filenamecat: split into filenamecat-lgpl
15085         * modules/filenamecat-lgpl: New module.
15086         * modules/filenamecat (Files): Move library-safe files into
15087         filenamecat-lgpl.
15088         (Depends-on): Add filenamecat-lgpl.
15089         (configure.ac): Declare witness.
15090         * lib/filenamecat.h (file_name_concat): Only declare when using
15091         GPL module.
15092         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15093         Move...
15094         * lib/filenamecat-lgpl.c: ...into new file.
15095         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15096         (gl_FILE_NAME_CONCAT): Use it.
15097         * MODULES.html.sh (File system functions): Mention new module.
15098
15099         argp: avoid memory leak
15100         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15101         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15102         base_name, since the latter malloc()s and can call exit().
15103         Leak introduced 2006-07-03.
15104
15105         dirname-lgpl: adjust clients that don't need full dirname
15106         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15107         * modules/filenamecat (Depends-on): Likewise.
15108         * modules/linkat (Depends-on): Likewise.
15109         * modules/mkancesdirs (Depends-on): Likewise.
15110         * modules/mkdir (Depends-on): Likewise.
15111         * modules/openat (Depends-on): Likewise.
15112         * modules/savewd (Depends-on): Likewise.
15113         * modules/rename (Depends-on): Likewise.
15114         (License): Relax license.
15115         * modules/mkdir-tests (Depends-on): Drop progname.
15116         (Makefile.am): Delete unneeded LDADD.
15117         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15118
15119         dirname: split into dirname-lgpl
15120         * modules/dirname-lgpl: New module.
15121         * modules/dirname (Files): Move library-safe files into
15122         dirname-lgpl.
15123         (Depends-on): Add dirname-lgpl.
15124         (configure.ac): Declare witness.
15125         * modules/double-slash-root (License): Relax license.
15126         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15127         module.
15128         * lib/dirname.c (dir_len, mdir_name): Move...
15129         * lib/dirname-lgpl.c: ...into new file.
15130         * lib/basename.c (last_component, base_len): Move...
15131         * lib/basename-lgpl.c: ...into new file.
15132         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15133         (gl_DIRNAME): Use it.
15134         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15135         Mention new module.
15136         * modules/dirname-tests (Depends-on): Add progname.
15137         * tests/test-dirname.c (program_name): Delete.
15138
15139         mkdir: make safe for libraries
15140         * modules/mkdir (Depends-on): Drop xalloc.
15141         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15142         exit.
15143
15144         tests: avoid some compiler warnings
15145         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15146         literals.
15147         * tests/test-memchr.c (main): Avoid type mismatch.
15148         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15149         * tests/test-base64.c (main): Likewise.
15150         * tests/test-getdelim.c (main): Likewise.
15151         * tests/test-gethostname.c (main): Likewise.
15152         * tests/test-getline.c (main): Likewise.
15153         * tests/test-netinet_in.c (main): Likewise.
15154         * tests/test-select.c (open_server_socket, main): Likewise.
15155         * tests/test-select-stdin.c (main): Likewise.
15156         * tests/test-sockets.c (main): Likewise.
15157         * tests/test-strsignal.c (main): Likewise.
15158         * tests/test-sys_select.c (main): Likewise.
15159         * tests/test-sys_socket.c (main): Likewise.
15160         * tests/test-u64.c (main): Likewise.
15161         * tests/test-xfprintf-posix.c (main): Likewise.
15162         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15163
15164         sockets: avoid compiler warning
15165         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15166
15167         maint: detect usage(1) and other suspicious exits
15168         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15169
15170 2009-10-29  Jim Meyering  <meyering@redhat.com>
15171
15172         timespec: long-to-int truncation could make timespec_cmp malfunction
15173         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15174         a multiple of 2^32 nanoseconds as no difference.
15175
15176 2009-10-28  Jim Meyering  <meyering@redhat.com>
15177
15178         fprintftime: wrap macro code argument in "do {...} while(0)"
15179         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15180         cpy macro must be a statement that can be followed by a semicolon.
15181         Now that the else clause contains a comment and is hence longer
15182         than one line, I require curly braces.  That in turn requires
15183         that we wrap this code block in the standard do...while(0).
15184
15185         fprintftime: remove stray semicolon from previous change
15186         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15187
15188         fprintftime: avoid a warning about ignored fwrite return value
15189         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15190         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15191         that is unsafe.
15192         * modules/fprintftime (Depends-on): Add ignore-value.
15193
15194         exclude: avoid an unwarranted warning
15195         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15196
15197 2009-10-27  Eric Blake  <ebb9@byu.net>
15198
15199         fseek: avoid compilation failure when fflush is replaced
15200         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15201         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15202         module is in use.
15203         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15204         module is not in use; since REPLACE_FSEEK worked otherwise.
15205         (GNULIB_FTELLO): Likewise for ftell.
15206         Reported by Ian Beckwith and others.
15207
15208 2009-10-27  Bruno Haible  <bruno@clisp.org>
15209
15210         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15211         Reported by Jim Meyering.
15212
15213 2009-10-27  Jim Meyering  <jim@meyering.net>
15214             Bruno Haible  <bruno@clisp.org>
15215
15216         Avoid warning despite dropping the return value of fwrite.
15217         * lib/unicodeio.c: Include ignore-value.h.
15218         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15219         * modules/unicodeio (Depends-on): Add ignore-value.
15220
15221 2009-10-26  Eric Blake  <ebb9@byu.net>
15222
15223         areadlinkat: fix fallback path
15224         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15225         pointer and zero.
15226
15227 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15228
15229         Use a better IO block size for modern systems
15230         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15231         * lib/md2.c: Likewise.
15232         * lib/md4.c: Likewise.
15233         * lib/md5.c: Likewise.
15234         * lib/sha1.c: Likewise.
15235         * lib/sha256.c: Likewise.
15236         * lib/sha512.c: Likewise.
15237
15238 2009-10-22  Eric Blake  <ebb9@byu.net>
15239
15240         tests: avoid several compiler warnings
15241         * tests/test-getcwd.c (main): Avoid buffer underflow.
15242         * tests/test-getdate.c (main): String literals are not safe with
15243         putenv, so use setenv.  Declare unused argument.
15244         * modules/getdate-tests (Depends-on): Add setenv.
15245         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15246         problems with string literals in char *.
15247         * tests/test-hash.c (main): Avoid shadowing declaration.
15248         (insert_new): Treat string literals as char const *.
15249         * tests/test-getopt.h (test_getopt): Likewise.
15250         (getopt_loop): Alter types to minimize casting elsewhere.
15251         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15252         (test_getopt_long_posix): Likewise.
15253         (do_getopt_long): Add wrapper to minimize casting.
15254         * tests/test-atexit.c (clear_temp_file): Use void.
15255         * tests/test-areadlink-with-size.c (main): Declare unused
15256         arguments.
15257         * tests/test-areadlink.c (main): Likewise.
15258         * tests/test-areadlinkat-with-size.c (main): Likewise.
15259         * tests/test-areadlinkat.c (main): Likewise.
15260         * tests/test-canonicalize-lgpl.c (main): Likewise.
15261         * tests/test-canonicalize.c (main): Likewise.
15262         * tests/test-dirent-safer.c (main): Likewise.
15263         * tests/test-dirname.c (main): Likewise.
15264         * tests/test-dup2.c (main): Likewise.
15265         * tests/test-fchdir.c (main): Likewise.
15266         * tests/test-fcntl-h.c (main): Likewise.
15267         * tests/test-fcntl-safer.c (main): Likewise.
15268         * tests/test-fdopendir.c (main): Likewise.
15269         * tests/test-fdutimensat.c (main): Likewise.
15270         * tests/test-fflush.c (main): Likewise.
15271         * tests/test-filenamecat.c (main): Likewise.
15272         * tests/test-filevercmp.c (main): Likewise.
15273         * tests/test-fopen-safer.c (main): Likewise.
15274         * tests/test-fopen.c (main): Likewise.
15275         * tests/test-fpending.c (main): Likewise.
15276         * tests/test-fpurge.c (main): Likewise.
15277         * tests/test-freading.c (main): Likewise.
15278         * tests/test-fstatat.c (main): Likewise.
15279         * tests/test-fsync.c (main): Likewise.
15280         * tests/test-futimens.c (main): Likewise.
15281         * tests/test-getndelim2.c (main): Likewise.
15282         * tests/test-gettimeofday.c (main): Likewise.
15283         * tests/test-getopt.c (main): Likewise.
15284         * tests/test-i-ring.c (main): Likewise.
15285         * tests/test-inttypes.c (main): Likewise.
15286         * tests/test-link.c (main): Likewise.
15287         * tests/test-lstat.c (main): Likewise.
15288         * tests/test-math.c (main): Likewise.
15289         * tests/test-md5.c (main): Likewise.
15290         * tests/test-memchr2.c (main): Likewise.
15291         * tests/test-memrchr.c (main): Likewise.
15292         * tests/test-mkdir.c (main): Likewise.
15293         * tests/test-mkdirat.c (main): Likewise.
15294         * tests/test-mkfifoat.c (main): Likewise.
15295         * tests/test-open.c (main): Likewise.
15296         * tests/test-openat-safer.c (main): Likewise.
15297         * tests/test-openat.c (main): Likewise.
15298         * tests/test-quotearg.c (main): Likewise.
15299         * tests/test-rawmemchr.c (main): Likewise.
15300         * tests/test-readlink.c (main): Likewise.
15301         * tests/test-remove.c (main): Likewise.
15302         * tests/test-rename.c (main): Likewise.
15303         * tests/test-renameat.c (main): Likewise.
15304         * tests/test-rmdir.c (main): Likewise.
15305         * tests/test-sha1.c (main): Likewise.
15306         * tests/test-signal.c (main): Likewise.
15307         * tests/test-sigaction.c (main): Likewise.
15308         * tests/test-stat.c (main): Likewise.
15309         * tests/test-stat-time.c (main): Likewise.
15310         * tests/test-stddef.c (main): Likewise.
15311         * tests/test-stdint.c (main): Likewise.
15312         * tests/test-stdio.c (main): Likewise.
15313         * tests/test-stdlib.c (main): Likewise.
15314         * tests/test-strchrnul.c (main): Likewise.
15315         * tests/test-strerror.c (main): Likewise.
15316         * tests/test-string.c (main): Likewise.
15317         * tests/test-strtod.c (main): Likewise.
15318         * tests/test-strverscmp.c (main): Likewise.
15319         * tests/test-symlink.c (main): Likewise.
15320         * tests/test-symlinkat.c (main): Likewise.
15321         * tests/test-sys_stat.c (main): Likewise.
15322         * tests/test-sys_time.c (main): Likewise.
15323         * tests/test-time.c (main): Likewise.
15324         * tests/test-unistd.c (main): Likewise.
15325         * tests/test-unlink.c (main): Likewise.
15326         * tests/test-unlinkat.c (main): Likewise.
15327         * tests/test-utimens.c (main): Likewise.
15328         * tests/test-utimensat.c (main): Likewise.
15329         * tests/test-version-etc.c (main): Likewise.
15330         * tests/test-wchar.c (main): Likewise.
15331         * tests/test-wctype.c (main): Likewise.
15332         * tests/test-xprintf-posix.c (main): Likewise.
15333         * tests/test-posixtm.c (main): Likewise.
15334         (STREQ): Delete unused macro.
15335         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15336         shadowed variables.
15337         * tests/test-memchr.c (main): Likewise.
15338
15339 2009-10-21  Eric Blake  <ebb9@byu.net>
15340
15341         areadlinkat: avoid failure on older glibc
15342         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15343         rather than mis-comparing 0 against FUNC_RESULT of char*.
15344
15345 2009-10-21  Bruno Haible  <bruno@clisp.org>
15346
15347         * modules/stpncpy (License): Relicense under LGPLv2+.
15348         Reported by David Lutterkort <lutter@redhat.com>.
15349
15350 2009-10-20  Eric Blake  <ebb9@byu.net>
15351
15352         utimensat: work around Solaris 9 bug
15353         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15354         has trailing slash bugs.
15355         * tests/test-lutimens.h (test_lutimens): Enhance test.
15356         * tests/test-utimens.h (test_utimens): Likewise.
15357         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15358         * doc/posix-functions/utimes.texi (utimes): Likewise.
15359         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15360         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15361         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15362         * doc/posix-functions/futimens.texi (futimens): Likewise.
15363
15364         fdutimensat: new module
15365         * modules/fdutimensat: New file.
15366         * lib/fdutimensat.c (fdutimensat): Likewise.
15367         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15368         * MODULES.html.sh (File system functions): Mention module.
15369         * modules/fdutimensat-tests: New test.
15370         * tests/test-fdutimensat.c: Likewise.
15371
15372         doc: regenerate INSTALL
15373         * doc/INSTALL: Reflect recent autoconf update.
15374         * doc/INSTALL.ISO: Likewise.
15375         * doc/INSTALL.UTF-8: Likewise.
15376
15377 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15378
15379         acl: warn if ACL support is not detected
15380         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15381
15382 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15383
15384         * lib/nproc.h: Add extern "C" block for C++.
15385
15386 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15387             Bruno Haible  <bruno@clisp.org>
15388
15389         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15390         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15391         * doc/posix-functions/isalpha.texi: Likewise.
15392         * doc/posix-functions/isblank.texi: Likewise.
15393         * doc/posix-functions/iscntrl.texi: Likewise.
15394         * doc/posix-functions/isdigit.texi: Likewise.
15395         * doc/posix-functions/isgraph.texi: Likewise.
15396         * doc/posix-functions/islower.texi: Likewise.
15397         * doc/posix-functions/isprint.texi: Likewise.
15398         * doc/posix-functions/ispunct.texi: Likewise.
15399         * doc/posix-functions/isspace.texi: Likewise.
15400         * doc/posix-functions/isupper.texi: Likewise.
15401         * doc/posix-functions/isxdigit.texi: Likewise.
15402
15403 2009-10-18  Bruno Haible  <bruno@clisp.org>
15404
15405         Tests for module 'isblank'.
15406         * modules/isblank-tests: New file.
15407         * tests/test-isblank.c: New file.
15408
15409         New module 'isblank'.
15410         * lib/isblank.c: New file.
15411         * m4/isblank.m4: New file.
15412         * modules/isblank: New file.
15413         * doc/posix-functions/isblank.texi: Mention the new module.
15414
15415 2009-10-18  Bruno Haible  <bruno@clisp.org>
15416
15417         New module 'ctype'.
15418         * lib/ctype.in.h: New file.
15419         * m4/ctype.m4: New file.
15420         * modules/ctype: New file.
15421         * doc/posix-headers/ctype.texi: Mention the new module.
15422
15423 2009-10-18  Jim Meyering  <meyering@redhat.com>
15424
15425         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15426         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15427         right after its initialization, rather than farther down.
15428         Keeping these in close proximity makes it easier to ensure
15429         that each such variable is initialized.  E.g.,
15430
15431             LIB_CLOCK_GETTIME=
15432             AC_SUBST([LIB_CLOCK_GETTIME])
15433
15434         This change also increments these serial numbers.
15435         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15436         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15437         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15438
15439 2009-10-18  Bruno Haible  <bruno@clisp.org>
15440
15441         Don't let environment variables perturb build.
15442         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15443         (gl_PREREQ_GETHRXTIME): ... not here.
15444
15445 2009-10-18  Bruno Haible  <bruno@clisp.org>
15446
15447         Avoid symlink attack in localcharset module.
15448         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15449         (O_NOFOLLOW): Define fallback.
15450         (get_charset_aliases): Don't open the file if it is a symbolic link.
15451         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15452         gl_FCNTL_H.
15453         (gl_FCNTL_H): Require it.
15454         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15455         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15456         Reported by Fergal Glynn <fglynn@veracode.com>.
15457
15458 2009-10-18  Bruno Haible  <bruno@clisp.org>
15459
15460         Implement nproc for mingw.
15461         * lib/nproc.c: Include <windows.h>
15462         (num_processors): On native Windows platforms, try GetSystemInfo.
15463
15464 2009-10-18  Bruno Haible  <bruno@clisp.org>
15465
15466         Implement nproc for IRIX.
15467         * lib/nproc.c: Include <sys/sysmp.h>.
15468         (num_processors): On IRIX systems, try sysmp.
15469         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15470
15471 2009-10-18  Bruno Haible  <bruno@clisp.org>
15472
15473         Implement nproc for HP-UX.
15474         * lib/nproc.c: Include <sys/pstat.h>
15475         (num_processors): On HP-UX systems, try pstat_getdynamic.
15476         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15477         pstat_getdynamic.
15478
15479 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15480             Bruno Haible  <bruno@clisp.org>
15481
15482         Implement nproc for NetBSD, OpenBSD.
15483         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15484         (ARRAY_SIZE): New macro.
15485         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15486         * m4/nproc.m4: New file.
15487         * modules/nproc (Files): Add m4/nproc.m4.
15488         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15489         (Makefile.am): Instead, augment lib_SOURCES.
15490
15491 2009-10-18  Bruno Haible  <bruno@clisp.org>
15492
15493         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15494         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15495         sys/param.h.
15496
15497 2009-10-16  Eric Blake  <ebb9@byu.net>
15498
15499         utimensat: new module
15500         * modules/utimensat: New file.
15501         * lib/utimensat.c (utimensat): Likewise.
15502         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15503         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15504         so we can work around Linux bugs.
15505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15506         * modules/sys_stat (Makefile.am): Substitute them.
15507         * lib/sys_stat.in.h (utimensat): Declare it.
15508         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15509         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15510         * modules/utimensat-tests: New test.
15511         * tests/test-utimensat.c: Likewise.
15512
15513         utimens: let lutimens work on non-symlinks
15514         * lib/utimens.c (lutimens): Fall back to utimens rather than
15515         failing with ENOSYS, when file is not a symlink.
15516         (utimens): Reduce redirection.
15517         * tests/test-lutimens.h (test_lutimens): Update test to cover
15518         non-symlinks.
15519         * tests/test-utimens.h (test_utimens): Update test to cover
15520         symlinks.
15521         * tests/test-utimens.c (main): Update caller.
15522
15523         utimens: cache whether utimensat syscall works
15524         * lib/utimens.c (utimensat_works_really): New cache variable.
15525         (fdutimens, lutimens): Use it to avoid failing syscall.
15526
15527         test-stat-time, test-utimens: improve portability
15528         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15529         ext4 on alpha, and for cygwin.
15530         * tests/test-utimens-common.h: New file.
15531         (nap): Factor delays into single function.
15532         * tests/test-lutimens.h (test_lutimens): Use new header.
15533         * tests/test-futimens.h (test_futimens): Likewise.
15534         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15535         timestamps to occur from same machine, as was done previously for
15536         test_utimens.
15537         * modules/utimens-tests (Files): Ship new file.
15538         * modules/futimens-tests (Files): Likewise.
15539         Reported in part by Jim Meyering.
15540
15541         sys_stat: sort replacement declarations
15542         * lib/sys_stat.in.h: Sort declarations.
15543         * lib/futimens.c (futimens): Fix typo.
15544
15545 2009-10-15  Jim Meyering  <meyering@redhat.com>
15546
15547         don't let environment settings perturb build
15548         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15549         could cause a configure-time and/or build-time malfunction.
15550         Typically, a configure-time function-in-library test is performed
15551         via code like this:
15552
15553           LIB_VAR=
15554           AC_SUBST([LIB_VAR])
15555           prefix_saved_LIBS=$LIBS
15556             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15557                        [test "$ac_cv_search_FUNC" = "none required" ||
15558                         LIB_VAR=$ac_cv_search_FUNC])
15559           LIBS=$prefix_saved_LIBS
15560
15561         However, in each of the files affected by this change, the LIB_VAR=
15562         initialization was omitted.  Thus, when set in the environment, its
15563         value would propagate into generated Makefiles when FUNC is not found
15564         in LIB_NAME.
15565         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15566         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15568
15569 2009-10-14  Eric Blake  <ebb9@byu.net>
15570
15571         fchdir: avoid infinite recursion in mingw
15572         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15573         recursing.
15574
15575         test-stat-time: port to mingw
15576         * tests/test-stat-time.c (force_unlink): Return a value.
15577         (test_ctime) [W32]: Fix compilation error.
15578         (nap): Don't call usleep with too large an argument.  Use
15579         force_unlink.
15580         * doc/pastposix-functions/usleep.texi (usleep): Document the
15581         portability issue.
15582
15583 2009-10-13  Jim Meyering  <meyering@redhat.com>
15584
15585         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15586         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15587         * modules/pipe-filter-ii: Likewise.
15588         * modules/sys_socket-tests: Likewise.
15589         * modules/tsearch-tests: Likewise.
15590         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15591         (check): Depend on it.
15592
15593 2009-10-12  Eric Blake  <ebb9@byu.net>
15594
15595         utimens-tests: port to NFS file systems
15596         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15597         comparisons to avoid spurious failures from timestamp drift
15598         between NFS machines.
15599
15600 2009-10-12  Eric Blake  <ebb9@byu.net>
15601
15602         stat-time-tests: minor cleanups
15603         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15604         * tests/test-stat-time.c (nap): Separate assignment from call.
15605         Suggested by Paolo Bonzini and Bruno Haible.
15606
15607         sys_stat: guarantee struct timespec
15608         * lib/sys_stat.in.h (includes): Always include <time.h>
15609         * modules/sys_stat (Depends-on): Add time.
15610         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15611         mode_t permission values.
15612         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15613         get at subsecond timestamps.
15614
15615 2009-10-10  Eric Blake  <ebb9@byu.net>
15616
15617         futimens: new module
15618         * modules/futimens: New file.
15619         * lib/futimens.c (futimens): Likewise.
15620         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15621         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15622         we can work around Linux bugs.
15623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15624         * modules/sys_stat (Makefile.am): Substitute them.
15625         * lib/sys_stat.in.h (futimens): Declare it.
15626         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15627         * doc/posix-functions/futimens.texi (futimens): Likewise.
15628         * modules/futimens-tests: New test.
15629         * tests/test-futimens.c: Likewise.
15630
15631         utimens: introduce fdutimens
15632         * lib/utimens.h (fdutimens): New prototype.
15633         * lib/utimens.c (gl_futimens): Move guts...
15634         (fdutimens): ...to new interface.
15635         * tests/test-utimens.c (do_fdutimens): Use it.
15636
15637         utimens: add UTIME_NOW and UTIME_OMIT support
15638         * lib/utimens.c (validate_timespec, update_timespec): New helper
15639         functions.
15640         (gl_futimens, lutimens): Use them.
15641         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15642         stdbool, sys_stat.
15643         (Link): Mention resulting library dependency.
15644         * modules/utimecmp (Link): Likewise.
15645         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15646         (Makefile.am): Pick up library dependency.
15647         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15648         definition.
15649         * tests/test-sys_stat.c: Test the definitions.
15650         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15651         * NEWS: Document library dependency.
15652
15653         utimecmp: support symlink timestamps
15654         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15655         hashing when possible.  Use pathconf when available.
15656         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15657         * modules/utimecmp (Depends-on): Add lstat.
15658
15659         utimens: add lutimens interface
15660         * lib/utimens.c (lutimens): New function.
15661         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15662         * lib/utimens.h (lutimens): Declare new interface.
15663         * tests/test-utimens.c (main): Enhance test.
15664         * tests/test-lutimens.h (test_lutimens): New file.
15665         * modules/utimens-tests (Files): Distribute it.
15666         (Depends-on): Add symlink.
15667         (configure.ac): Check for usleep.
15668
15669         utimens: validate futimens usage
15670         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15671         fewer syscalls on failure later on.  Avoid compiler warning on
15672         mingw.
15673         * modules/utimens (Depends-on): Add dup2.
15674
15675         utimens: add test
15676         * modules/utimens-tests: New test.
15677         * tests/test-utimens.h: New file.
15678         * tests/test-futimens.h: Likewise.
15679         * tests/test-utimens.c: Likewise.
15680
15681         doc: mention timestamp portability issues
15682         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15683         instead.
15684         * doc/posix-functions/utime.texi (utime): Likewise.
15685         * doc/posix-functions/utimes.texi (utimes): Likewise.
15686         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15687         instead.
15688         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15689         module.
15690         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15691         Mention weakness with symlink timestamps.
15692         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15693         to utimensat/futimens instead.
15694         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15695
15696         test-dup2: enhance test
15697         * tests/test-dup2.c (main): Also check AT_FDCWD.
15698
15699         test-stat-time: avoid more spurious failures
15700         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15701         xfs; and avoid race if the two timestamps cross quantization edge.
15702
15703         relocatable: prefer 'file system' over 'filesystem'
15704         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15705         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15706         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15707         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15708         * lib/relocatable.c (compute_curr_prefix): Likewise.
15709
15710 2009-10-10  Jim Meyering  <meyering@redhat.com>
15711
15712         stat-time-tests: check for the usleep function
15713         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15714
15715 2009-10-10  Bruno Haible  <bruno@clisp.org>
15716
15717         * modules/xnanosleep: Put the Link section after the Include section.
15718
15719 2009-10-09  Eric Blake  <ebb9@byu.net>
15720
15721         dup2: work around FreeBSD 6.1 bug
15722         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15723         * doc/posix-functions/dup2.texi (dup2): Document it.
15724         Reported by Nelson H. F. Beebe and Jim Meyering.
15725
15726         test-stat-time: port to buggy NFS clients
15727         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15728         (test_ctime): Also skip test if mtime and ctime are skewed.
15729
15730         maint: prefer 'file system' over 'filesystem'
15731         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15732         * doc/posix-functions/lstat.texi (lstat): Likewise.
15733         * lib/file-has-acl.c (file_has_acl): Likewise.
15734         * lib/fwriteerror.c [TEST]: Likewise.
15735         * tests/test-areadlink.h (test_areadlink): Likewise.
15736         * tests/test-areadlinkat-with-size.c (main): Likewise.
15737         * tests/test-areadlinkat.c (main): Likewise.
15738         * tests/test-canonicalize-lgpl.c (main): Likewise.
15739         * tests/test-canonicalize.c (main): Likewise.
15740         * tests/test-fstatat.c (main): Likewise.
15741         * tests/test-linkat.c (main): Likewise.
15742         * tests/test-lstat.h (test_lstat_func): Likewise.
15743         * tests/test-mkdir.h (test_mkdir): Likewise.
15744         * tests/test-readlink.h (test_readlink): Likewise.
15745         * tests/test-remove.c (main): Likewise.
15746         * tests/test-rename.h (test_rename): Likewise.
15747         * tests/test-renameat.c (main): Likewise.
15748         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15749         * tests/test-symlink.h (test_symlink): Likewise.
15750         * tests/test-symlinkat.c (main): Likewise.
15751         * tests/test-unlink.h (test_unlink_func): Likewise.
15752         * tests/test-unlinkat.c (main): Likewise.
15753
15754         maint: make realtime library usage explicit
15755         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15756         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15757         * modules/settime (Link): Likewise.
15758         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15759
15760         test-stat-time: speed up execution
15761         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15762         warning on mingw.
15763         (nap): New helper function.
15764         (prepare_test): Use it to reduce sleep time.
15765         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15766         execution.
15767         * modules/stat-time-tests (configure.ac): Check for usleep.
15768
15769 2009-10-09  Jim Meyering  <meyering@redhat.com>
15770
15771         selinux-h: always use getfilecon wrappers
15772         * lib/getfilecon.c: New file.
15773         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15774         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15775         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15776         (fgetfilecon): Provide a stub.
15777         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15778         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15779         file unconditionally.
15780         When <selinux/selinux.h> is found, arrange to use wrappers.
15781         * modules/selinux-h (Files): Add getfilecon.c.
15782         (Makefile.am): Substitute include-next-related bits
15783         into the now-always-generated selinux/selinux.h file.
15784         * doc/glibc-functions/lgetfilecon.texi: New file.
15785         * doc/glibc-functions/fgetfilecon.texi: New file.
15786         * doc/glibc-functions/getfilecon.texi: New file.
15787         * doc/glibc-functions/getfilecon-desc.texi: New file.
15788         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15789         which to pull in the new files.
15790         * MODULES.html.sh (Misc): Add selinux-h.
15791
15792 2009-10-08  Jim Meyering  <meyering@redhat.com>
15793
15794         unistd: fix comment typo
15795         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15796
15797 2009-10-08  Eric Blake  <ebb9@byu.net>
15798
15799         areadlink: use SIZE_MAX consistently
15800         * modules/areadlink (Depends-on): Add stdint.
15801         * modules/areadlink-with-size (Depends-on): Likewise.
15802         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15803         gives NULL; drop sys/types, since unistd gives size_t; and add
15804         stdint for SIZE_MAX.
15805         (SIZE_MAX): Rely on headers.
15806         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15807         and add stdint.
15808         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15809         (SIZE_MAX): Likewise.
15810         (INITIAL_BUF_SIZE): Turn into enum.
15811         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15812
15813 2009-10-08  Jim Meyering  <meyering@redhat.com>
15814
15815         areadlinkat: avoid compilation failure
15816         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15817         Fix typo in comment.
15818
15819 2009-10-07  Eric Blake  <ebb9@byu.net>
15820
15821         areadlinkat-with-size: new module
15822         * modules/areadlinkat-with-size: New module.
15823         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15824         * lib/areadlink.h (areadlinkat): Declare it.
15825         * MODULES.html.sh (File system functions): Mention it.
15826         * modules/areadlinkat-with-size-tests: New test.
15827         * tests/test-areadlinkat-with-size.c: New file.
15828
15829         xreadlinkat: new module
15830         * modules/xreadlinkat: New module.
15831         * lib/xreadlinkat.c (xreadlinkat): New file.
15832         * lib/xreadlink.h (xreadlinkat): Declare it.
15833         * MODULES.html.sh (File system functions): Mention it.
15834
15835         areadlinkat: new module
15836         * lib/at-func.c (FUNC_FAIL): New define.
15837         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15838         * modules/areadlinkat: New module.
15839         * lib/linkat.c (areadlinkat): Move...
15840         * lib/areadlinkat.c (areadlinkat): ...to new file.
15841         * lib/areadlink.h (areadlinkat): Declare it.
15842         * modules/linkat (Depends-on): Add areadlinkat.
15843         * MODULES.html.sh (File system functions): Mention it.
15844         * modules/areadlinkat-tests: New test.
15845         * tests/test-areadlinkat.c: New file.
15846
15847         areadlink, areadlink-with-size: add tests
15848         * modules/areadlink-tests: New test.
15849         * modules/areadlink-with-size-tests: Likewise.
15850         * tests/test-areadlink.h: New file.
15851         * tests/test-areadlink.c: Likewise.
15852         * tests/test-areadlink-with-size.c: Likewise.
15853
15854         maint: minor cleanups
15855         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15856         _UNUSED_PARAMETER_ instead.
15857         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15858         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15859         * modules/linkat-tests (Files): Distribute test-link.h.
15860
15861         openat, utimens: whitespace cleanup
15862         * lib/openat.c: Prefer space throughout, rather than mix of 8
15863         spaces vs. tabs.
15864         * lib/at-func.c: Likewise.
15865         * lib/utimens.c: Likewise.
15866
15867         openat: avoid using wrong fd
15868         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15869         working directory chooses same fd.
15870         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15871
15872         mkdir, mkdirat: fix cygwin 1.5.x bug
15873         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15874         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15875         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15876         bug.
15877         (gl_PREREQ_MKDIR): Delete unused macro.
15878         * modules/mkdir (Files): Track file rename.
15879         (configure.ac): Update macro name.
15880         * modules/openat (Depends-on): Add mkdir.
15881         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15882
15883         mkdir, mkdirat: add tests
15884         * modules/mkdir-tests: New test.
15885         * tests/test-mkdir.h: New file.
15886         * tests/test-mkdir.c: Likewise.
15887         * tests/test-mkdirat.c: Likewise.
15888         * modules/openat-tests (Files): Add new files.
15889         (Makefile.am): Run new test.
15890
15891 2009-10-06  Eric Blake  <ebb9@byu.net>
15892
15893         doc: tweak *at function documentation
15894         * doc/posix-functions/faccessat.texi (faccessat): Mention
15895         known issue with replacement.
15896         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15897         * doc/posix-functions/linkat.texi (linkat): Likewise.
15898         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15899         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15900         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15901         * doc/posix-functions/renameat.texi (renameat): Likewise.
15902         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15903
15904         openat: fix GNU/Hurd bug in unlinkat
15905         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15906         broken.
15907         * doc/posix-functions/unlink.texi (unlink): Document this.
15908         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15909
15910         fdopendir: fix GNU/Hurd bug
15911         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15912         allowing non-directory fds.
15913         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15914         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15915         * modules/dirent (Makefile.am): Substitute it.
15916         * lib/dirent.in.h (fdopendir): Declare replacement.
15917         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15918         * tests/test-fdopendir.c (main): Test something other than
15919         /dev/null, since on Hurd that behaves like a directory.
15920
15921         test-symlink: port to GNU/Hurd
15922         * tests/test-symlink.h (test_symlink): Relax expected errno.
15923
15924         doc: tweak more cygwin information
15925         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15926         now compatible with glibc.
15927         * doc/posix-functions/getopt.texi (getopt): Likewise.
15928
15929         getopt-gnu: add another test
15930         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15931         guarantee behavior relied on by m4.
15932         * tests/test-getopt.c (main): Use it.
15933         * modules/getopt-posix-tests (Depends-on): Add setenv.
15934         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15935
15936         getopt: fix compilation on darwin
15937         * lib/getopt.in.h (includes): Leave breadcrumbs during system
15938         include.
15939         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
15940         Reported by Ludovic Courtès.
15941
15942 2009-10-06  Bruno Haible  <bruno@clisp.org>
15943
15944         * modules/size_max (Description): Discourage its use.
15945         Reported by Simon Josefsson.
15946
15947 2009-10-06  Jim Meyering  <meyering@redhat.com>
15948
15949         linkat: avoid compilation failure
15950         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
15951
15952 2009-10-05  Eric Blake  <ebb9@byu.net>
15953
15954         linkat: support Linux 2.6.17
15955         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
15956         linkat on Linux, but allow cache variable override.
15957         * lib/linkat.c (rpl_linkat): Define override.
15958         * modules/linkat (Depends-on): Add symlinkat.
15959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
15960         * modules/unistd (Makefile.am): Substitute it.
15961         * lib/unistd.in.h (linkat): Declare replacement.
15962         Reported by Pádraig Brady.
15963
15964         quotearg: port test to systems with C.UTF-8 locale
15965         * tests/test-quotearg.c (struct result_strings): Add another
15966         member, differentiating between C.ASCII and C.UTF-8 handling.
15967         (compare_strings): Add parameter.
15968         (main): Adjust all callers.
15969
15970         getopt: avoid clash with FreeBSD _getopt_internal
15971         * lib/getopt.in.h (_getopt_internal): Override the name.
15972         * lib/getopt_int.h (includes): Pick up any overrides.
15973         Reported by Reuben Thomas.
15974
15975         hash: allow C89 compilation
15976         * lib/hash.c (check_tuning): Move declaration before statement.
15977         Reported by Reuben Thomas.
15978
15979 2009-10-05  Karl Berry  <karl@gnu.org>
15980
15981         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
15982
15983 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
15984             Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/uname.c (uname): Use a table-driven algorithm to compute
15987         Windows NT versions.
15988
15989 2009-10-04  Bruno Haible  <bruno@clisp.org>
15990
15991         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
15992         program_invocation_short_name.
15993         * modules/progname (configure.ac): Test for presence of
15994         program_invocation_short_name.
15995         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15996
15997 2009-10-04  Bruno Haible  <bruno@clisp.org>
15998
15999         * lib/progname.c (set_program_name): Fix comment.
16000         Reported by Jim Meyering.
16001
16002 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16003             Bruno Haible  <bruno@clisp.org>
16004
16005         * lib/uname.c: Include <string.h>.
16006         (uname): Do only one call to GetVersionEx in the common case.
16007
16008 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16009             Bruno Haible  <bruno@clisp.org>
16010
16011         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16012         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16013         (uname): Add support for Windows CE and various non-x86 CPU types.
16014
16015 2009-10-03  Bruno Haible  <bruno@clisp.org>
16016
16017         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16018         invocation to tests/configure.ac.
16019         Reported by Ian Beckwith <ianb@erislabs.net>.
16020
16021 2009-10-02  Eric Blake  <ebb9@byu.net>
16022
16023         fchdir: avoid compiler warning
16024         * lib/fchdir.c (canonicalize_file_name)
16025         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16026
16027         test-open: support mingw errno values
16028         * tests/test-open.h (test_open): Relax test.
16029         * tests/test-fopen.h (test_fopen): Likewise.
16030         * tests/test-openat-safer.c (main): Likewise.
16031
16032         open: fix opening directory on mingw
16033         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16034
16035         test-open: on GNU/Hurd, /dev/null is a directory
16036         * tests/test-fopen.h (main): Rename...
16037         (test_fopen): ...to this.  Use a guaranteed non-directory when
16038         confirming open behavior on trailing slash.
16039         * tests/test-openat-safer.c (main): Likewise.
16040         * tests/test-open.h (main): Likewise....
16041         (test_open): ...to this.
16042         * tests/test-fopen.c (main): Adjust caller.
16043         * tests/test-fopen-safer.c (main): Likewise.
16044         * tests/test-open.c (main): Likewise.
16045         * tests/test-fcntl-safer.c (main): Likewise.
16046         Reported by Samuel Thibault.
16047
16048         rename, fchdir: don't ignore chdir failure
16049         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16050         * lib/rename.c (rpl_rename) [W32]: Likewise.
16051         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16052         an empty destination directory if source cannot be renamed,
16053         although there is still possibility for failure.
16054         * doc/posix-functions/rename.texi (rename): Document the race.
16055         Reported by Jim Meyering.
16056
16057         maint: cleanup whitespace in recent commits
16058         * lib/rename.c (rpl_rename): Remove tabs.
16059         * tests/test-link.h (test_link): Likewise.
16060         * lib/fchdir.c (get_name): Likewise.
16061         Reported by Jim Meyering.
16062
16063 2009-10-02  Ben Pfaff  <blp@gnu.org>
16064
16065         relocatable-prog-wrapper: Add missing dependency on
16066         double-slash-root.
16067         * modules/relocatable-prog-wrapper: Add dependency.
16068         Reported by Ian Beckwith <ianb@erislabs.net>.
16069
16070 2009-10-02  Eric Blake  <ebb9@byu.net>
16071
16072         renameat: fix Solaris bugs
16073         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16074         needed fixing.
16075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16076         * modules/stdio (Makefile.am): Substitute it.
16077         * lib/stdio.in.h (renameat): Declare replacement.
16078         * lib/renameat.c (rpl_renameat): Implement fix.
16079
16080         renameat: new module
16081         * modules/renameat: New file.
16082         * lib/renameat.c (renameat): Likewise.
16083         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16085         * modules/stdio (Makefile.am): Substitute them.
16086         * lib/stdio.in.h (renameat): Declare it.
16087         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16088         * doc/posix-functions/renameat.texi (renameat): Likewise.
16089         * modules/renameat-tests: New test.
16090         * tests/test-renameat.c: Likewise.
16091
16092         rename: fix mingw bugs
16093         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16094         directory overwrite bugs.
16095
16096         rename: fix another cygwin 1.5 bug
16097         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16098         checks.
16099         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16100         unnecessary cygwin workarounds.  Also work around bug with moving
16101         full directory onto an empty one.
16102         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16103
16104         rename-dest-slash: merge into rename module
16105         * modules/rename-dest-slash (Status): Mark obsolete.
16106         (Depends-on): Add rename.
16107         (Files): Let rename do it all.
16108         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16109         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16110         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16111         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16112         * lib/rename.c (rpl_rename): Update comments.
16113
16114         rename: fix cygwin 1.5.x bugs
16115         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16116         * lib/rename.c (rpl_rename): Work around them.
16117         * modules/rename (Depends-on): Add same-inode.
16118
16119         rename: fix Solaris 10 bug
16120         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16121         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16122         was the only bug.
16123
16124         rename: fix Solaris 9 bug
16125         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16126         on non-directory.  Avoid calling exit.
16127         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16128         strdup.
16129         * modules/rename-tests (Depends-on): Drop lstat.
16130         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16131         (gl_PREREQ_RENAME): Delete unused macro.
16132
16133         rename-dest-slash: fix NetBSD bug
16134         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16135         links.
16136         * modules/rename-dest-slash (Depends-on): Add same-inode.
16137
16138         rename-tests: new test, exposes several platform bugs
16139         * modules/rename-tests: New file.
16140         * tests/test-rename.h: Likewise.
16141         * tests/test-rename.c: Likewise.
16142         * doc/posix-functions/rename.texi (rename): Improve documentation,
16143         including bugs that will eventually be fixed in gnulib.
16144
16145 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16146
16147         * lib/uname.c: Include <stdlib.h>
16148         (uname): Assume version info is available.
16149
16150 2009-10-02  Jim Meyering  <meyering@redhat.com>
16151
16152         gnu-web-doc-update: correct --help output
16153         * build-aux/gnu-web-doc-update: Make --help output relevant.
16154
16155         gnu-web-doc-update: add standard options
16156         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16157
16158         gnu-web-doc-update: New module.
16159         Use this script to automatically update the on-line web documentation
16160         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16161         * modules/gnu-web-doc-update: New file, from coreutils.
16162         * build-aux/gnu-web-doc-update: New script.
16163
16164 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16165
16166         link: LoadLibrary is not needed.
16167         * lib/link.c: Use GetModuleHandle.
16168
16169 2009-10-01  Eric Blake  <ebb9@byu.net>
16170
16171         getopt: bump serial number
16172         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16173         change.
16174
16175         tests: tighten link, rmdir, and remove tests
16176         * tests/test-link.h (includes): No need to use <config.h> here.
16177         Clean up if directory hard link was created, otherwise test for
16178         trailing '.'.
16179         * tests/test-linkat.c (main): Simplify.
16180         * tests/test-remove.c (main): Enhance test for trailing '.'.
16181         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16182
16183 2009-10-01  Jim Meyering  <meyering@redhat.com>
16184
16185         maint.mk: requiring "make major" was annoying, for a "minor" release.
16186         What is intended is "stable", to contrast with alpha and beta,
16187         so require "make stable", not "make major".
16188         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16189         (get_tool_versions): Likewise.
16190         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16191
16192 2009-09-30  Ben Pfaff  <blp@gnu.org>
16193
16194         Fix broken build of replacement for Windows tmpfile().
16195         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16196         flags argument added along with the 'mkostemp' module.
16197
16198 2009-09-28  Bruno Haible  <bruno@clisp.org>
16199
16200         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16201         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16202         to 'remove_elt'.
16203         (gl_list_remove): Update.
16204         * lib/gl_list.c (gl_list_remove): Update.
16205         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16206         to 'remove_elt'.
16207         (gl_oset_remove): Update.
16208         * lib/gl_list.c (gl_oset_remove): Update.
16209         Reported by Eric Blake.
16210
16211 2009-09-28  Eric Blake  <ebb9@byu.net>
16212
16213         doc: mention yet more cygwin 1.7 status
16214         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16215         cygwin.
16216         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16217         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16218
16219         argp: fix test failure
16220         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16221         that are not upper-case.  Pass correct range to tolower.
16222
16223 2009-09-27  Jim Meyering  <meyering@redhat.com>
16224
16225         test-yesno: work around sparc-dash here-document infelicity
16226         Without this change, the literal \177 byte in a here document
16227         would make dash 0.5.5.1-3 access uninitialized memory.
16228         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16229         Instead, use a marker, "@", and filter through tr to create the desired
16230         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16231
16232 2009-09-27  Bruno Haible  <bruno@clisp.org>
16233
16234         Disable untested support for new flavours of ACLs on AIX.
16235         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16236         progress.
16237         * lib/set-mode-acl.c (qset_acl): Likewise.
16238
16239 2008-12-07  Bruno Haible  <bruno@clisp.org>
16240
16241         Add support for new flavours of ACLs on AIX. (Untested.)
16242         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16243         (file_has_acl): Add support for newer AIX.
16244         * lib/set-mode-acl.c (qset_acl): Likewise.
16245         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16246         Rainer Tammer <tammer@tammer.net>.
16247
16248 2009-09-26  Eric Blake  <ebb9@byu.net>
16249
16250         argp: fix compilation of getopt
16251         * lib/getopt.in.h (includes): Use different guard than glibc.
16252         Reported by Sergey Poznyakoff.
16253
16254         doc: mention more cygwin 1.7 status
16255         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16256         bug.
16257         * doc/posix-functions/execl.texi (execl): Likewise.
16258         * doc/posix-functions/execle.texi (execle): Likewise.
16259         * doc/posix-functions/execlp.texi (execlp): Likewise.
16260         * doc/posix-functions/execv.texi (execv): Likewise.
16261         * doc/posix-functions/execve.texi (execve): Likewise.
16262         * doc/posix-functions/execvp.texi (execvp): Likewise.
16263         * doc/glibc-functions/canonicalize_file_name.texi
16264         (canonicalize_file_name): Cygwin 1.7 now provides this.
16265         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16266         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16267         on AT_SYMLINK_NOFOLLOW.
16268
16269 2009-09-24  Eric Blake  <ebb9@byu.net>
16270
16271         test-linkat: make test more robust
16272         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16273
16274         getopt: fix inclusion guards for cygwin
16275         * modules/getopt-posix (Depends-on): Add include-next.
16276         (Makefile.am): Substitute more items in replacement header.
16277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16278         <getopt.h>.
16279         * lib/getopt.in.h (includes): Use split inclusion guard, and
16280         prefer <getopt.h> over include <unistd.h> when one is present.
16281         (option): Also override name of 'struct option'.
16282
16283         same-inode: revert prior change; it is not yet ready
16284         * NEWS: Undo mention of this change.
16285         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16286         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16287         * lib/cycle-check.c (cycle_check): Likewise.
16288         * lib/same.c (same_name): Likewise.
16289         * lib/at-func2.c (at_func2): Likewise.
16290
16291 2009-09-23  Eric Blake  <ebb9@byu.net>
16292
16293         linkat: new module
16294         * modules/linkat: New file.
16295         * lib/at-func2.c (at_func2): Likewise.
16296         * lib/linkat.c (linkat): Likewise.
16297         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16298         * lib/openat-priv.h (at_func2): Add declaration.
16299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16300         * modules/unistd (Makefile.am): Substitute them.
16301         * lib/unistd.in.h (linkat): Declare it.
16302         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16303         * doc/posix-functions/linkat.texi (linkat): Likewise.
16304         * doc/posix-functions/link.texi (link): Tweak wording.
16305         * tests/test-link.c (main): Move guts...
16306         * tests/test-link.h (test_link): ...into new file.
16307         * modules/linkat-tests: New test.
16308         * tests/test-linkat.c: Likewise.
16309         * modules/link-tests (Files): Ship new file.
16310         (Depends-on): Add stdbool.
16311
16312         dirname: add library-safe mdir_name
16313         * lib/dirname.h (mdir_name): New prototype.
16314         * lib/dirname.c (dir_name): Move guts...
16315         (mdir_name): ...to new function that avoids xalloc_die.
16316
16317         fchdir: another mingw fix
16318         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16319         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16320         on mingw (where it has not yet been ported), and make it optional
16321         elsewhere.
16322         (_gl_register_fd): Use it.
16323
16324         same-inode: make SAME_INODE tri-state, to port to mingw
16325         * NEWS: Mention this change.
16326         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16327         st_ino always being 0.
16328         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16329         * lib/cycle-check.c (cycle_check): Likewise.
16330         * lib/same.c (same_name): Likewise.
16331
16332         lstat: avoid mingw compilation error
16333         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16335         lstat ourselves.
16336         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16337         was adequate.
16338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16339         the checks for lstat.
16340         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16341
16342         link: fix test failure on Solaris 9
16343         * lib/link.c (rpl_link): Don't assume link will catch bogus
16344         trailing slash on source.
16345
16346         test-symlinkat: enhance test
16347         * tests/test-readlink.c (main): Move guts...
16348         * tests/test-readlink.h (test_readlink): ...into new file.
16349         * tests/test-symlink.c (main): Move guts...
16350         * tests/test-symlink.h (test_symlink): ...into new file.
16351         * tests/test-symlinkat.c (main): Use new files for further
16352         coverage.
16353         (do_symlink, do_readlink): New helper functions.
16354         * modules/symlink-tests (Files): Ship new file.
16355         (Depends-on): Add stdbool.
16356         * modules/readlink-tests (Files): Ship new file.
16357         (Depends-on): Add stdbool.
16358         * modules/symlinkat-tests (Files): Use new files.
16359
16360 2009-09-23  Eric Blake  <ebb9@byu.net>
16361
16362         readlink: document portability issue with symlink length
16363         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16364         systems have bogus st_size on symlinks, and mention the
16365         areadlink-with-size module.
16366         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16367         * doc/posix-functions/readlink.texi (readlink): Mention the
16368         areadlink module, and ERANGE failure.
16369         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16370         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16371
16372         readlink: fix Solaris 9 bug with trailing slash
16373         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16374         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16375         * doc/posix-functions/readlink.texi (readlink): Document this.
16376         * modules/readlink-tests: New test.
16377         * tests/test-readlink.c: Likewise.
16378
16379         readlink: fix cygwin 1.5.x bug with return type
16380         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16381         * lib/unistd.in.h (readlink): Use ssize_t.
16382         * lib/readlink.c (readlink): Likewise.
16383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16384         * modules/unistd (Makefile.am): Substitute it.
16385         * lib/unistd.in.h (readlink): Declare replacement.
16386         * doc/posix-functions/readlink.texi (readlink): Document this.
16387
16388         symlink: use throughout gnulib
16389         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16390         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16391         symlink is not used.
16392         * modules/symlinkat (Depends-on): Add symlink.
16393         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16394         * modules/canonicalize-tests (Depends-on): Likewise.
16395         * modules/lstat-tests (Depends-on): Likewise.
16396         * modules/openat-tests (Depends-on): Likewise.
16397         * modules/remove-tests (Depends-on): Likewise.
16398         * modules/rmdir-tests (Depends-on): Likewise.
16399         * modules/unlink-tests (Depends-on): Likewise.
16400         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16401         * tests/test-canonicalize.c (symlink): Likewise.
16402         * tests/test-fstatat.c (symlink): Likewise.
16403         * tests/test-lstat.c (symlink): Likewise.
16404         * tests/test-remove.c (symlink): Likewise.
16405         * tests/test-rmdir.c (symlink): Likewise.
16406         * tests/test-unlink.c (symlink): Likewise.
16407         * tests/test-unlinkat.c (symlink): Likewise.
16408
16409         symlink: new module, for Solaris 9 bug
16410         * modules/symlink: New file.
16411         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16412         * lib/symlink.c: Likewise.
16413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16414         * modules/unistd (Makefile.am): Substitute them.
16415         * lib/unistd.in.h (symlink): Declare replacement.
16416         * MODULES.html.sh (File system functions): Mention it.
16417         * doc/posix-functions/symlink.texi (symlink): Likewise.
16418         * modules/symlink-tests: New test.
16419         * tests/test-symlink.c: Likewise.
16420
16421 2009-09-23  Bruno Haible  <bruno@clisp.org>
16422
16423         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16424         when needed.
16425         Test case: gnulib-tool --import --with-tests atexit inttypes.
16426         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16427
16428 2009-09-23  Bruno Haible  <bruno@clisp.org>
16429
16430         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16431         subcommand, not in a subshell.
16432
16433 2009-09-22  Eric Blake  <ebb9@byu.net>
16434
16435         unistd: sort replacement declarations
16436         * lib/unistd.in.h: Sort declarations.
16437
16438         open, openat: minor optimization
16439         * lib/open.c (open): If open succeeded, len is non-zero.
16440         * lib/openat.c (rpl_openat): Likewise.
16441
16442         link-follow: ensure correct result
16443         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16444         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16445         distinguish between possible failures.
16446
16447 2009-09-21  Eric Blake  <ebb9@byu.net>
16448
16449         fts: avoid compiler warning
16450         * lib/fts.c (dirent_inode_sort_may_be_useful)
16451         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16452
16453 2009-09-19  Bruno Haible  <bruno@clisp.org>
16454
16455         * lib/progreloc.c (canonicalize_file_name): New declaration.
16456
16457 2009-09-19  Eric Blake  <ebb9@byu.net>
16458
16459         link: fix quoting
16460         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16461
16462         openat: fix openat bugs on Solaris 9
16463         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16464         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16465         * modules/openat (Depends-on): Add open.
16466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16467         * modules/fcntl-h (Makefile.am): Substitute it.
16468         * lib/fcntl.in.h (openat): Declare replacement.
16469         * doc/posix-functions/openat.texi (openat): Document this.
16470
16471         openat: move fstatat and unlinkat into correct files
16472         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16473         compiled.
16474         * lib/openat.c (fstatat, unlinkat): Move...
16475         * lib/fstatat.c (fstatat): ...into correct files.
16476         * lib/unlinkat.c (unlinkat): Likewise.
16477
16478         openat: fix unlinkat bugs on Solaris 9
16479         * lib/unlinkat.c (unlinkat): New file.
16480         * modules/openat (Depends-on): Add unlink.
16481         (Files): Distribute it.
16482         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16483         trailing slash behavior is broken.
16484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16485         * modules/unistd (Makefile.am): Substitute it.
16486         * lib/unistd.in.h (unlinkat): Declare replacement.
16487         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16488
16489         openat: fix fstatat bugs on Solaris 9
16490         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16491         stat.
16492         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16493
16494         test-unlinkat: enhance test, to expose Solaris 9 bug
16495         * tests/test-unlink.c (main): Factor guts...
16496         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16497         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16498         * tests/test-rmdir.c (main): Adjust caller.
16499         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16500         (unlinker): New helper function.
16501         (rmdirat): Enhance check.
16502         * modules/rmdir-tests (Depends-on): Add stdbool.
16503         * modules/unlink-tests (Depends-on): Likewise.
16504         (Files): Add test-unlink.h.
16505         * modules/openat-tests (Files): Likewise.
16506         (Depends-on): Add unlinkdir.
16507
16508         test-fstatat: new test, to expose Solaris 9 bugs
16509         * tests/test-stat.c (main): Factor guts...
16510         * tests/test-stat.h (test_stat_func): ...into new file.
16511         * tests/test-lstat.c (main): Factor guts...
16512         * tests/test-lstat.h (test_lstat_func): ...into new file.
16513         * tests/test-fstatat.c: New file.
16514         * modules/stat-tests (Files): Add test-stat.h.
16515         * modules/lstat-tests (Files): Add test-lstat.h.
16516         (Depends-on): Add stdbool.
16517         * modules/openat-tests (Depends-on): Add pathmax.
16518         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16519         (Makefile.am): Run new test.
16520
16521         remove: new module, for mingw and Solaris 9 bugs
16522         * modules/remove: New file.
16523         * lib/remove.c: Likewise.
16524         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16526         * modules/stdio (Makefile.am): Use them.
16527         * lib/stdio.in.h (remove): Declare replacement.
16528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16529         * doc/posix-functions/remove.texi (remove): Likewise.
16530         * modules/remove-tests: New test.
16531         * tests/test-remove.c: Likewise.
16532
16533         unlink: new module, for Solaris 9 bug
16534         * modules/unlink: New file.
16535         * lib/unlink.c: Likewise.
16536         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16538         * modules/unistd (Makefile.am): Use them.
16539         * lib/unistd.in.h (stat): Declare replacement.
16540         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16541         * doc/posix-functions/unlink.texi (unlink): Likewise.
16542         * modules/unlink-tests: New test.
16543         * tests/test-unlink.c: Likewise.
16544
16545         lstat: fix Solaris 9 bug
16546         * lib/lstat.c (lstat): Also check for trailing slash on
16547         non-symlink, non-directories.  Use stat module to simplify logic.
16548         * doc/posix-functions/lstat.texi (lstat): Document it.
16549         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16550         (configure.ac): Check for symlink.
16551         * tests/test-lstat.c (main): Add more tests.
16552
16553         stat: add as dependency to other modules
16554         * modules/chown (Depends-on): Add stat.
16555         * modules/euidaccess (Depends-on): Likewise.
16556         * modules/fchdir (Depends-on): Likewise.
16557         * modules/isdir (Depends-on): Likewise.
16558         * modules/link (Depends-on): Likewise.
16559         * modules/lstat (Depends-on): Likewise.
16560         * modules/mkdir-p (Depends-on): Likewise.
16561         * modules/modechange (Depends-on): Likewise.
16562         * modules/open (Depends-on): Likewise.
16563         * modules/readlink (Depends-on): Likewise.
16564         * modules/same (Depends-on): Likewise.
16565
16566         stat: fix Solaris 9 bug
16567         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16568         slash.
16569         * lib/stat.c (rpl_stat): Work around it.
16570         * doc/posix-functions/stat.texi (stat): Update documentation.
16571
16572         stat: new module, for mingw bug
16573         * modules/stat: New file.
16574         * lib/stat.c: Likewise.
16575         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16577         * modules/sys_stat (Makefile.am): Use them.
16578         * lib/sys_stat.in.h (stat): Declare replacement.
16579         * lib/openat.c (fstatat): Deal with lstat and stat being function
16580         macros.
16581         * modules/openat (Depends-on): Add inline.
16582         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16583         * doc/posix-functions/stat.texi (stat): Likewise.
16584         * modules/stat-tests: New test.
16585         * tests/test-stat.c: Likewise.
16586
16587 2009-09-19  Jim Meyering  <meyering@redhat.com>
16588
16589         syntax-check: detect unnecessary inclusion of canonicalize.h
16590         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16591
16592 2009-09-19  Eric Blake  <ebb9@byu.net>
16593
16594         canonicalize-lgpl: adjust clients to use correct header
16595         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16596         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16597         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16598         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16599         * lib/progreloc.c (includes): Likewise.
16600
16601 2009-09-19  Jim Meyering  <meyering@redhat.com>
16602
16603         test-posixtm.c: correct a comment
16604         * tests/test-posixtm.c: Correct first-line comment.
16605         Spotted by Eric Blake.
16606
16607 2009-09-16  Jim Meyering  <meyering@redhat.com>
16608
16609         posixtm-tests: make T const-correct; add a test case
16610         * tests/test-posixtm.c (T): Declare const.
16611         Add a test for -(2^31+1).
16612         Remove useless can-succeed-only-in-2002 test.
16613
16614         posixtm-tests: adjust the sole failing test
16615         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16616         expected output matches what mktime now produces.  Cross-checked via
16617         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16618
16619         posixtm: move #ifdef'd tests into a new module
16620         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16621         * tests/test-posixtm.c: ... this new file.
16622         * modules/posixtm-tests: New module.
16623
16624 2009-09-19  Eric Blake  <ebb9@byu.net>
16625
16626         openat: simplify use of at-func.c
16627         * lib/at-func.c (includes): Include prerequisites here, to
16628         simplify requirements on client files.
16629         * lib/openat-priv.h: Add double-inclusion guard.
16630         * lib/faccessat.c (includes): Simplify.
16631         * lib/fchmodat.c (includes): Likewise.
16632         * lib/fchownat.c (includes): Likewise.
16633         * lib/mkdirat.c (includes): Likewise.
16634         * lib/mkfifoat.c (includes): Likewise.
16635         * lib/symlinkat.c (includes): Likewise.
16636
16637         openat: allow return of fd 0
16638         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16639         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16640         unistd-safer.
16641         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16642         <fcntl.h>; this module does not leak fds.
16643         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16644         must be allowed to return 0, leaving openat_safer to add the
16645         safety.
16646         (openat_permissive): Avoid writing to just-opened fd 2 if
16647         restoring the current directory fails.
16648         * lib/openat-die.c (openat_restore_fail): Add comment.
16649         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16650         (save_cwd): Guarantee safe fd, but without use of open_safer.
16651         * tests/test-openat.c: New test.
16652         * modules/openat-tests (Files, Makefile.am): Distribute and build
16653         new file.
16654
16655         relocatable-prog-wrapper: fix build
16656         * modules/relocatable-prog-wrapper (Files): Update name of
16657         canonicalize m4 file, broken on 2009-09-17.
16658         Reported by emad hajjar <aleppos@hotmail.com>.
16659
16660 2009-09-19  Bruno Haible  <bruno@clisp.org>
16661
16662         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16663         * lib/safe-alloc.c: Likewise.
16664         Reported by Ian Beckwith <ianb@erislabs.net>.
16665
16666 2009-09-18  Bruno Haible  <bruno@clisp.org>
16667
16668         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16669         Reported by <erobles@sensacd.com.mx>.
16670
16671 2009-09-17  Eric Blake  <ebb9@byu.net>
16672
16673         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16674         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16675         slashes when checking if last component is missing.
16676         * tests/test-canonicalize.c (main): Test this.
16677
16678         canonicalize, canonicalize-lgpl: honor // if distinct from /
16679         * modules/canonicalize (Files): Add double-slash-root.m4.
16680         * modules/canonicalize-lgpl (Files): Likewise.
16681         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16682         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16683         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16684         fallback definition.
16685         (canonicalize_filename_mode): Use it to protect //.
16686         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16687         (__realpath): Likewise.
16688         * tests/test-canonicalize.c (main): Test this.
16689         * tests/test-canonicalize-lgpl.c (main): Likewise.
16690         * modules/canonicalize-tests (Depends-on): Add same-inode.
16691         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16692
16693         canonicalize-lgpl: fix glibc bug with trailing slash
16694         * m4/canonicalize-lgpl.m4: Move contents...
16695         * m4/canonicalize.m4: ...here.
16696         (gl_CANONICALIZE_LGPL): Factor realpath check...
16697         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16698         glibc 2.3.5 bug, fixed 2005-04-27.
16699         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16700         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16701         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16702         * modules/canonicalize-lgpl (Files): Manage file rename.
16703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16704         * modules/stdlib (Makefile.am): Substitute witness.
16705         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16706         is needed.
16707         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16708         replacement is required.
16709         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16710         * doc/glibc-functions/canonicalize_file_name.texi
16711         (canonicalize_file_name): Document this.
16712         * doc/posix-functions/realpath.texi (realpath): Likewise.
16713
16714         canonicalize-lgpl: reject non-directory with trailing slash
16715         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16716         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16717         catches failures in glibc 2.3.5.
16718         * tests/test-canonicalize.c (main): Likewise.
16719
16720         canonicalize-lgpl: use native realpath if it works
16721         * lib/canonicalize-lgpl.c (realpath): Guard with
16722         FUNC_REALPATH_WORKS.
16723         * lib/stdlib.in.h (realpath): Make declaration optional based on
16724         HAVE_REALPATH.
16725         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16726         native realpath works.
16727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16728         * modules/stdlib (Makefile.am): Substitute witness.
16729
16730         canonicalize, canonicalize-lgpl: use <stdlib.h>
16731         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16732         (Include): Mention <stdlib.h>.
16733         (configure.ac): Mention functions we provide.
16734         * modules/canonicalize (configure.ac): Likewise.
16735         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16736         realpath if canonicalize_file_name is missing.
16737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16738         * modules/stdlib (Makefile.am): Substitute witnesses.
16739         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16740         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16741         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16742         * NEWS: Document this.
16743         * doc/glibc-functions/canonicalize_file_name.texi
16744         (canonicalize_file_name): Likewise.
16745         * doc/posix-functions/realpath.texi (realpath): Likewise.
16746         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16747
16748         test-canonicalize: consolidate into single C program
16749         * tests/test-canonicalize.sh: Delete; move setup into...
16750         * tests/test-canonicalize.c (main): ...the program, making it
16751         easier to run in debugger.  Add some tests.
16752         * modules/canonicalize-tests (Files): Remove unused file.
16753         (Depends-on): Add progname.
16754         (configure.ac, Makefile.am): Simplify.
16755
16756         test-canonicalize-lgpl: consolidate into single C program
16757         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16758         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16759         easier to run in debugger.  Add some tests.
16760         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16761         (configure.ac, Makefile.am): Simplify.
16762
16763         canonicalize: avoid resolvepath
16764         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16765         unnecessary checks.
16766         * lib/canonicalize.c (includes): Simplify.
16767         (canonicalize_file_name): Drop resolvepath implementation.
16768         * modules/canonicalize (Depends-on): Drop filenamecat.
16769
16770         canonicalize: don't lose errno
16771         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16772         over calls to free.
16773
16774         canonicalize: simplify errno handling
16775         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16776         assignment.
16777
16778         canonicalize, canonicalize-lgpl: update module dependencies
16779         * modules/canonicalize (Depends-on): Add extensions, lstat,
16780         pathmax, stdlib.
16781         (Files): Drop pathmax.h.
16782         (configure.ac): Adjust macro name.
16783         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16784         lstat, stdlib, sys_stat.
16785         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16786         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16787         extensions.
16788         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16789         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16790         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16791         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16792         declaration, if available.
16793         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16794         we can rely on the readlink module.
16795         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16796         (includes): Use <unistd.h> unconditionally.
16797
16798 2009-09-17  Eric Blake  <ebb9@byu.net>
16799
16800         maint: make Include sections of modules consistent
16801         * modules/alloca: Use only header name; no need to list #include.
16802         * modules/alloca-opt: Likewise.
16803         * modules/arpa_inet: Likewise.
16804         * modules/canon-host: Likewise.
16805         * modules/configmake: Likewise.
16806         * modules/dirent: Likewise.
16807         * modules/eealloc: Likewise.
16808         * modules/environ: Likewise.
16809         * modules/fchdir: Likewise.
16810         * modules/fcntl: Likewise.
16811         * modules/fcntl-h: Likewise.
16812         * modules/gethrxtime: Likewise.
16813         * modules/gettime: Likewise.
16814         * modules/ignore-value: Likewise.
16815         * modules/inet_ntop: Likewise.
16816         * modules/inet_pton: Likewise.
16817         * modules/inttypes: Likewise.
16818         * modules/isnand-nolibm: Likewise.
16819         * modules/isnanf-nolibm: Likewise.
16820         * modules/mbchar: Likewise.
16821         * modules/mbfile: Likewise.
16822         * modules/mbiter: Likewise.
16823         * modules/mbuiter: Likewise.
16824         * modules/netdb: Likewise.
16825         * modules/netinet_in: Likewise.
16826         * modules/nproc: Likewise.
16827         * modules/pagealign_alloc: Likewise.
16828         * modules/poll: Likewise.
16829         * modules/printf-frexp: Likewise.
16830         * modules/pthread: Likewise.
16831         * modules/putenv: Likewise.
16832         * modules/random_r: Likewise.
16833         * modules/relocatable-prog: Likewise.
16834         * modules/search: Likewise.
16835         * modules/select: Likewise.
16836         * modules/selinux-h: Likewise.
16837         * modules/settime: Likewise.
16838         * modules/signal: Likewise.
16839         * modules/size_max: Likewise.
16840         * modules/socklen: Likewise.
16841         * modules/ssize_t: Likewise.
16842         * modules/stdarg: Likewise.
16843         * modules/stdbool: Likewise.
16844         * modules/stddef: Likewise.
16845         * modules/stdint: Likewise.
16846         * modules/stdio: Likewise.
16847         * modules/stdlib: Likewise.
16848         * modules/string: Likewise.
16849         * modules/strings: Likewise.
16850         * modules/sys_file: Likewise.
16851         * modules/sys_ioctl: Likewise.
16852         * modules/sys_select: Likewise.
16853         * modules/sys_socket: Likewise.
16854         * modules/sys_stat: Likewise.
16855         * modules/sys_time: Likewise.
16856         * modules/sys_times: Likewise.
16857         * modules/sys_utsname: Likewise.
16858         * modules/sys_wait: Likewise.
16859         * modules/sysexits: Likewise.
16860         * modules/time: Likewise.
16861         * modules/times: Likewise.
16862         * modules/tmpfile: Likewise.
16863         * modules/trim: Likewise.
16864         * modules/unistd: Likewise.
16865         * modules/wchar: Likewise.
16866         * modules/wctype: Likewise.
16867
16868 2009-09-17  Bruno Haible  <bruno@clisp.org>
16869
16870         Make getdate.y compile on QNX and NetBSD 5 / i386.
16871         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16872         TIME_T_FITS_IN_LONG_INT.
16873         * lib/getdate.y (long_time_t): New type.
16874         (relative_time): Change type of 'seconds' field to long_time_t.
16875         (get_date): Update types of local variables. Check against overflow
16876         during conversion from long_time_t to time_t.
16877         Reported by Matt Kraai <kraai@ftbfs.org>
16878         and Hasso Tepper <hasso@netbsd.org>.
16879
16880 2009-09-17  Bruno Haible  <bruno@clisp.org>
16881
16882         * modules/COPYING: Update copyright years.
16883         * modules/README: Likeiwse.
16884         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16885         Reported by Ian Beckwith <ianb@erislabs.net>.
16886
16887 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16888
16889         * users.txt: Update references for gnuit package.
16890
16891 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16892
16893         * m4/getdelim.m4: Fix typo in copyright line.
16894
16895 2009-09-17  Bruno Haible  <bruno@clisp.org>
16896
16897         * lib/atoll.c: Use the standard header with GPL copyright.
16898         * lib/argz.in.h: Likewise.
16899         * lib/glob.c: Likewise.
16900         * lib/glob-libc.h: Likewise.
16901         * lib/random_r.c: Likewise.
16902         * lib/siglist.h: Likewise.
16903         * lib/strsignal.c: Likewise.
16904         Reported by Ian Beckwith <ianb@erislabs.net>.
16905
16906 2009-09-17  Eric Blake  <ebb9@byu.net>
16907
16908         rmdir: ensure correct dependency order
16909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16910
16911 2009-09-17  Bruno Haible  <bruno@clisp.org>
16912
16913         Disable assertion that fails on NetBSD 5 / i386.
16914         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16915         Reported by Sam Steingold <sds@gnu.org>
16916         and Hasso Tepper <hasso@netbsd.org>.
16917
16918 2009-09-16  Eric Blake  <ebb9@byu.net>
16919
16920         unlinkdir: port to mingw
16921         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16922         on which no one can unlink a directory.
16923
16924         stdlib: sort witness names
16925         * modules/stdlib (Makefile.am): Sort replacements.
16926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16927         * lib/stdlib.in.h: Likewise.
16928
16929         parse-duration-tests: avoid link failure
16930         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16931         LIBINTL.
16932         Reported by Tom G. Christensen.
16933
16934         openat-tests: ensure unlinkat behaves like rmdir
16935         * tests/test-rmdir.c (main): Factor guts...
16936         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
16937         * modules/rmdir-tests (Files): Ship new file.
16938         * modules/openat-tests: New test.
16939         * tests/test-unlinkat.c: Likewise.
16940
16941         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
16942         * modules/rmdir-errno (Status, Notice): Now obsolete.
16943
16944         rmdir: work around cygwin 1.5.x and mingw bugs
16945         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
16946         * lib/rmdir.c (rmdir): Work around it.
16947         * modules/rmdir (Status, Notice): No longer obsolete.
16948         (Files): Add dos.m4.
16949         (Depends-on): Add unistd.
16950         (configure.ac): Set witnesses.
16951         (License): Relax to LGPLv2+.
16952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
16953         * modules/unistd (Makefile.am): Substitute witnesses.
16954         * lib/unistd.in.h (rmdir): Declare replacement.
16955         * doc/posix-functions/rmdir.texi (rmdir): Document this.
16956         * modules/rmdir-tests: New tests.
16957         * tests/test-rmdir.c: Likewise.
16958
16959 2009-09-15  Eric Blake  <ebb9@byu.net>
16960
16961         fchdir: improve use of replacement functions
16962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
16963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
16964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
16965         REPLACE_CLOSEDIR.
16966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
16967         * modules/sys_stat (Makefile.am): Substitute correct witness.
16968         * modules/dirent (Makefile.am): Likewise.
16969         * modules/unistd (Makefile.am): Likewise.
16970         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
16971         * lib/unistd.in.h (dup): Likewise.
16972         * lib/sys_stat.in.h (fstat): Likewise.
16973
16974         maint: ignore gnulib-tool temp files
16975         * .gitignore: Ignore files created during gnulib-tool --test.
16976
16977 2009-09-13  Jim Meyering  <meyering@redhat.com>
16978
16979         posixtm: don't reject a time that specify "60" as the number of seconds
16980         * lib/posixtm.c (posixtime): The code to reject invalid dates
16981         would also reject a time specified with the .60 suffix.
16982         But POSIX allows that, in order to accommodate leap seconds.
16983         So don't reject it.
16984         (main): Adjust tests accordingly.
16985         * modules/posixtm (Depends-on): Add stpcpy.
16986
16987 2009-09-11  Jim Meyering  <meyering@redhat.com>
16988
16989         announce-gen: include [$release_type] in emitted Subject:
16990         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
16991         e.g., [stable] in the emitted Subject: line.
16992
16993 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16994
16995         Remove obsolete macros from several modules.
16996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
16997         obsolete Autoconf macros with their modern counterparts.
16998         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
16999         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17001         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17002         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17003         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17005         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17006         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17007         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17008         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17010         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17011         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17012         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17013         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17014         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17015         * m4/time_r.m4 (gl_TIME_R): Likewise.
17016         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17017         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17018         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17019
17020         Fix copyright header in build-aux scripts.
17021         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17022         recommendation.
17023         * build-aux/ncftpput-ftp: Likewise.
17024         * build-aux/update-copyright: Likewise.
17025
17026 2009-09-09  Eric Blake  <ebb9@byu.net>
17027
17028         test-link: allow Linux choice of errno
17029         * tests/test-link.c (main): Relax test for alternate error.
17030
17031         strndup: fix improper m4 caching
17032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17033         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17034         (gl_PREREQ_STRNDUP): Delete.
17035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17036         * modules/string (Makefile.am): Substitute it.
17037         * lib/string.in.h (strndup): Modernize prototype.
17038
17039         getcwd: port to mingw
17040         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17041         different from the POSIX assumptions made throughout the getcwd
17042         module; fortunately, the mingw getcwd does not need replacement.
17043         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17044         * modules/getcwd-tests: New test.
17045         * tests/test-getcwd.c: Likewise.
17046
17047         link: fix platform bugs
17048         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17049         * lib/link.c (link): Work around them.  Fix related mingw bug.
17050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17051         * modules/unistd (Makefile.am): Substitute it.
17052         * lib/unistd.in.h (link): Declare replacement.
17053         * doc/posix-functions/link.texi (link): Document this.
17054         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17055
17056         test-link: consolidate into single C program, test more cases
17057         * tests/test-link.sh: Delete.
17058         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17059         at least Cygwin and Solaris.
17060         * modules/link-tests (Files): Remove unused file.
17061         (Depends-on): Add errno, sys_stat.
17062         (Makefile.am): Simplify.
17063
17064 2009-09-08  Bruno Haible  <bruno@clisp.org>
17065
17066         Work around towlower, towupper bug on mingw.
17067         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17068         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17069         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17070         * doc/posix-functions/towupper.texi: Likewise.
17071         Reported by Eric Blake.
17072
17073 2009-09-08  Jim Meyering  <meyering@redhat.com>
17074
17075         build: don't try to run autoheader if we don't use it
17076         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17077         is not used in configure.ac.
17078
17079 2009-09-08  Eric Blake  <ebb9@byu.net>
17080
17081         euidaccess: fix compilation error
17082         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17083
17084         rawmemchr: relax license
17085         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17086         okay.
17087         Reported by Jim Meyering.
17088
17089         mkfifoat: new module
17090         * modules/mkfifoat: New file.
17091         * lib/mkfifoat.c: Likewise.
17092         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17094         * modules/sys_stat (Makefile.am): Use them.
17095         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17096         * MODULES.html.sh (File system functions): Mention module.
17097         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17098         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17099         * modules/mkfifoat-tests: New test.
17100         * tests/test-mkfifoat.c: Likewise.
17101
17102         strchrnul: relax license
17103         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17104         okay.
17105         Reported by Jim Meyering.
17106
17107 2009-09-08  Eric Blake  <ebb9@byu.net>
17108
17109         fstatat: fix compilation on Solaris
17110         * lib/fstatat.c (includes): Add fcntl.h.
17111         Reported by Pádraig Brady.
17112
17113 2009-09-07  Eric Blake  <ebb9@byu.net>
17114
17115         rename: modernize replacement
17116         * modules/rename (Depends-on): Add stdio.
17117         (configure.ac): Declare witness.
17118         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17119         stdio take care of replacement.
17120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17121         * modules/stdio (Makefile.am): Substitute them.
17122         * lib/stdio.in.h (rename): Declare replacement.
17123         * lib/rename.c (includes): Allow cross-compilation to non-windows
17124         machines.
17125         * doc/posix-functions/rename.texi (rename): Improve
17126         documentation.
17127
17128         stdio: sort witness names
17129         * modules/stdio (Makefile.am): Sort replacements.
17130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17131         * lib/stdio.in.h: Likewise.
17132
17133         getcwd: minor cleanups
17134         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17135         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17136
17137         openat: provide more convenience names
17138         * modules/faccessat (configure.ac): Add C witness.
17139         * lib/unistd.in.h (readlinkat): Fix typo.
17140         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17141         convenience wrappers.
17142         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17143         wrappers in syntax checks.
17144
17145 2009-09-06  Eric Blake  <ebb9@byu.net>
17146
17147         doc: fix comments in recent patches
17148         * lib/faccessat.c: Mention correct function.
17149         * lib/fchmodat.c: Likewise.
17150         * lib/fchownat.c: Likewise.
17151         * lib/symlinkat.c: Likewise.
17152         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17153         constants.
17154
17155         faccessat, symlinkat: continue cleanup of previous patch
17156         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17157         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17158         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17160         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17161         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17162         set.
17163
17164 2009-09-06  Bruno Haible  <bruno@clisp.org>
17165
17166         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17167         (fstatat): Declare if GNULIB_FSTATAT is set.
17168         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17169         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17170         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17171         * modules/fcntl-h (Files): Remove m4/openat.m4.
17172         * modules/sys_stat (Files): Remove m4/openat.m4.
17173         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17174         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17175         * modules/unistd (Files): Remove m4/openat.m4.
17176         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17177         GNULIB_OPENAT.
17178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17179         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17181         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17182         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17183         gl_OPENAT_DEFAULTS.
17184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17185         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17186         Don't require gl_OPENAT_DEFAULTS.
17187         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17188         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17189         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17190         (gl_OPENAT_DEFAULTS): Remove macro.
17191
17192 2009-09-06  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/openat (configure.ac): Remove unneeded witness.
17195
17196 2009-09-06  Bruno Haible  <bruno@clisp.org>
17197
17198         Set errno to ENOSYS when a function is entirely unsupported.
17199         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17200         EOPNOTSUPP.
17201         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17202         * modules/chown (Depends-on): Remove errno.
17203
17204 2009-09-06  Bruno Haible  <bruno@clisp.org>
17205
17206         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17207
17208 2009-09-06  Bruno Haible  <bruno@clisp.org>
17209
17210         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17211
17212 2009-09-06  Ben Pfaff  <blp@gnu.org>
17213             Bruno Haible  <bruno@clisp.org>
17214
17215         Work around a glibc bug in strtok_r.
17216         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17217         Undefine if UNDEFINE_STRTOK_R is set.
17218         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17220         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17221         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17222         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17223         UNDEFINE_STRTOK_R.
17224         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17225
17226 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17227
17228         exclude: minor fix
17229         * lib/exclude.c: Include wctype.h
17230
17231 2009-09-06  Akim Demaille  <demaille@gostai.com>
17232
17233         bootstrap: improve error message
17234         * build-aux/bootstrap (find_tool): Upon failure, report the list
17235         of candidates.
17236         Honor the initial value of the envvar.
17237
17238 2009-09-05  Eric Blake  <ebb9@byu.net>
17239
17240         symlinkat: new module
17241         * modules/symlinkat: New file.
17242         * lib/symlinkat.c: Likewise.
17243         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17245         * modules/unistd (Makefile.am): Use them.
17246         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17247         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17248         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17249         * MODULES.html.sh (File system functions): Mention module.
17250         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17251         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17252         * modules/symlinkat-tests: New test.
17253         * tests/test-symlinkat.c: Likewise.
17254
17255         test-openat-safer: add more checks
17256         * tests/test-openat-safer.c (main): Check more code paths.
17257
17258 2009-09-05  Jim Meyering  <meyering@redhat.com>
17259
17260         syntax-check: detect unnecessary inclusion of openat.h
17261         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17262
17263 2009-09-05  Bruno Haible  <bruno@clisp.org>
17264
17265         Support towlower, towupper.
17266         * doc/posix-functions/towlower.texi: Mention module wctype.
17267         * doc/posix-functions/towupper.texi: Likewise.
17268         * lib/wctype.in.h (towlower, towupper): New functions.
17269         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17270         (ASSERT): New macro.
17271         (e): New variable.
17272         (main): Test also towlower, towupper. Test WEOF argument.
17273         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17274
17275 2009-09-05  Bruno Haible  <bruno@clisp.org>
17276
17277         Fix conversion behaviour when the input is invalid.
17278         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17279         mark occurring in first pass of indirect conversion.
17280         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17281         input.
17282         Found by clang's static analyzer.
17283
17284 2009-09-05  Bruno Haible  <bruno@clisp.org>
17285
17286         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17287         where direct conversion is possible.
17288
17289 2009-09-04  Eric Blake  <ebb9@byu.net>
17290
17291         openat: fail with ENOENT on empty name
17292         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17293         buffer.
17294
17295         link-follow: fix logic bug in prior patch
17296         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17297         reversed sense of yes and no in prior patch.  Avoid confusing
17298         compilation failure with desired semantics.
17299
17300         link-follow: accomodate mingw and cross-compilation
17301         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17302         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17303         cross-compilation results to -1, to make linkat easier to
17304         implement when cross-compiling.  Trivially support mingw.
17305         * modules/link-follow (configure.ac): Call new name.
17306         * NEWS: Mention this.
17307
17308 2009-09-03  Eric Blake  <ebb9@byu.net>
17309
17310         faccessat: compile replacement
17311         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17312         needed.
17313
17314         fts: fix compilation error
17315         * lib/fts.c (includes): Re-add "openat.h", for
17316         openat_needs_fchdir.
17317
17318         faccessat: new module
17319         * modules/faccessat: New file.
17320         * lib/faccessat.c: Likewise.
17321         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17323         * modules/unistd (Makefile.am): Use it.
17324         * lib/unistd.in.h (faccessat): Declare it.
17325         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17326         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17327         * MODULES.html.sh (File system functions): Mention it.
17328         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17329         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17330
17331         euidaccess: prefer POSIX over non-standard implementation
17332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17333         * lib/euidaccess.c (euidaccess): Use it if available.
17334
17335         openat: make template easier to use
17336         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17337         AT_FUNC_F2 to be undefined.
17338         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17339         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17340         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17341         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17342         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17343         Likewise.
17344         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17345         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17346         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17347         Likewise.
17348
17349         openat: declare in POSIX headers
17350         * NEWS: Mention this.
17351         * modules/openat (configure.ac): Declare witnesses.
17352         (Depends-on): Add fcntl-h, sys_stat, unistd.
17353         (Include): Mention correct headers.
17354         * modules/fcntl-h (Depends-on): Add link-warning.
17355         (Files): Add openat.m4.
17356         (Makefile.am): Substitute witnesses.
17357         * modules/sys_stat (Files, Makefile.am): Likewise.
17358         * modules/unistd (Files, Makefile.am): Likewise.
17359         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17360         (gl_OPENAT_DEFAULTS): New macro.
17361         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17363         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17364         (SYS_STAT_H): Remove unused variable.
17365         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17366         * lib/fcntl--.h (includes): Remove unneeded header.
17367         * lib/openat-safer.c (includes): Likewise.
17368         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17369         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17370         appropriate headers.
17371         (__OPENAT_PREFIX): Delete.
17372         * lib/fcntl.in.h (openat): Provide declaration.
17373         (AT_FDCWD): Fix Solaris bug.
17374         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17375         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17376         * lib/fchmodat.c (includes):  Adjust to find declaration.
17377         * lib/fchownat.c (includes): Likewise.
17378         * lib/mkdirat.c (includes): Likewise.
17379         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17380         still visible.
17381
17382 2009-09-02  Eric Blake  <ebb9@byu.net>
17383
17384         errno: use consistently
17385         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17386         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17387         * lib/canonicalize.c (ELOOP): Likewise.
17388         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17389         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17390         * lib/lchown.c (EOPNOTSUPP): Likewise.
17391         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17392         * lib/savewd.c (ESTALE): Likewise.
17393         * lib/settime.c (ENOSYS): Likewise.
17394         * lib/utimens.c (ENOSYS): Likewise.
17395         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17396         * lib/chdir-safer.c (ELOOP): Likewise.
17397         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17398         * modules/c-stack (Depends-on): Add errno.
17399         * modules/canonicalize (Depends-on): Likewise.
17400         * modules/chdir-safer (Depends-on): Likewise.
17401         * modules/fdopendir (Depends-on): Likewise.
17402         * modules/inet_ntop (Depends-on): Likewise.
17403         * modules/inet_pton (Depends-on): Likewise.
17404         * modules/lchown (Depends-on): Likewise.
17405         * modules/openat (Depends-on): Likewise.
17406         * modules/savewd (Depends-on): Likewise.
17407         * modules/settime (Depends-on): Likewise.
17408         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17409
17410         fts: avoid leaking fds
17411         * modules/fts (Depends-on): Add cloexec.
17412         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17413         flag.
17414
17415         fts: make directory fds more robust
17416         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17417         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17418
17419         backupfile, chdir-long, fts, savedir: make safer
17420         * lib/backupfile.c (includes): Use "dirent--.h", since
17421         numbered_backup can write to stderr during readdir.
17422         * lib/savedir.c (includes): Likewise.
17423         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17424         emulation can write to stderr on failure.
17425         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17426         * lib/getcwd.c: Document why opendir_safer is unused.
17427         * lib/glob.c: Likewise.
17428         * lib/scandir.c: Likewise.
17429         * lib/openat-proc.c: Likewise, for open_safer.
17430         * modules/backupfile (Depends-on): Add dirent-safer.
17431         * modules/savedir (Depends-on): Likewise.
17432         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17433         * modules/chdir-long (Depends-on): Add openat-safer.
17434
17435         openat-safer: new module
17436         * modules/openat-safer: New file.
17437         * lib/openat-safer.c: Likewise.
17438         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17439         * lib/fcntl-safer.h (openat_safer): Declare.
17440         * lib/fcntl--.h (openat): Override.
17441         * MODULES.html.sh (File descriptor based I/O): Mention it.
17442         * lib/openat.h: Add double-inclusion guards.
17443         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17444         "fcntl--.h", so we can implement openat.
17445         * modules/openat-safer-tests: New test.
17446         * tests/test-openat-safer.c: New file.
17447
17448         dirent-safer: new module
17449         * modules/dirent-safer: New file.
17450         * lib/dirent--.h: Likewise.
17451         * lib/dirent-safer.h: Likewise.
17452         * lib/opendir-safer.c: Likewise.
17453         * m4/dirent-safer.m4: Likewise.
17454         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17455         * modules/dirent-safer-tests: New test.
17456         * tests/test-dirent-safer.c: New file.
17457         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17458
17459         fdopendir: optimize on mingw
17460         * lib/unistd.in.h (_gl_directory_name): New prototype.
17461         * lib/fchdir.c (_gl_directory_name): Implement it.
17462         (fchdir): Use it to simplify implementation.
17463         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17464         fchdir, when available, to avoid calling [f]chdir().
17465
17466         fdopendir: split into its own module
17467         * lib/openat.c (fdopendir): Move...
17468         * lib/fdopendir.c: ...into new file.
17469         * modules/fdopendir: New module.
17470         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17471         * modules/openat (Depends-on): Add fdopendir.
17472         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17473         fdopendir here.
17474         * modules/savedir (Depends-on): Only need fdopendir, not full
17475         openat.
17476         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17477         * lib/openat.h (fdopendir): Drop prototype.
17478         * lib/dirent.in.h (fdopendir): Provide prototype.
17479         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17480         * modules/dirent (Makefile.am): Substitute them.
17481         * MODULES.html.sh (File system functions): Mention it.
17482         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17483         * modules/fdopendir-tests: New file.
17484         * tests/test-fdopendir.c: Likewise.
17485
17486         fchdir: use more consistent macro convention
17487         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17488         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17489         REPLACE_FCHDIR, rather than relying on config.h macros.
17490         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17491         inside a single make-time REPLACE_FCHDIR block, rather than using
17492         the config.h FCHDIR_REPLACEMENT.
17493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17494         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17495         Manage fstat replacement.
17496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17497         REPLACE_FCHDIR.
17498         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17499         (Makefile.am): Substitute REPLACE_FCHDIR.
17500         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17501         FCHDIR_REPLACEMENT.
17502         * lib/dup-safer.c (dup_safer): Likewise.
17503         * lib/dup2.c (rpl_dup2): Likewise.
17504         * lib/dup3.c (rpl_dup3): Likewise.
17505         * lib/open.c (rpl_open): Likewise.
17506
17507         fchdir: simplify error handling, and support dup3
17508         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17509         stdbool, malloc-posix, realloc-posix.
17510         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17511         (ensure_dirs_slot): Return false on allocation failure.
17512         (rpl_dup2): Delete.
17513         (_gl_register_dup): New function.
17514         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17515         (_gl_register_fd): Close fd on allocation failure.
17516         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17517         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17518         prototype.
17519         (rpl_dup2_fchdir): Delete prototype.
17520         * lib/open.c (open): Update caller.
17521         * lib/dup2.c (dup2): Track fchdir metadata.
17522         * lib/dup3.c (dup3): Likewise.
17523         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17524         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17525
17526 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17527
17528         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17529         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17530         don't pass arguments to AC_OUTPUT.
17531
17532 2009-09-02  Bruno Haible  <bruno@clisp.org>
17533
17534         * modules/mkdtemp (License): Relicense under LGPLv2+.
17535         Reported by Paolo Bonzini.
17536
17537 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17538
17539         Replace uses of obsolete autoconf macros in Jim's modules.
17540         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17541         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17542         can evoke a warning from autoconf when run with -Wobsolete
17543         enabled.  They were declared obsolete for good reasons (see
17544         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17545         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17546         should not continue using the deprecated macros.
17547         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17548         obsolete Autoconf macros with modern counterparts.
17549         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17550         * m4/dos.m4 (gl_AC_DOS): Likewise.
17551         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17552         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17553         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17554         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17555         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17556         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17558         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17559         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17560         Likewise.
17561         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17562         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17563         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17564         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17565         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17566         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17567
17568 2009-09-01  Eric Blake  <ebb9@byu.net>
17569
17570         fchdir: fix off-by-one bug in previous patch
17571         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17572         (_gl_unregister_fd): Delete useless if.
17573
17574 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17575
17576         maint.mk: sort the list of syntax-check rules
17577         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17578         easier to get a sense of progress when the rules are run sequentially
17579         and take a long time.
17580
17581 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17582
17583         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17584         * modules/netinet_in: Likewise.
17585         * modules/sys_file: Likewise.
17586         * modules/sys_ioctl: Likewise.
17587         * modules/sys_select: Likewise.
17588         * modules/sys_socket: Likewise.
17589         * modules/sys_stat: Likewise.
17590         * modules/sys_time: Likewise.
17591         * modules/sys_times: Likewise.
17592         * modules/sys_utsname: Likewise.
17593         * modules/sys_wait: Likewise.
17594
17595 2009-09-01  Jim Meyering  <meyering@redhat.com>
17596
17597         fts: help ensure that return values are not ignored
17598         * lib/fts_.h (__GNUC_PREREQ): Define.
17599         (__attribute_warn_unused_result__): Define.
17600         (fts_children, fts_close, fts_open, fts_read): Declare with
17601         __attribute_warn_unused_result__.
17602
17603         fts: fts_close now fails also when closing a dir file descriptor fails
17604         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17605         and propagate to caller, along with errno.
17606
17607         announce-gen: correct formatting in --help output
17608         * build-aux/announce-gen (usage): Move the one-line description in
17609         --help output "up", to where it belongs, just after Usage:.
17610
17611 2009-08-31  Eric Blake  <ebb9@byu.net>
17612
17613         fchdir: port to mingw
17614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17615         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17616         opened, then use a substitute.
17617         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17618         replacement.
17619         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17620         (_gl_register_fd): No need to check stat if open already filters
17621         all directories.
17622         (fchdir): Fix error condition to match POSIX.
17623         * modules/fchdir (Depends-on): Add sys_stat.
17624         * doc/posix-functions/open.texi (open): Document the limitation.
17625         * modules/fchdir-tests: New file.
17626         * tests/test-fchdir.c: Likewise.
17627
17628         canonicalize: allow cross-testing from cygwin to mingw
17629         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17630         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17631         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17632         Likewise.
17633         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17634         target does not support symlinks.
17635         * tests/test-canonicalize-lgpl.sh: Likewise.
17636
17637         chown: avoid compilation warning on mingw
17638         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17639         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17640         mingw.
17641         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17642         * modules/chown (Depends-on): Add errno.
17643
17644 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17645
17646         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17647         command.
17648
17649 2009-08-31  Jim Meyering  <meyering@redhat.com>
17650
17651         canonicalize: remove useless initialization
17652         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17653         initialization of local, "end".
17654
17655 2009-08-30  Bruno Haible  <bruno@clisp.org>
17656
17657         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17658         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17659         ENOSYS.
17660
17661 2009-08-30  Bruno Haible  <bruno@clisp.org>
17662
17663         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17664         /usr/xpg4/bin/tr when it exists.
17665         * tests/test-pipe-filter-gi1.sh: Likewise.
17666
17667 2009-08-30  Bruno Haible  <bruno@clisp.org>
17668
17669         Work around deficient /usr/bin/id program on Solaris.
17670         * tests/test-file-has-acl.sh (ID): New variable.
17671         * tests/test-set-mode-acl.sh (ID): Likewise.
17672         * tests/test-copy-acl.sh (ID): Likewise.
17673         * tests/test-copy-file.sh (ID): Likewise.
17674
17675 2009-08-30  Bruno Haible  <bruno@clisp.org>
17676
17677         New module 'xstriconveh'.
17678         * lib/xstriconveh.h: New file.
17679         * lib/xstriconveh.c: New file.
17680         * modules/xstriconveh: New file.
17681
17682 2009-08-30  Bruno Haible  <bruno@clisp.org>
17683
17684         Make it easier to use mem_cd_iconveh.
17685         * lib/striconveh.h (iconveh_t): New type.
17686         (iconveh_open, iconveh_close): New declarations.
17687         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17688         with a single 'const iconveh_t *' argument.
17689         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17690         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17691         with a single 'const iconveh_t *' argument.
17692         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17693         * tests/test-striconveh.c (main): Update.
17694         * NEWS: Mention the change.
17695
17696 2009-08-30  Bruno Haible  <bruno@clisp.org>
17697
17698         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17699         problem.
17700
17701 2009-08-30  Bruno Haible  <bruno@clisp.org>
17702
17703         Work around iconv_open problem on Solaris.
17704         * lib/iconv_open-solaris.gperf: New file.
17705         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17706         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17707         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17708         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17709         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17710         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17711
17712 2009-08-29  Jim Meyering  <meyering@redhat.com>
17713
17714         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17715         * top/maint.mk (cvs-check): Remove target; it was just an alias
17716         to the better-named vc-diff-check.
17717         (maintainer-distcheck): Remove rule.  It was used only from
17718         the (alpha/beta/major) target, and all of its commands but one
17719         were coreutils-specific.
17720         (vc-dist): Remove rule.
17721         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17722         Run vc-diff-check, not vc-dist.
17723         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17724
17725 2009-08-27  Bruno Haible  <bruno@clisp.org>
17726
17727         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17728         of 0.
17729
17730 2009-08-27  Bruno Haible  <bruno@clisp.org>
17731
17732         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17733         compilers.
17734         * doc/func.texi: Document the SunPRO C bug.
17735
17736 2009-08-27  Bruno Haible  <bruno@clisp.org>
17737
17738         Fix link error on Solaris.
17739         * tests/test-parse-duration.c (xstrdup): Remove function.
17740
17741 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17742
17743         ignore-value: handle pointer types, too
17744         * lib/ignore-value.h (__attribute__): Remove definition.
17745         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17746         of a more concise and more-often effective "(void) i" statement.
17747         (ignore_ptr): New function to suppress warnings from functions that
17748         return pointers, and to make it explicit that one function doesn't
17749         handle all cases.
17750
17751 2009-08-25  Bruno Haible  <bruno@clisp.org>
17752
17753         dup2: work around a Linux bug.
17754         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17755         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17756         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17757         Reported by Simon Josefsson.
17758
17759 2009-08-25  Jim Meyering  <meyering@redhat.com>
17760
17761         libguestfs uses gnulib
17762         * users.txt: Add libguestfs.
17763
17764 2009-08-24  Eric Blake  <ebb9@byu.net>
17765
17766         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17767         * lib/pipe2.c (includes): Add binary-io.h.
17768         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17769
17770 2009-08-24  Bruno Haible  <bruno@clisp.org>
17771
17772         Tolerate declared but missing accept4 syscall.
17773         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17774         available.
17775         * lib/sys_socket.in.h (accept4): If the function is already present,
17776         override it.
17777         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17778         * modules/accept4 (Makefile.am): Compile accept4.c always.
17779         Reported by Paolo Bonzini and Eric Blake.
17780
17781 2009-08-23  Bruno Haible  <bruno@clisp.org>
17782
17783         New module 'accept4'.
17784         * lib/sys_socket.in.h (accept4): New declaration.
17785         * lib/accept4.c: New file.
17786         * m4/accept4.m4: New file.
17787         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17788         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17789         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17790         HAVE_ACCEPT4.
17791         * modules/accept4: New file.
17792         * doc/glibc-functions/accept4.texi: Mention the new module.
17793
17794 2009-08-24  Jim Meyering  <meyering@redhat.com>
17795
17796         progname: also set global program_invocation_name, when possible
17797         Before this change, a libtool-enabled program that calls glibc's
17798         error function would report the program name as
17799         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17800         * modules/progname (configure.ac): Check for a declaration of
17801         program_invocation_name.
17802         * lib/progname.c:  Include <errno.h>.
17803         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17804         Set program_invocation_name.
17805
17806 2009-08-23  Bruno Haible  <bruno@clisp.org>
17807
17808         * lib/dup3.c: Include <string.h>.
17809
17810 2009-08-23  Bruno Haible  <bruno@clisp.org>
17811
17812         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17813         * lib/pipe2.c (pipe2): Likewise.
17814         Suggested by Eric Blake.
17815
17816 2009-08-23  Bruno Haible  <bruno@clisp.org>
17817
17818         Tolerate declared but missing dup3 syscall.
17819         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17820         * lib/unistd.in.h (dup3): If the function is already present,
17821         override it.
17822         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17823         * modules/dup3 (Makefile.am): Compile dup3.c always.
17824         Reported by Paolo Bonzini.
17825
17826 2009-08-23  Bruno Haible  <bruno@clisp.org>
17827
17828         Tolerate declared but missing pipe2 syscall.
17829         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17830         available.
17831         * lib/unistd.in.h (pipe2): If the function is already present,
17832         override it.
17833         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17834         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17835         Reported by Paolo Bonzini.
17836
17837 2009-08-23  Bruno Haible  <bruno@clisp.org>
17838
17839         * lib/pipe2.c (pipe2): Move #ifs inside function.
17840
17841 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17842
17843         quotearg: document limitations of quote_these_too
17844         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17845         those limitations are created.
17846         * lib/quotearg.h (set_char_quoting): Document that digits and
17847         letters that are special after backslash are not permitted.
17848         (quotearg_char): Cross-reference set_char_quoting documentation.
17849
17850 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17851
17852         quotearg: implement custom_quoting_style
17853         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17854         right_quote fields.
17855         (set_custom_quoting): New public function.
17856         (quotearg_buffer_restyled): Add left_quote and right_quote
17857         arguments, handle them very much like locale quoting, and update
17858         all uses.
17859         (quotearg_n_custom): New public function.
17860         (quotearg_n_custom_mem): New public function.
17861         (quotearg_custom): New public function.
17862         (quotearg_custom_mem): New public function.
17863         * lib/quotearg.h: Prototype and document new public functions.
17864         (enum quoting_style): For escape_quoting_style and
17865         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17866         ignored even though they're otherwise like c_quoting_style.
17867         Add custom_quoting_style member and document with comparison to
17868         clocale_quoting_style.
17869         * tests/test-quotearg.c (custom_quotes): New array.
17870         (custom_results): New array.
17871         (main): Extend to test custom quoting.
17872
17873 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17874
17875         quotearg: fix right quote escaping when it's in quote_these_too
17876         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17877         quote, be sure to prepend only one backslash.
17878         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17879         (main): Test it.
17880
17881 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17882
17883         quotearg-tests: test escaping of embedded locale quotes
17884         * tests/test-quotearg.c (struct result_strings): Add member for
17885         new input.
17886         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17887         (inputs): Add new input.
17888         (results_g): Add expected results.
17889         (flag_results): Likewise.
17890         (locale_results): Likewise.
17891         (compare_strings): Check those.
17892
17893 2009-08-23  Bruno Haible  <bruno@clisp.org>
17894
17895         Tests for module 'dup3'.
17896         * modules/dup3-tests: New file.
17897         * tests/test-dup3.c: New file.
17898
17899         New module 'dup3'.
17900         * lib/unistd.in.h (dup3): New declaration.
17901         * lib/dup3.c: New file.
17902         * m4/dup3.m4: New file.
17903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17904         HAVE_DUP3.
17905         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17906         * modules/dup3: New file.
17907         * doc/glibc-functions/dup3.texi: Mention the new module.
17908
17909 2009-08-23  Bruno Haible  <bruno@clisp.org>
17910
17911         Tweak the dup2 test.
17912         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17913         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17914         the test file is still empty. Fix argument order of lseek.
17915
17916 2009-08-23  Bruno Haible  <bruno@clisp.org>
17917
17918         Avoid test link errors when the modules getopt-gnu, gettext are used.
17919         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17921
17922 2009-08-23  Bruno Haible  <bruno@clisp.org>
17923
17924         Fix getdtablesize() on mingw.
17925         * lib/getdtablesize.c (getdtablesize): Implement differently.
17926         * lib/unistd.in.h (getdtablesize): Improve comment.
17927
17928 2009-08-23  Bruno Haible  <bruno@clisp.org>
17929
17930         New module 'mkostemp'.
17931         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17932         * lib/stdlib.in.h (mksotemp): New declaration.
17933         * lib/mkostemp.c: New file, from glibc with modifications.
17934         * lib/tempname.h (GT_FILE): Remove outdated comment.
17935         (gen_tempname): Add flags argument.
17936         * lib/tempname.c (__GT_BIGFILE): Remove macro.
17937         (__GT_FILE): Map to 1.
17938         (small_open, large_open): Remove macros.
17939         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
17940         * lib/mkstemp.c (mkstemp): Update.
17941         * lib/mkdtemp.c (mkdtemp): Likewise.
17942         * m4/mkostemp.m4: New file.
17943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
17944         HAVE_MKOSTEMP.
17945         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
17946         HAVE_MKOSTEMP.
17947         * modules/mkostemp: New file, based on modules/mkstemp.
17948         * doc/glibc-functions/mkostemp.texi: Mention the new module.
17949         * NEWS: Mention the change.
17950
17951 2009-08-23  Bruno Haible  <bruno@clisp.org>
17952
17953         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
17954         Reported by Eric Blake.
17955
17956 2009-08-23  Bruno Haible  <bruno@clisp.org>
17957
17958         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
17959         Reported by Eric Blake.
17960
17961 2009-08-23  Bruno Haible  <bruno@clisp.org>
17962
17963         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
17964         * modules/pipe2 (Depends-on): Likewise.
17965
17966 2009-08-23  Eric Blake  <ebb9@byu.net>
17967
17968         fcntl-h: add O_TTY_INIT support
17969         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
17970         * tests/test-fcntl-h.c (o): Test it.
17971         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17972
17973         fcntl-h: rename from fcntl, in preparation for fcntl(2)
17974         * modules/fcntl: Move <fcntl.h> header replacement...
17975         * modules/fcntl-h: ...to new name, so as not to collide with
17976         like-named function.
17977         * tests/test-fcntl.c: Rename...
17978         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
17979         * modules/fcntl-tests: Rename...
17980         * modules/fcntl-h-tests: ...to this.  Update test file name.
17981         * modules/chdir-long (Depends-on): Update clients.
17982         * modules/chdir-safer (Depends-on): Likewise.
17983         * modules/fcntl-safer (Depends-on): Likewise.
17984         * modules/fts (Depends-on): Likewise.
17985         * modules/mkancesdirs (Depends-on): Likewise.
17986         * modules/mkdir-p (Depends-on): Likewise.
17987         * modules/open (Depends-on): Likewise.
17988         * modules/savewd (Depends-on): Likewise.
17989         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
17990         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17991
17992 2009-08-22  Bruno Haible  <bruno@clisp.org>
17993
17994         * modules/binary-io (License): Relicense under LGPL.
17995         * modules/pipe2 (License): Likewise.
17996
17997 2009-08-22  Bruno Haible  <bruno@clisp.org>
17998
17999         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18000         return value.
18001         * lib/pipe-filter-gi.c (filter_init): Likewise.
18002         Reported by Eric Blake.
18003
18004 2009-08-22  Bruno Haible  <bruno@clisp.org>
18005
18006         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18007         * modules/pipe (Depends-on): Add pipe2.
18008
18009 2009-08-22  Bruno Haible  <bruno@clisp.org>
18010
18011         Tests for module 'pipe2'.
18012         * modules/pipe2-tests: New file.
18013         * tests/test-pipe2.c: New file.
18014
18015         New module 'pipe2'.
18016         * lib/unistd.in.h (pipe2): New declaration.
18017         * lib/pipe2.c: New file.
18018         * m4/pipe2.m4: New file.
18019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18020         HAVE_PIPE2.
18021         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18022         * modules/pipe2: New file.
18023         * doc/glibc-functions/pipe2.texi: Mention the new module.
18024
18025 2009-08-22  Bruno Haible  <bruno@clisp.org>
18026
18027         Reference some new glibc functions.
18028         * doc/glibc-functions/accept4.texi: New file.
18029         * doc/glibc-functions/dup3.texi: New file.
18030         * doc/glibc-functions/mkostemp.texi: New file.
18031         * doc/glibc-functions/pipe2.texi: New file.
18032         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18033         (Glibc sys/socket.h): Refer to accept4.
18034         (Glibc unistd.h): Refer to dup3, pipe2.
18035         Reported by Eric Blake.
18036
18037 2009-08-22  Jim Meyering  <meyering@redhat.com>
18038             Bruno Haible  <bruno@clisp.org>
18039
18040         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18041         This makes it so packages using automake-1.11's silent-rules option
18042         can print e.g., a single "GEN    configmake.h" line, rather than
18043         the 30+ statements that perform the job.  If you want to see the
18044         actual commands, you can still run "make V=1".
18045         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18046         so that make output is abbreviated when those variables are defined
18047         appropriately.
18048         * modules/argz: Likewise.
18049         * modules/arpa_inet: Likewise.
18050         * modules/byteswap: Likewise.
18051         * modules/configmake: Likewise.
18052         * modules/dirent: Likewise.
18053         * modules/errno: Likewise.
18054         * modules/fcntl: Likewise.
18055         * modules/float: Likewise.
18056         * modules/fnmatch: Likewise.
18057         * modules/getopt-posix: Likewise.
18058         * modules/glob: Likewise.
18059         * modules/iconv_open: Likewise.
18060         * modules/inttypes: Likewise.
18061         * modules/localcharset: Likewise.
18062         * modules/locale: Likewise.
18063         * modules/math: Likewise.
18064         * modules/netdb: Likewise.
18065         * modules/netinet_in: Likewise.
18066         * modules/poll: Likewise.
18067         * modules/posix_spawnp-tests: Likewise.
18068         * modules/sched: Likewise.
18069         * modules/search: Likewise.
18070         * modules/selinux-h: Likewise.
18071         * modules/signal: Likewise.
18072         * modules/spawn: Likewise.
18073         * modules/stdarg: Likewise.
18074         * modules/stdbool: Likewise.
18075         * modules/stddef: Likewise.
18076         * modules/stdint: Likewise.
18077         * modules/stdio: Likewise.
18078         * modules/stdlib: Likewise.
18079         * modules/string: Likewise.
18080         * modules/strings: Likewise.
18081         * modules/sys_file: Likewise.
18082         * modules/sys_ioctl: Likewise.
18083         * modules/sys_select: Likewise.
18084         * modules/sys_socket: Likewise.
18085         * modules/sys_stat: Likewise.
18086         * modules/sys_time: Likewise.
18087         * modules/sys_times: Likewise.
18088         * modules/sys_utsname: Likewise.
18089         * modules/sys_wait: Likewise.
18090         * modules/sysexits: Likewise.
18091         * modules/time: Likewise.
18092         * modules/unistd: Likewise.
18093         * modules/wchar: Likewise.
18094         * modules/wctype: Likewise.
18095
18096 2009-08-22  Jim Meyering  <meyering@redhat.com>
18097
18098         announce-gen: detect write failure
18099         * build-aux/announce-gen: Add Coda at end.
18100         Remove equivalent-but-more-verbose block at top.
18101
18102 2009-08-19  Akim Demaille  <demaille@gostai.com>
18103
18104         bootstrap: --help to stdout.
18105         * bootstrap (usage): Don't send --help to stderr.
18106         Use a here doc instead of a long string.
18107
18108 2009-08-21  Eric Blake  <ebb9@byu.net>
18109
18110         test-popen-safer: split from test-popen
18111         * tests/test-popen.c (main): Move...
18112         * tests/test-popen.h: ...into new file.
18113         * tests/test-popen-safer2.c: New file.
18114         * modules/popen-tests (Files): Add test-popen.h.
18115         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18116         Suggested by Bruno Haible.
18117
18118         test-fcntl-safer: split from test-open
18119         * tests/test-open.c (main): Move...
18120         * tests/test-open.h: ...into new file.
18121         * tests/test-fcntl-safer.c: New file.
18122         * modules/open-tests (Files): Add test-open.h.
18123         * modules/fcntl-safer-tests: New file.
18124         Suggested by Bruno Haible.
18125
18126         test-fopen-safer: split from test-fopen
18127         * tests/test-fopen.c (main): Move...
18128         * tests/test-fopen.h: ...into new file.
18129         * tests/test-fopen-safer.c: New file.
18130         * modules/fopen-tests (Files): Add test-fopen.h.
18131         * modules/fopen-safer-tests: New file.
18132         Suggested by Bruno Haible.
18133
18134 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18135
18136         popen-safer: test O_CLOEXEC at run-time.
18137         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18138
18139 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18140
18141         fcntl: move more flags to the header
18142         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18143         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18144         * lib/fcntl.in.h: Do both things here.
18145
18146 2009-08-21  Jim Meyering  <meyering@redhat.com>
18147
18148         consistently remove $@-t before redirecting to it
18149         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18150         * modules/alloca-opt: Likewise.
18151         * modules/byteswap: Likewise.
18152         * modules/fnmatch: Likewise.
18153         * modules/getopt-posix: Likewise.
18154         * modules/glob: Likewise.
18155         * modules/poll: Likewise.
18156         * modules/posix_spawnp-tests: Likewise.
18157         * modules/sys_socket: Likewise.
18158         * modules/sysexits: Likewise.
18159
18160 2009-08-21  Eric Blake  <ebb9@byu.net>
18161
18162         popen: simplify access to original popen
18163         * lib/popen.c (rpl_popen): No need to worry about popen being a
18164         macro.
18165         Reported by Bruno Haible.
18166
18167 2009-08-20  Eric Blake  <ebb9@byu.net>
18168
18169         build: avoid some compiler warnings
18170         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18171         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18172         type.
18173         (new_exclude_segment, excluded_file_pattern_p)
18174         (excluded_file_name_p): Reduce scope.
18175         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18176         old-style declaration.
18177
18178 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18179
18180         * tests/test-exclude1.sh: Handle Windows EOL.
18181         * tests/test-exclude2.sh: Likewise.
18182         * tests/test-exclude3.sh: Likewise.
18183         * tests/test-exclude4.sh: Likewise.
18184         * tests/test-exclude5.sh: Likewise.
18185         * tests/test-exclude6.sh: Likewise.
18186         * tests/test-exclude7.sh: Likewise.
18187
18188 2009-08-19  Akim Demaille  <demaille@gostai.com>
18189
18190         bootstrap: find sha1sum when named gsha1sum.
18191         * bootstrap (find_tool): New.
18192         ($SHA1SUM): New.
18193         Use it.
18194
18195 2009-08-20  Jim Meyering  <meyering@redhat.com>
18196
18197         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18198         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18199         expression that converts "." in a file name to "\." in the resulting
18200         regexp.  Start with a dummy statement, so that prior shell variable
18201         definitions are expanded portably.  Reported by Simon Josefsson.
18202
18203 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18204
18205         Fix polling for writeability of a screen buffer.
18206         * lib/poll.c: Distinguish input and screen buffers for the
18207         Win32 implementation.
18208         * lib/select.c: Likewise.
18209
18210 2009-08-19  Eric Blake  <ebb9@byu.net>
18211
18212         popen-safer: prevent popen from clobbering std descriptors
18213         * modules/popen-safer: New file.
18214         * lib/popen-safer.c: Likewise.
18215         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18216         * lib/stdio--.h (popen): Provide override.
18217         * lib/stdio-safer.h (popen_safer): Provide declaration.
18218         * tests/test-popen.c (includes): Partially test this.
18219         * modules/popen-safer-tests: New file, for more tests.
18220         * tests/test-popen-safer.c: Likewise.
18221         * MODULES.html.sh (file stream based Input/Output): Mention it.
18222
18223         tests: test some of the *-safer modules
18224         * modules/fopen-safer (Depends-on): Add fopen.
18225         * modules/fcntl-safer (Depends-on): Add fcntl.
18226         * modules/stdlib-safer (Depends-on): Add stdlib.
18227         (configure.ac): Set indicator.
18228         * modules/unistd-safer (configure.ac): Likewise.
18229         * modules/tmpfile-safer (configure.ac): Likewise.
18230         (Depends-on): Add tmpfile.
18231         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18232         active.
18233         * tests/test-fopen.c (includes): Test safer versions when they are
18234         in use.
18235         * tests/test-open.c (includes): Likewise.
18236
18237         popen: fix cygwin 1.5 bug when stdin closed
18238         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18239         * modules/popen: New file.
18240         * modules/popen-tests: Likewise.
18241         * tests/test-popen.c: Likewise.
18242         * m4/popen.m4: Likewise.
18243         * lib/popen.c: Likewise.
18244         * lib/stdio.in.h (popen): New declaration.
18245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18246         * modules/stdio (Makefile.am): Likewise.
18247         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18248
18249 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18250
18251         maint.mk: give full control over update-copyright exclusions
18252         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18253         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18254         (update-copyright): Don't force inclusion of top-level
18255         ChangeLog.  Don't force exclusion of all COPYING files, but make
18256         them the default exclusion instead.
18257
18258 2009-08-16  Bruno Haible  <bruno@clisp.org>
18259
18260         Fix test failures on Solaris 10.
18261         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18262         tests when Solaris iconv() is used.
18263         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18264         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18265         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18266         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18267         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18268
18269 2009-08-16  Bruno Haible  <bruno@clisp.org>
18270
18271         Fix test failures on Solaris 10.
18272         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18273         'tr' program and pass it as first argument.
18274         * tests/test-pipe-filter-gi1.sh: Likewise.
18275         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18276         program as first argument.
18277         * tests/test-pipe-filter-gi1.c (main): Likewise.
18278
18279 2009-08-16  Eric Blake  <ebb9@byu.net>
18280
18281         fpurge: fix previous commits
18282         * modules/fpurge (Makefile.am): Make replacement conditional,
18283         partially reverting 2007-04-29 change; missed in previous
18284         attempt.
18285         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18286         is missing.
18287
18288 2009-08-16  Bruno Haible  <bruno@clisp.org>
18289
18290         Clarify fpurge's effect on the file position.
18291         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18292         * tests/test-fpurge.c (main): Make a second pass for checking the file
18293         position.
18294
18295 2009-08-16  Bruno Haible  <bruno@clisp.org>
18296
18297         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18298         declaration of fpurge is missing.
18299         * tests/test-fpurge.c (main): Check that the file has not more contents
18300         than expected. Close the file before removing it.
18301
18302 2009-08-15  Eric Blake  <ebb9@byu.net>
18303
18304         fpurge: don't wrap working cygwin implementation
18305         * lib/fpurge.c (fpurge): Fix comment typo.
18306         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18307         1.7 to avoid replacement.
18308         * tests/test-fpurge.c (main): Enhance test.
18309
18310 2009-08-15  Eric Blake  <ebb9@byu.net>
18311         and Jim Meyering  <meyering@redhat.com>
18312
18313         test-update-copyright: skip if perl is insufficient
18314         * tests/test-update-copyright.sh: Failure to run maintainer tool
18315         should not cause testsuite failure on cygwin 1.5.
18316
18317 2009-08-14  Eric Blake  <ebb9@byu.net>
18318
18319         doc: mention more functions added in cygwin 1.7.0
18320         * doc/posix-headers/limits.texi (limits.h): Update for recent
18321         cygwin additions.
18322         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18323         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18324         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18325         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18326         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18327
18328 2009-08-14  Eric Blake  <ebb9@byu.net>
18329
18330         maint.mk: simplify update-copyright rule
18331         * top/maint.mk (update-copyright-local): Delete, and document how
18332         to do it in cfg.mk instead.
18333         (update-copyright-exclude-regexp): Delete, and document how to do
18334         it in .x-update-copyright instead.
18335         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18336         exclude ChangeLog.
18337
18338 2009-08-14  Bruno Haible  <bruno@clisp.org>
18339
18340         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18341
18342 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18343
18344         maint.mk: support update-copyright-env
18345         * top/maint.mk (update-copyright-env): Define place-holder.
18346         (update-copyright): Expand $(update-copyright-env) before
18347         invoking update-copyright.
18348
18349 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18350
18351         update-copyright: implement forced reformatting
18352         * build-aux/update-copyright: Implement and document
18353         UPDATE_COPYRIGHT_FORCE.
18354         * tests/test-update-copyright.sh: Test it.
18355
18356 2009-08-14  Eric Blake  <ebb9@byu.net>
18357         and Bruno Haible  <bruno@clisp.org>
18358
18359         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18360         * tests/test-locale.c: Revert previous patch related to NULL.
18361         * tests/test-stdio.c: Likewise.
18362         * tests/test-stdlib.c: Likewise.
18363         * tests/test-string.c: Likewise.
18364         * tests/test-unistd.c: Likewise.
18365         * modules/time-tests (Depends-on): Add verify.
18366         * modules/wchar-tests (Depends-on): Likewise.
18367         * tests/test-time.c: Test for NULL compliance.
18368         * tests/test-wchar.c: Likewise.
18369         * modules/locale (Depends-on): Add stddef.
18370         * modules/stdio (Depends-on): Likewise.
18371         * modules/stdlib (Depends-on): Likewise.
18372         * modules/string (Depends-on): Likewise.
18373         * modules/time (Depends-on): Likewise.
18374         * modules/unistd (Depends-on): Likewise.
18375         * modules/wchar (Depends-on): Likewise.
18376         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18377         * lib/stdlib.in.h (includes): Likewise.
18378         * lib/string.in.h (includes): Likewise.
18379         * lib/time.in.h (includes): Likewise.
18380         * lib/unistd.in.h (includes): Likewise.
18381         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18382         replaced.
18383         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18384         * m4/stddef_h.m4: New file.
18385         * modules/stddef: Likewise.
18386         * lib/stddef.in.h: Likewise.
18387         * modules/stddef-tests: Likewise.
18388         * tests/test-stddef.c: Likewise.
18389         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18390         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18391         * doc/posix-headers/locale.texi (locale.h): Likewise.
18392         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18393         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18394         * doc/posix-headers/string.texi (string.h): Likewise.
18395         * doc/posix-headers/time.texi (time.h): Likewise.
18396         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18397         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18398
18399 2009-08-14  Eric Blake  <ebb9@byu.net>
18400
18401         doc: improve git diff of texinfo files
18402         * .gitattributes: Add rule for *.texi files, with hint on how to
18403         use it.
18404         Copied from m4, and based on a report by Bruno Haible.
18405
18406 2009-08-14  Bruno Haible  <bruno@clisp.org>
18407
18408         Disable multithread support by default on Cygwin 1.5.x for real.
18409         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18410
18411 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18412
18413         update-copyright: much ado about intervals
18414         * build-aux/update-copyright: Implement and document
18415         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18416         of copyright year intervals.
18417         Also, document UPDATE_COPYRIGHT_YEAR.
18418         * tests/test-update-copyright.sh: Test it.
18419
18420         update-copyright: convert 2-digit to 4-digit years
18421         * build-aux/update-copyright: Implement and document.
18422         * tests/test-update-copyright.sh: Update.
18423
18424 2009-08-14  Jim Meyering  <meyering@redhat.com>
18425
18426         test-exclude: avoid coreutils "make check" failure
18427         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18428         just as in test-argmatch.c.
18429
18430 2009-08-13  Eric Blake  <ebb9@byu.net>
18431
18432         test-dup2: fix bad assumption
18433         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18434         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18435
18436         test-version-etc: fix CRLF portability issue
18437         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18438         recognize \r.
18439         * tests/test-argp-version-etc-1.sh: Likewise.
18440
18441         getopt: update client modules
18442         * modules/argp (Depends-on): Use getopt-gnu.
18443         * modules/git-merge-changelog (Depends-on): Likewise.
18444         * modules/long-options (Depends-on): Likewise.
18445         * modules/xstrtol (Depends-on): Likewise.
18446
18447 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18448
18449         * tests/test-version-etc.sh: Don't fail on different
18450         project/version.  Don't fail on CRLF differences.  Rewrite to use
18451         multiple -e instead of multiple sed forks, suggested by Eric Blake
18452         <ebb9@byu.net>.
18453         * tests/test-argp-version-etc-1.sh: Likewise.
18454
18455 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18456
18457         * tests/test-version-etc.sh: Don't fail on different
18458         project/version.
18459
18460 2009-08-12  Bruno Haible  <bruno@clisp.org>
18461
18462         Tests for modules 'getopt-posix', 'getopt-gnu'.
18463         * modules/getopt-posix-tests: New file.
18464         * tests/test-getopt.c: New file.
18465         * tests/test-getopt.h: New file.
18466         * tests/test-getopt_long.h: New file.
18467
18468         New modules 'getopt-posix', 'getopt-gnu'.
18469         * modules/getopt-gnu: New file, renamed from modules/getopt.
18470         * modules/getopt-posix: New file.
18471         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18472         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18473         (gl_GETOPT): Remove macro.
18474         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18475         Disable the test against BSD systems that declare optreset. Test
18476         against mingw bug. Test against lack of support of optional arguments
18477         on many platforms.
18478         * doc/glibc-headers/getopt.texi: Update module name and list of
18479         relevant platforms.
18480         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18481         'getopt-gnu' and more portability problems.
18482         * NEWS: Mention the changes.
18483
18484 2009-08-12  Bruno Haible  <bruno@clisp.org>
18485
18486         Ensure that optarg etc. get declared by <unistd.h>.
18487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18488         AC_USE_SYSTEM_EXTENSIONS.
18489         * modules/getopt (Depends-on): Add 'extensions'.
18490
18491 2009-08-12  Bruno Haible  <bruno@clisp.org>
18492
18493         Avoid test link errors.
18494         * modules/pipe-filter-ii-tests (Makefile.am): Define
18495         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18496         * modules/pipe-filter-gi-tests (Makefile.am): Define
18497         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18499
18500 2009-08-12  Bruno Haible  <bruno@clisp.org>
18501
18502         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18503         gl_GETOPT_SUBSTITUTE before.
18504         (gl_GETOPT): Use it.
18505         * m4/argp.m4 (gl_ARGP): Update.
18506         Reported by Sergey Poznyakoff.
18507
18508         * m4/getopt.m4: Reorder macros.
18509         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18510         (gl_GETOPT_SUBSTITUTE): Remove macro.
18511
18512 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18513
18514         Minor improvement in gitlog-to-changelog
18515
18516         * build-aux/gitlog-to-changelog: New option `--format' makes
18517         output format string configurable.
18518
18519 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18520
18521         Optimize exclude: use hash tables for non-wildcard patterns.
18522
18523         * lib/exclude.c: Include hash.h and mbuiter.h
18524         (struct exclude_pattern, exclude_segment): New data types.
18525         (struct exclude): Rewrite.
18526         (fnmatch_pattern_has_wildcards): New function.
18527         (new_exclude_segment, free_exclude_segment): New functions.
18528         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18529         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18530         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18531         * modules/exclude: Depend on hash and mbuiter.
18532
18533         * modules/exclude-tests: New file.
18534         * tests/test-exclude.c: New file.
18535         * tests/test-exclude1.sh: New file.
18536         * tests/test-exclude2.sh: New file.
18537         * tests/test-exclude3.sh: New file.
18538         * tests/test-exclude4.sh: New file.
18539         * tests/test-exclude5.sh: New file.
18540         * tests/test-exclude6.sh: New file.
18541         * tests/test-exclude7.sh: New file.
18542
18543 2009-08-12  Bruno Haible  <bruno@clisp.org>
18544
18545         Ensure that getopt() gets declared by <unistd.h>.
18546         * lib/unistd.in.h: Conditionally include getopt.h.
18547         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18548         Set GNULIB_UNISTD_H_GETOPT.
18549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18550         GNULIB_UNISTD_H_GETOPT.
18551         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18552
18553 2009-08-12  Bruno Haible  <bruno@clisp.org>
18554
18555         Clarify logic.
18556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18557         gl_replace_getopt instead of GETOPT_H.
18558
18559 2009-08-12  Bruno Haible  <bruno@clisp.org>
18560
18561         * m4/getopt.m4: Add comments.
18562
18563 2009-08-12  Bruno Haible  <bruno@clisp.org>
18564
18565         Disable multithread support by default on Cygwin 1.5.x.
18566         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18567         set gl_use_threads=no if not specified otherwise.
18568
18569 2009-08-11  Bruno Haible  <bruno@clisp.org>
18570
18571         Avoid compilation error on NetBSD 5.0.
18572         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18573         * tests/test-stdio.c: Likewise.
18574         * tests/test-stdlib.c: Likewise.
18575         * tests/test-string.c: Likewise.
18576         * tests/test-unistd.c: Likewise.
18577         Reported by Greg Troxel <gdt@ir.bbn.com>
18578         at <https://savannah.gnu.org/support/?106973>.
18579
18580 2009-08-11  Bruno Haible  <bruno@clisp.org>
18581
18582         * modules/dup2-tests (Depends-on): Remove close.
18583
18584         Undo 2009-07-19 commit.
18585         * modules/acl-tests (Depends-on): Remove close.
18586         * modules/binary-io-tests (Depends-on): Likewise.
18587         * modules/closein-tests (Depends-on): Likewise.
18588         * modules/flock-tests (Depends-on): Likewise.
18589         * modules/fsync-tests (Depends-on): Likewise.
18590         * modules/lseek-tests (Depends-on): Likewise.
18591         * modules/pipe-tests (Depends-on): Likewise.
18592         * modules/posix_spawn-tests (Depends-on): Likewise.
18593         * modules/posix_spawnp-tests (Depends-on): Likewise.
18594         * modules/stat-time-tests (Depends-on): Likewise.
18595         * modules/yesno-tests (Depends-on): Likewise.
18596
18597 2009-08-10  Bruno Haible  <bruno@clisp.org>
18598
18599         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18600
18601 2009-08-10  Bruno Haible  <bruno@clisp.org>
18602
18603         Fix a gcc warning.
18604         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18605
18606 2009-08-10  Bruno Haible  <bruno@clisp.org>
18607
18608         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18609         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18610         not only the first time.
18611         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18612         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18613         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18614         is 1, not only the the first time.
18615
18616 2009-08-10  Bruno Haible  <bruno@clisp.org>
18617
18618         Make it possible to use module 'gethostname' without module 'close'.
18619         * lib/unistd.in.h (close): Evoke a link error only if
18620         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18622         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18623         * modules/unistd (Makefile.am): Substitute
18624         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18625         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18626         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18628         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18629         * modules/sys_ioctl (Makefile.am): Substitute
18630         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18631         * modules/socket (configure.ac): On native Windows, set
18632         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18633         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18634         Reported by Sam Steingold <sds@gnu.org>.
18635
18636 2009-08-10  Bruno Haible  <bruno@clisp.org>
18637
18638         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18639         * modules/ioctl (configure.ac): Likewise.
18640
18641 2009-08-10  Bruno Haible  <bruno@clisp.org>
18642
18643         Avoid collision between gnulib wrapper and libintl wrapper.
18644         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18645         already defined in intl/printf.c.
18646         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18647         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18648
18649 2009-08-09  Bruno Haible  <bruno@clisp.org>
18650
18651         Make <sys/select.h> really self-contained, also on Solaris 10.
18652         * lib/sys_select.in.h: Include <string.h>.
18653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18654         Solaris 10 problem.
18655         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18656         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18657         Reported by Jim Meyering.
18658
18659 2009-08-09  Bruno Haible  <bruno@clisp.org>
18660
18661         Avoid warnings from 'aclocal' that are due to a use of macro name
18662         AM_XGETTEXT_OPTION that is not defined in automake.
18663         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18664         automake.
18665         * modules/error (configure.ac): Likewise.
18666         * modules/propername (configure.ac): Likewise.
18667         * modules/vasprintf (configure.ac): Likewise.
18668         * modules/verror (configure.ac): Likewise.
18669         * modules/xprintf (configure.ac): Likewise.
18670         * modules/xvasprintf (configure.ac): Likewise.
18671
18672 2009-08-08  Bruno Haible  <bruno@clisp.org>
18673
18674         Avoid compilation error in C++ mode.
18675         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18676         Reported by Sam Steingold <sds@gnu.org>.
18677
18678 2009-08-08  Bruno Haible  <bruno@clisp.org>
18679
18680         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18681         for the various Unix platforms.
18682         * doc/posix-headers/limits.texi: Update platforms list regarding
18683         HOST_NAME_MAX.
18684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18685
18686 2009-08-07  Jim Meyering  <meyering@redhat.com>
18687
18688         selinux-at: fix typo in a comment
18689         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18690         Spotted by Paolo Bonzini.
18691
18692         selinux-at: remove redundant m4 code, add documentation
18693         * modules/selinux-at (configure.ac): Remove redundant code.
18694         LIB_SELINUX is already set via the dependent module, selinux-h.
18695         (Include): Add quotes around selinux-at.h.
18696         * lib/selinux-at.h: Add documentation.
18697         Reported by Bruno Haible in
18698         http://marc.info/?l=gnulib-bug&m=124958988300749
18699
18700 2009-08-07  Bruno Haible  <bruno@clisp.org>
18701
18702         Avoid link error on MacOS X 10.3 and 10.4.
18703         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18704         on non-ELF systems.
18705         * lib/argp-pv.c (argp_program_version): Likewise.
18706         Reported by Simon Josefsson.
18707
18708 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18709
18710         * tests/test-version-etc.sh: Use $EXEEXT.
18711
18712 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18713
18714         update-copyright: update documentation to point to maint.mk
18715         * build-aux/update-copyright: Here.
18716
18717 2009-08-06  Jim Meyering  <meyering@redhat.com>
18718
18719         maint.mk: support update-copyright-local
18720         * top/maint.mk (update-copyright-local): Define place-holder.
18721         (update-copyright): Depend on $(update-copyright-local).
18722
18723 2009-08-06  Jim Meyering  <meyering@redhat.com>
18724
18725         selinux-at: new module
18726         Initially written for coreutils, this module will soon be
18727         used by findutils, too.
18728         * MODULES.html.sh [Misc]: Add selinux-at.
18729         * lib/selinux-at.h: New file, from coreutils.
18730         * lib/selinux-at.c: Likewise.
18731         * modules/selinux-at: Likewise.
18732         (License): Change from LGPL to GPL, since it depends
18733         on the GPL'd openat module.
18734
18735         doc: update README
18736         * README: Remove references to cogito.
18737         Remove cvs-repo-updating instructions from 2007.
18738         Don't imply that CVS is better if you have limited disk space.
18739
18740 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18741
18742         update-copyright: support C-style comments
18743         * build-aux/update-copyright: Implement and document.
18744         * tests/test-update-copyright.sh: Test.
18745
18746 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18747
18748         update-copyright: support omitted "(C)"
18749         * build-aux/update-copyright: Implement and document.  Also,
18750         allow variable whitespace before "(C)".
18751         * tests/test-update-copyright.sh: Test.
18752
18753 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18754
18755         update-copyright: don't trip on non-FSF copyright statements
18756         * build-aux/update-copyright: Fix so that the first correctly
18757         formatted FSF copyright statement is recognized no matter what
18758         appears before it.  Update documentation.
18759         * tests/test-update-copyright.sh: Test that.
18760
18761 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18762
18763         update-copyright: clean up code a little
18764         * build-aux/update-copyright: Append "_re" to the name of any
18765         variable holding a regular expression.
18766         Replace "old" and "new" with "stmt" in variable names.
18767         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18768         handled correctly.
18769         Format code more consistently.
18770
18771 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18772
18773         update-copyright-tests: improve portability
18774         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18775         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18776
18777 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18778
18779         update-copyright: support @copyright{} and &copy;
18780         * build-aux/update-copyright: Implement and document.
18781         * tests/test-update-copyright.sh: Test.
18782
18783 2009-08-04  Jim Meyering  <meyering@redhat.com>
18784
18785         update-copyright-tests: correctly test EOL=\r\n handling
18786         * tests/test-update-copyright.sh: Put \r at the end of some lines
18787         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18788
18789         maint.mk: make update-copyright exclusion list more configurable
18790         * top/maint.mk (update-copyright): Default to excluding COPYING,
18791         but allow an override, in case someone does want to update that file.
18792
18793         maint.mk: don't update copyright date in COPYING
18794         * top/maint.mk (update-copyright): Exclude COPYING.
18795
18796         maint.mk: add a copyright-updating rule
18797         * top/maint.mk (update-copyright): New rule.
18798         Derived from coreutils/Makefile.am.
18799
18800         update-copyright: rename some variables
18801         * build-aux/update-copyright: Rename a few variables for clarity.
18802         Tweak syntax.  List Joel E. Denny as coauthor.
18803
18804 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18805
18806         update-copyright: fix bug for 2-digit last year and add tests
18807         * build-aux/update-copyright: Fix bug.
18808         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18809         specified.
18810         * modules/update-copyright-tests: New
18811         * tests/test-update-copyright.sh: New.
18812
18813 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18814
18815         update-copyright: handle leading tabs in line prefix
18816         * build-aux/update-copyright: Count leading tabs as 8 spaces
18817         when computing margin.  This helps with the formatting of
18818         ChangeLogs, for example.
18819         Fix documentation a little.
18820
18821 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18822
18823         update-copyright: support EOL=\r\n
18824         * build-aux/update-copyright: Implement that.
18825
18826 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18827
18828         update-copyright: automatically format copyright statements
18829         * build-aux/update-copyright: Implement that.
18830         Also, be a little more predictable and safer by always failing
18831         when the full copyright format is not perfectly recognized as an
18832         unbroken whole.  Discussed at
18833         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18834         Rewrite documentation.
18835
18836 2009-08-03  Bruno Haible  <bruno@clisp.org>
18837
18838         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18839
18840 2009-08-02  Bruno Haible  <bruno@clisp.org>
18841
18842         Tests for module 'uname'.
18843         * modules/uname-tests: New file.
18844         * tests/test-uname.c: New file.
18845
18846         New module 'uname'.
18847         * lib/uname.c: New file.
18848         * m4/uname.m4: New file.
18849         * modules/uname: New file.
18850         * doc/posix-functions/uname.texi: Mention the new module.
18851
18852 2009-08-02  Bruno Haible  <bruno@clisp.org>
18853
18854         Tests for module 'sys_utsname'.
18855         * modules/sys_utsname-tests: New file.
18856         * tests/test-sys_utsname.c: New file.
18857
18858         New module 'sys_utsname'.
18859         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18860         * m4/sys_utsname_h.m4: New file.
18861         * modules/sys_utsname: New file.
18862         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18863
18864 2009-08-02  Bruno Haible  <bruno@clisp.org>
18865
18866         Implicitly initialize the sockets library.
18867         * lib/gethostname.c: Include sockets.h.
18868         (rpl_gethostname): Invoke gl_sockets_startup.
18869         * lib/socket.c: Include sockets.h.
18870         (rpl_socket): Invoke gl_sockets_startup.
18871         * modules/gethostname (Depends-on): Add sockets.
18872         * modules/socket (Depends-on): Likewise.
18873         * tests/test-poll.c: Don't include sockets.h.
18874         (main): Don't invoke gl_sockets_startup.
18875         * tests/test-select.c: Don't include sockets.h.
18876         (main): Don't invoke gl_sockets_startup.
18877
18878 2009-08-02  Bruno Haible  <bruno@clisp.org>
18879
18880         Allow multiple calls to gl_sockets_startup.
18881         * lib/sockets.c (initialized_sockets_version): New variable.
18882         (gl_sockets_startup): Do nothing if already called for this or a higher
18883         version.
18884         (gl_sockets_cleanup): Reset initialized_sockets_version.
18885
18886 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18887
18888         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18889         different project/version.
18890
18891 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18892             Bruno Haible  <bruno@clisp.org>
18893
18894         Tests for module 'pipe-filter-gi'.
18895         * modules/pipe-filter-gi-tests: New file.
18896         * tests/test-pipe-filter-gi1.sh: New file.
18897         * tests/test-pipe-filter-gi1.c: New file.
18898         * tests/test-pipe-filter-gi2.sh: New file.
18899         * tests/test-pipe-filter-gi2-main.c: New file.
18900         * tests/test-pipe-filter-gi2-child.c: New file.
18901
18902         New module 'pipe-filter-gi'.
18903         * lib/pipe-filter-gi.c: New file.
18904         * modules/pipe-filter-gi: New file.
18905
18906 2009-08-02  Bruno Haible  <bruno@clisp.org>
18907             Paolo Bonzini  <bonzini@gnu.org>
18908
18909         Tests for module 'pipe-filter-ii'.
18910         * modules/pipe-filter-ii-tests: New file.
18911         * tests/test-pipe-filter-ii1.sh: New file.
18912         * tests/test-pipe-filter-ii1.c: New file.
18913         * tests/test-pipe-filter-ii2.sh: New file.
18914         * tests/test-pipe-filter-ii2-main.c: New file.
18915         * tests/test-pipe-filter-ii2-child.c: New file.
18916
18917         New module 'pipe-filter-ii'.
18918         * lib/pipe-filter.h: New file.
18919         * lib/pipe-filter-ii.c: New file.
18920         * lib/pipe-filter-aux.h: New file.
18921         * modules/pipe-filter-ii: New file.
18922
18923 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18924
18925         * lib/gc-libgcrypt.c: Change copyright to FSF.
18926         * lib/gc-gnulib.c: Likewise.
18927
18928 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18929
18930         * lib/gethostname.c: Include limits.h.
18931
18932 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18933             Bruno Haible  <bruno@clisp.org>
18934
18935         Ensure HOST_NAME_MAX as part of the gethostname module.
18936         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
18937         define also HOST_NAME_MAX.
18938         * tests/test-gethostname.c: Include <limits.h>.
18939         (main): Check also HOST_NAME_MAX.
18940         * doc/posix-headers/limits.texi: Document the mingw problem.
18941
18942 2009-08-02  Bruno Haible  <bruno@clisp.org>
18943
18944         * lib/gethostname.c (gethostname): Fix handling of large len argument.
18945         Add comments.
18946
18947 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18948
18949         * lib/gethostname.c: Add Windows wrapper.
18950         * m4/gethostname.m4: Look for gethostname in -lws2_32.
18951         * modules/gethostname: Depend on sys_socket & errno, for also
18952         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
18953         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
18954
18955 2009-07-31  Jim Meyering  <meyering@redhat.com>
18956
18957         getloadavg: fix symbol name in comment
18958         * lib/getloadavg.c: Correct a typo I introduced when adding
18959         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
18960         Matt Kraai spotted the problem.
18961
18962 2009-07-29  Matt Kraai  <mkraai@beckman.com>
18963
18964         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
18965         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
18966         code also if ! defined N_NAME_POINTER.
18967         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
18968         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
18969         but the n_name member is a 12-byte array.
18970
18971 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
18972
18973         update-copyright: generalize comment handling
18974         * build-aux/update-copyright: Handle copyright statements
18975         within more comment styles.
18976         Document usage.
18977         Report any file with an external copyright holder or parse failure.
18978
18979 2009-07-29  Jim Meyering  <meyering@redhat.com>
18980
18981         mktime: correct setting of REPLACE_MKTIME
18982         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
18983
18984         update-copyright: new module
18985         * modules/update-copyright: New file.
18986         * build-aux/update-copyright: New file.
18987         * MODULES.html.sh (maint+release support): Add update-copyright.
18988
18989 2009-07-27  Bruno Haible  <bruno@clisp.org>
18990
18991         Fix compilation error when <ctime> is used and mktime is replaced.
18992         * lib/time.in.h (mktime): New declaration.
18993         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
18994         REPLACE_MKTIME instead of defining mktime in config.h.
18995         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
18996         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
18997         Reported by Ross McFarland <rwmcfa1@neces.com>.
18998
18999 2009-07-27  Bruno Haible  <bruno@clisp.org>
19000
19001         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19002         Reported by Matt Kraai <mkraai@beckman.com>.
19003
19004 2009-07-25  Jim Meyering  <meyering@redhat.com>
19005
19006         maint.mk: avoid warnings about missing files
19007         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19008         diagnostic when .prev-version does not exist.
19009         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19010         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19011         nonexistent cfg.mk.
19012         Suggestions from Simon Josefsson.
19013
19014 2009-07-25  Bruno Haible  <bruno@clisp.org>
19015
19016         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19017         defined as macros. Needed on QNX 6.4.1.
19018         Reported by Matt Kraai <mkraai@beckman.com>.
19019
19020 2009-07-23  Jim Meyering  <meyering@redhat.com>
19021
19022         maint.mk: invoke "make dist" with a working value of XZ_OPT
19023         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19024
19025 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19026
19027         Make fseeko.c compile on QNX.
19028         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19029
19030 2009-07-22  Peter Simons  <simons@cryp.to>
19031
19032         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19033         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19034         * lib/md4.h: Likewise.
19035         * lib/md5.h: Likewise.
19036         * lib/sha1.h: Likewise.
19037         * lib/sha256.h: Likewise.
19038         * lib/sha512.h: Likewise.
19039
19040         tests-sha1: don't assign literal string to 'char *' variable
19041         * tests/test-sha1.c (main): Declare locals with "const" to match
19042         attributes of the right hand side.
19043
19044 2009-07-21  Eric Blake  <ebb9@byu.net>
19045
19046         dup2: fix more mingw problems
19047         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19048         fd to itself.
19049         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19050         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19051         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19052         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19053         care of mingw bugs.
19054
19055 2009-07-21  Jim Meyering  <meyering@redhat.com>
19056
19057         vc-list-files: avoid failure when /bin/sh is dash
19058         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19059         On some Debian based systems, /bin/sh is a symlink to dash, and running
19060         this command would omit the "/" following each 'tests' prefix:
19061           dash -x build-aux/vc-list-files -C . tests
19062         That is because bash and dash work differently:
19063           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19064           bash ok
19065           dash odd
19066
19067 2009-07-21  Eric Blake  <ebb9@byu.net>
19068
19069         dup2-tests: test previous patch
19070         * modules/dup2-tests: New file.
19071         * tests/test-dup2.c: Likewise.
19072         * tests/test-open.c (main): Avoid unspecified behavior.
19073         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19074         test.
19075
19076         dup2: work around mingw and cygwin 1.5 bug
19077         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19079         * modules/unistd (Makefile.am): Substitute it.
19080         * lib/unistd.in.h (dup2): Declare the replacement.
19081         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19082         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19083         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19084         * modules/execute (Depends-on): Add dup2.
19085         * modules/fseterr (Depends-on): Likewise.
19086         * modules/pipe (Depends-on): Likewise.
19087         * modules/posix_spawn-internal (Depends-on): Likewise.
19088
19089 2009-07-21  Bruno Haible  <bruno@clisp.org>
19090
19091         * modules/.gitattributes: New file.
19092
19093 2009-07-20  Bruno Haible  <bruno@clisp.org>
19094
19095         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19096         (main): Use it.
19097
19098 2009-07-20  Eric Blake  <ebb9@byu.net>
19099
19100         test-pipe: make a bit more robust.
19101         * tests/test-pipe.c (myerr): Allow error messages regardless of
19102         what we do to stderr.
19103         (test_pipe): Rearrange to avoid deadlock.
19104         (child_main): Try a larger read, to ensure we avoided deadlock.
19105         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19106         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19107         if misused.
19108
19109 2009-07-19  Jim Meyering  <meyering@redhat.com>
19110
19111         fts: avoid false-positive cycle-detection
19112         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19113         for each new command line argument.
19114
19115 2009-07-19  Bruno Haible  <bruno@clisp.org>
19116
19117         Fix build error on mingw with the modules sys_select and unistd.
19118         * modules/acl-tests (Depends-on): Add close.
19119         * modules/binary-io-tests (Depends-on): Likewise.
19120         * modules/closein-tests (Depends-on): Likewise.
19121         * modules/flock-tests (Depends-on): Likewise.
19122         * modules/fsync-tests (Depends-on): Likewise.
19123         * modules/lseek-tests (Depends-on): Likewise.
19124         * modules/pipe-tests (Depends-on): Likewise.
19125         * modules/posix_spawn-tests (Depends-on): Likewise.
19126         * modules/posix_spawnp-tests (Depends-on): Likewise.
19127         * modules/stat-time-tests (Depends-on): Likewise.
19128         * modules/yesno-tests (Depends-on): Likewise.
19129
19130 2009-07-19  Bruno Haible  <bruno@clisp.org>
19131
19132         Unify conditionals.
19133         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19134         macros, not at the compiler macros.
19135         * lib/pipe.c: Likewise.
19136         * lib/execute.c: Likewise.
19137         * lib/spawni.c: Likewise.
19138
19139 2009-07-19  Bruno Haible  <bruno@clisp.org>
19140
19141         Fix handling of closed stdin/stdout/stderr on mingw.
19142         * lib/w32spawn.h: Include unistd.h.
19143         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19144         file descriptor with O_NOINHERIT flag.
19145         (fd_safer_noinherit): New function, based on fd-safer.c.
19146         (dup_safer_noinherit): New function, based on dup-safer.c.
19147         (undup_safer_noinherit): New function.
19148         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19149         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19150         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19151         instead of fd_safer.
19152         * tests/test-pipe.c: Include <windows.h>.
19153         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19154
19155         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19156         from main.
19157         (test_pipe): Pass an extra argument for disambiguation.
19158         (main): Invoke parent_main or child_main.
19159
19160         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19161         consistently.
19162
19163 2009-07-18  Eric Blake  <ebb9@byu.net>
19164
19165         test-pipe: fix mingw build
19166         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19167
19168 2009-07-18  Bruno Haible  <bruno@clisp.org>
19169
19170         * modules/pipe-tests (Makefile.am): Fix typo.
19171
19172 2009-07-18  Eric Blake  <ebb9@byu.net>
19173
19174         error: fix mingw build
19175         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19176         Reported by Bruno Haible.
19177
19178         error: avoid undefined use of stdout
19179         * lib/error.c (error, error_at_line): Check that fd 1 is open
19180         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19181         is handling faults and the close_stdout module wants to report the
19182         detection of closed stdout as an error.
19183
19184 2009-07-17  Eric Blake  <ebb9@byu.net>
19185
19186         pipe: be robust in face of closed fds
19187         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19188         should cause child to misbehave.
19189         * modules/pipe-tests: New module.
19190         * tests/test-pipe.c: New file.
19191         * tests/test-pipe.sh: New file.
19192         Reported by Akim Demaille.
19193
19194 2009-07-14  Bruno Haible  <bruno@clisp.org>
19195
19196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19197         Reported by anonymous kc.
19198
19199 2009-07-07  Jim Meyering  <meyering@redhat.com>
19200
19201         maint.mk: don't look for translatable strings in *.m4 or *.mk
19202         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19203         when searching for translatable strings.
19204
19205 2009-07-05  Jim Meyering  <meyering@redhat.com>
19206
19207         remove superfluous parentheses in STREQ definition
19208         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19209         * lib/getugroups.c (STREQ): Likewise.
19210         * lib/fnmatch.c (STREQ): Likewise.
19211         Spotted by Bruno Haible.
19212
19213 2009-07-04  Jim Meyering  <meyering@redhat.com>
19214
19215         argv-iter: new module
19216         * MODULES.html.sh: Add argv-iter.
19217         * lib/argv-iter.c, lib/argv-iter.h: New files.
19218         * modules/argv-iter: New file.
19219         * modules/argv-iter-tests: New file.
19220         * tests/test-argv-iter.c: Test it.
19221
19222 2009-07-04  Bruno Haible  <bruno@clisp.org>
19223
19224         Fix assertion.
19225         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19226         contains more exact copies of a given entry than file2, leave the extra
19227         copies unpaired rather than aborting.
19228         Reported by Eric Blake.
19229
19230 2009-07-02  Bruno Haible  <bruno@clisp.org>
19231
19232         Speedup git-merge-changelog for git cherry-pick.
19233         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19234         (entries_mapping_get): New function, extracted from compute_mapping.
19235         (entries_mapping_reverse_get): New function.
19236         (compute_mapping): Add a 'full' argument. Return the result in a
19237         'struct entries_mapping'.
19238         (main): Update. Access the mappings through entries_mapping_get.
19239         Reported by Eric Blake.
19240
19241 2009-07-02  Bruno Haible  <bruno@clisp.org>
19242
19243         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19244         best_i.
19245
19246 2009-07-02  Bruno Haible  <bruno@clisp.org>
19247
19248         Speed up approximate search for matching ChangeLog entries.
19249         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19250         argument. Call fstrcmp_bounded instead of fstrcmp.
19251         (compute_mapping, try_split_merged_entry, main): Update callers.
19252
19253 2009-07-02  Bruno Haible  <bruno@clisp.org>
19254
19255         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19256
19257 2009-06-30  Bruno Haible  <bruno@clisp.org>
19258
19259         Reduce the number of uc_is_cased calls.
19260         * lib/unicase.h (casing_suffix_context_t): Add
19261         'first_char_except_ignorable' field.
19262         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19263         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19264         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19265         Update initializer.
19266         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19267         case-ignorable characters.
19268         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19269         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19270         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19271         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19272         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19273
19274 2009-06-30  Bruno Haible  <bruno@clisp.org>
19275
19276         Tests for module 'unicase/ignorable'.
19277         * modules/unicase/ignorable-tests: New file.
19278         * tests/unicase/test-ignorable.c: New file, generated by
19279         gen-uni-tables.
19280
19281         Tests for module 'unicase/cased'.
19282         * modules/unicase/cased-tests: New file.
19283         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19284         * tests/unicase/test-predicate-part1.h: New file, derived from
19285         tests/unictype/test-predicate-part1.h.
19286         * tests/unicase/test-predicate-part2.h: New file, same as
19287         tests/unictype/test-predicate-part2.h.
19288
19289         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19290         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19291         (output_casing_properties): New function.
19292         (main): Call it.
19293         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19294         * lib/unicase/cased.c: Include unictype/bitmap.h.
19295         (uc_is_cased): Define through a bitmap lookup.
19296         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19297         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19298         (uc_is_case_ignorable): Define through a bitmap lookup.
19299         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19300         lib/unictype/bitmap.h.
19301         (Depends-on): Add inline. Clean up.
19302         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19303         lib/unictype/bitmap.h.
19304         (Depends-on): Add inline. Clean up.
19305         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19306         recognition.
19307         * tests/unicase/test-u16-tolower.c (main): Likewise.
19308         * tests/unicase/test-u32-tolower.c (main): Likewise.
19309
19310 2009-06-30  Bruno Haible  <bruno@clisp.org>
19311
19312         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19313         * lib/unicase/u16-casemap.c: Likewise.
19314         * lib/unicase/u32-casemap.c: Likewise.
19315
19316 2009-06-29  Bruno Haible  <bruno@clisp.org>
19317
19318         Define u32_casefold as a wrapper around u32_ct_casefold.
19319         * lib/unicase/u32-casefold.c: Update.
19320         * modules/unicase/u32-casefold (Depends-on): Add
19321         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19322         unicase/empty-suffix-context. Clean up.
19323
19324         Define u16_casefold as a wrapper around u16_ct_casefold.
19325         * lib/unicase/u16-casefold.c: Update.
19326         * modules/unicase/u16-casefold (Depends-on): Add
19327         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19328         unicase/empty-suffix-context. Clean up.
19329
19330         Define u8_casefold as a wrapper around u8_ct_casefold.
19331         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19332         * lib/unicase/u8-casefold.c: Update.
19333         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19334         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19335
19336         Define u32_totitle as a wrapper around u32_ct_totitle.
19337         * lib/unicase/u32-totitle.c: Update.
19338         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19339         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19340
19341         Define u16_totitle as a wrapper around u16_ct_totitle.
19342         * lib/unicase/u16-totitle.c: Update.
19343         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19344         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19345
19346         Define u8_totitle as a wrapper around u8_ct_totitle.
19347         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19348         functions.
19349         (FUNC): Delegate to U_CT_TOTITLE.
19350         * lib/unicase/u8-totitle.c: Update.
19351         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19352         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19353
19354         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19355         invocation.
19356         * modules/unicase/u32-tolower (Depends-on): Add
19357         unicase/empty-prefix-context, unicase/empty-suffix-context.
19358
19359         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19360         invocation.
19361         * modules/unicase/u16-tolower (Depends-on): Add
19362         unicase/empty-prefix-context, unicase/empty-suffix-context.
19363
19364         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19365         * modules/unicase/u8-tolower (Depends-on): Add
19366         unicase/empty-prefix-context, unicase/empty-suffix-context.
19367
19368         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19369         invocation.
19370         * modules/unicase/u32-toupper (Depends-on): Add
19371         unicase/empty-prefix-context, unicase/empty-suffix-context.
19372
19373         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19374         invocation.
19375         * modules/unicase/u16-toupper (Depends-on): Add
19376         unicase/empty-prefix-context, unicase/empty-suffix-context.
19377
19378         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19379         * modules/unicase/u8-toupper (Depends-on): Add
19380         unicase/empty-prefix-context, unicase/empty-suffix-context.
19381
19382         New module 'unicase/u32-ct-casefold'.
19383         * lib/unicase/u32-ct-casefold.c: New file.
19384         * modules/unicase/u32-ct-casefold: New file.
19385
19386         New module 'unicase/u16-ct-casefold'.
19387         * lib/unicase/u16-ct-casefold.c: New file.
19388         * modules/unicase/u16-ct-casefold: New file.
19389
19390         New module 'unicase/u8-ct-casefold'.
19391         * lib/unicase/u8-ct-casefold.c: New file.
19392         * lib/unicase/u-ct-casefold.h: New file, derived from
19393         lib/unicase/u-casefold.h.
19394         * modules/unicase/u8-ct-casefold: New file.
19395
19396         New module 'unicase/u32-ct-totitle'.
19397         * lib/unicase/u32-ct-totitle.c: New file.
19398         * modules/unicase/u32-ct-totitle: New file.
19399
19400         New module 'unicase/u16-ct-totitle'.
19401         * lib/unicase/u16-ct-totitle.c: New file.
19402         * modules/unicase/u16-ct-totitle: New file.
19403
19404         New module 'unicase/u8-ct-totitle'.
19405         * lib/unicase/u8-ct-totitle.c: New file.
19406         * lib/unicase/u-ct-totitle.h: New file, derived from
19407         lib/unicase/u-totitle.h.
19408         * modules/unicase/u8-ct-totitle: New file.
19409
19410         New module 'unicase/u32-ct-tolower'.
19411         * lib/unicase/u32-ct-tolower.c: New file.
19412         * modules/unicase/u32-ct-tolower: New file.
19413
19414         New module 'unicase/u16-ct-tolower'.
19415         * lib/unicase/u16-ct-tolower.c: New file.
19416         * modules/unicase/u16-ct-tolower: New file.
19417
19418         New module 'unicase/u8-ct-tolower'.
19419         * lib/unicase/u8-ct-tolower.c: New file.
19420         * modules/unicase/u8-ct-tolower: New file.
19421
19422         New module 'unicase/u32-ct-toupper'.
19423         * lib/unicase/u32-ct-toupper.c: New file.
19424         * modules/unicase/u32-ct-toupper: New file.
19425
19426         New module 'unicase/u16-ct-toupper'.
19427         * lib/unicase/u16-ct-toupper.c: New file.
19428         * modules/unicase/u16-ct-toupper: New file.
19429
19430         New module 'unicase/u8-ct-toupper'.
19431         * lib/unicase/u8-ct-toupper.c: New file.
19432         * modules/unicase/u8-ct-toupper: New file.
19433
19434         Add context arguments to u*_casemap functions.
19435         * lib/unicase/unicasemap.h: Include unicase.h.
19436         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19437         suffix_context arguments.
19438         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19439         functions.
19440         (FUNC): Add prefix_context and suffix_context arguments. Use
19441         uc_is_cased and uc_is_case_ignorable.
19442         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19443         * lib/unicase/u16-casemap.c: Likewise.
19444         * lib/unicase/u32-casemap.c: Likewise.
19445         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19446         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19447         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19448         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19449         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19450         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19451
19452         New module 'unicase/u32-suffix-context'.
19453         * lib/unicase/u32-suffix-context.c: New file.
19454         * modules/unicase/u32-suffix-context: New file.
19455
19456         New module 'unicase/u16-suffix-context'.
19457         * lib/unicase/u16-suffix-context.c: New file.
19458         * modules/unicase/u16-suffix-context: New file.
19459
19460         New module 'unicase/u8-suffix-context'.
19461         * lib/unicase/u8-suffix-context.c: New file.
19462         * lib/unicase/u-suffix-context.h: New file.
19463         * modules/unicase/u8-suffix-context: New file.
19464
19465         New module 'unicase/empty-suffix-context'.
19466         * lib/unicase/empty-suffix-context.c: New file.
19467         * modules/unicase/empty-suffix-context: New file.
19468
19469         New module 'unicase/u32-prefix-context'.
19470         * lib/unicase/u32-prefix-context.c: New file.
19471         * modules/unicase/u32-prefix-context: New file.
19472
19473         New module 'unicase/u16-prefix-context'.
19474         * lib/unicase/u16-prefix-context.c: New file.
19475         * modules/unicase/u16-prefix-context: New file.
19476
19477         New module 'unicase/u8-prefix-context'.
19478         * lib/unicase/u8-prefix-context.c: New file.
19479         * lib/unicase/u-prefix-context.h: New file.
19480         * lib/unicase/context.h: New file.
19481         * modules/unicase/u8-prefix-context: New file.
19482
19483         New module 'unicase/empty-prefix-context'.
19484         * lib/unicase/empty-prefix-context.c: New file.
19485         * modules/unicase/empty-prefix-context: New file.
19486
19487         New module 'unicase/ignorable'.
19488         * lib/unicase/ignorable.c: New file.
19489         * modules/unicase/ignorable: New file.
19490
19491         New module 'unicase/cased'.
19492         * lib/unicase/caseprop.h: New file.
19493         * lib/unicase/cased.c: New file.
19494         * modules/unicase/cased: New file.
19495
19496         New functions for case mapping of substrings.
19497         * lib/unicase.h (casing_prefix_context_t): New type.
19498         (unicase_empty_prefix_context): New variable.
19499         (u8_casing_prefix_context, u16_casing_prefix_context,
19500         u32_casing_prefix_context, u8_casing_prefixes_context,
19501         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19502         declarations.
19503         (casing_suffix_context_t): New type.
19504         (unicase_empty_suffix_context): New variable.
19505         (u8_casing_suffix_context, u16_casing_suffix_context,
19506         u32_casing_suffix_context, u8_casing_suffixes_context,
19507         u16_casing_suffixes_context, u32_casing_suffixes_context,
19508         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19509         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19510         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19511         declarations.
19512
19513 2009-06-28  Jim Meyering  <meyering@redhat.com>
19514
19515         boostrap: indent only with spaces
19516         * build-aux/bootstrap: Indent only with spaces, never TABs.
19517
19518         bootstrap: split long lines
19519         * build-aux/bootstrap: Keep line length < 80.
19520
19521         bootstrap: sync from coreutils
19522         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19523         just as autoreconf does.  Verify a list of prerequisite
19524         package-name,version-number pairs if defined in bootstrap.conf.
19525         Refer to README-prereq, if prerequisites are not satisfied.
19526
19527 2009-06-27  Eric Blake  <ebb9@byu.net>
19528
19529         tests: add test for bogus NULL definition
19530         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19531         * tests/test-stdlib.c: Likewise.
19532         * tests/test-string.c: Likewise.
19533         * tests/test-locale.c: Likewise.
19534         * tests/test-unistd.c: Likewise.
19535         * modules/stdio-tests (Depends-on): Add verify.
19536         * modules/stdlib-tests (Depends-on): Likewise.
19537         * modules/string-tests (Depends-on): Likewise.
19538         * modules/locale-tests (Depends-on): Likewise.
19539         * modules/unistd-tests (Depends-on): Likewise.
19540
19541 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19542
19543         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19544         self-explaining comment.
19545         * m4/selinux-selinux-h: Update serial.
19546         (gl_LIBSELINUX): New macro, adding a warning for missing development
19547         packages to code extracted from...
19548         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19549         Add warning for missing development packages here, too.
19550
19551 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19552
19553         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19554
19555 2009-06-25  Eric Blake  <ebb9@byu.net>
19556
19557         version-etc: fix regression
19558         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19559         gcc.
19560         (version_etc): Use it, to catch bugs with trailing NULL.
19561         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19562         (version_etc_va): Fix logic bug.
19563         * modules/version-etc-tests: Add test.
19564         * tests/test-version-etc.c: New file.
19565         * tests/test-version-etc.sh: Likewise.
19566
19567 2009-06-25  Sam Steingold  <sds@gnu.org>
19568
19569         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19570         mbtowc declaration.
19571
19572 2009-06-25  Eric Blake  <ebb9@byu.net>
19573
19574         fpurge: migrate into <stdio.h>
19575         * lib/fpurge.h: Delete...
19576         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19577         * lib/fpurge.c (fpurge): Change declaring header.
19578         * modules/fpurge (Files): Drop deleted file.
19579         (Depends-on): Add stdio.
19580         (configure.ac): Set witness.
19581         * modules/stdio (Makefile.am): Support fpurge macros.
19582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19584         * lib/fflush.c: Update client.
19585         * tests/test-fpurge.c: Likewise.
19586         * NEWS: Mention the change.
19587
19588 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19589
19590         * lib/argp-version-etc.c (program_authors): Add const
19591         qualifier.
19592         * lib/version-etc.c: Fix typos in the comments.
19593         * modules/argp-version-etc: Depends on version-etc.
19594
19595 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19596
19597         argp-version-etc: new module.
19598
19599         * lib/argp-version-etc.c: New file.
19600         * lib/argp-version-etc.h: New file.
19601         * modules/argp-version-etc: New file.
19602         * modules/argp-version-etc-tests: New file.
19603         * tests/test-argp-version-etc.c: New test.
19604         * tests/test-argp-version-etc-1.sh: New test.
19605
19606 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19607
19608         Provide additional interfaces and documentation for version-etc
19609         module.
19610
19611         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19612         interfaces.
19613         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19614         prototypes.
19615
19616 2009-06-24  Bruno Haible  <bruno@clisp.org>
19617
19618         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19619         HAVE_LIB${NAME} macro.
19620         Reported by Sam Steingold <sds@gnu.org>.
19621
19622 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19623
19624         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19625         needed.
19626
19627 2009-06-21  Bruno Haible  <bruno@clisp.org>
19628
19629         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19630         work.
19631         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19632         together with LIB${NAME}, LTLIB${NAME}.
19633         Reported by Sam Steingold <sds@gnu.org>.
19634
19635 2009-06-20  Jim Meyering  <meyering@redhat.com>
19636
19637         tests: make sc_require_test_exit_idiom more generic
19638         * top/maint.mk (Exit_witness_file): New overridable variable.
19639         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19640         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19641
19642 2009-06-19  Jim Meyering  <meyering@redhat.com>
19643
19644         hash: reverse order of src/dst parameters in an internal interface
19645         * lib/hash.c (transfer_entries): Reverse order of parameters to
19646         put DST before SRC.  Adjust callers.
19647
19648         tests: test-hash: avoid wholesale duplication
19649         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19650         Instead, use a loop and add a single conditional.
19651
19652         tests: test-hash: allow seed selection via a command line argument
19653         * tests/test-hash.c (get_seed): New function.
19654         (main): Use it.
19655
19656 2009-06-19  Eric Blake  <ebb9@byu.net>
19657
19658         hash: avoid memory leak on allocation failure
19659         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19660         failure.  Factor repeated algorithm...
19661         (transfer_entries): ...into new helper routine.
19662         (hash_delete): React to hash_rehash return value.
19663
19664         hash: reduce memory pressure in hash_rehash no-op case
19665         * lib/hash.c (next_prime): Avoid overflow.
19666         (hash_initialize): Factor bucket size computation...
19667         (compute_bucket_size): ...into new helper function.
19668         (hash_rehash): Use new function and open coding to reduce memory
19669         pressure, and avoid a memory leak in USE_OBSTACK code.
19670         Reported by Jim Meyering.
19671
19672 2009-06-18  Eric Blake  <ebb9@byu.net>
19673
19674         hash: make rotation more obvious
19675         * modules/hash (Depends-on): Add bitrotate and stdint.
19676         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19677         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19678         (SIZE_MAX): Rely on headers for definition.
19679         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19680         (raw_hasher): Use rotr_sz.
19681         Suggested by Jim Meyering.
19682
19683         hash: fix memory leak in last patch
19684         * lib/hash.c (hash_rehash): Avoid memory leak.
19685
19686         hash: avoid no-op rehashing
19687         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19688
19689         hash: provide default callback functions
19690         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19691         (hash_initialize): Use them as defaults.
19692         * tests/test-hash.c (main): Test this.
19693
19694         hash: minor optimization
19695         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19696         when possible.
19697         (hash_initialize): Document this promise.
19698         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19699         * tests/test-hash.c (hash_compare_strings): Test this.
19700
19701 2009-06-18  Bruno Haible  <bruno@clisp.org>
19702
19703         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19704         going to be replaced anyway.
19705
19706 2009-06-18  Bruno Haible  <bruno@clisp.org>
19707
19708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19709         in one place.
19710         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19711         be replaced anyway.
19712
19713 2009-06-18  Eric Blake  <ebb9@byu.net>
19714
19715         hash: check for resize before insertion
19716         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19717         threshold before insertion, so that a pathological hash_rehash
19718         that fills every bucket can still trigger another rehash.
19719
19720 2009-06-18  Jim Meyering  <meyering@redhat.com>
19721
19722         hash-tests: add a loop around the small tests
19723         * tests/test-hash.c (main): Repeat small tests with selected
19724         small initial table sizes.
19725
19726 2009-06-17  Eric Blake  <ebb9@byu.net>
19727
19728         hash: minor cleanups
19729         * lib/hash.h (hash_entry): Make opaque, by moving...
19730         * lib/hash.c (hash_entry): ...here.
19731         (hash_insert): Clarify restrictions on what can be inserted.
19732         (hash_get_next): Clarify when it is safe to remove an element
19733         during traversal.
19734         (check_tuning): Skip verification when tuning is known safe.
19735         (hash_initialize): Clarify restrictions on tuning.
19736
19737 2009-06-17  Jim Meyering  <jim@meyering.net>
19738         and Eric Blake  <ebb9@byu.net>
19739
19740         hash-tests: new module
19741         * modules/hash-tests: New file.
19742         * tests/test-hash.c: New file.
19743
19744 2009-06-17  Eric Blake  <ebb9@byu.net>
19745
19746         strstr-simple: document new module
19747         * MODULES.html.sh: Document new module.
19748
19749         strstr, strcasestr: replace on platforms with broken memchr
19750         * modules/strstr: Split into...
19751         * modules/strstr-simple: ...new module that does not care about
19752         performance, but does care about glibc bug.
19753         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19754         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19755         if platform memchr is broken, per Debian bug 521737.
19756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19757         memchr.
19758         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19759         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19760         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19761         * modules/mountlist (Depends-on): Add strstr-simple.
19762         * modules/gen-uni-tables (Depends-on): Likewise.
19763         * modules/argz (Depends-on): Add strstr.
19764
19765 2009-06-17  Bruno Haible  <bruno@clisp.org>
19766
19767         * modules/posix_spawn-internal (Depends-on): Add errno.
19768
19769 2009-06-17  Bruno Haible  <bruno@clisp.org>
19770
19771         Define missing ESTALE on Interix 3.5.
19772         * lib/errno.in.h (ESTALE): Assign a value if missing.
19773         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19774         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19775         missing.
19776         * doc/posix-headers/errno.texi: Mention the Interix bug.
19777         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19778
19779 2009-06-15  Eric Blake  <ebb9@byu.net>
19780
19781         memchr, memchr2: add valgrind exception
19782         * lib/memchr.valgrind: New file.
19783         * lib/memchr2.valgrind: New file.
19784         * modules/memchr (Files): Distribute valgrind file.
19785         * modules/memchr2 (Files): Likewise.
19786
19787         docs: memchr is no longer obsolete
19788         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19789         * lib/string.in.h (memchr): Simplify logic.
19790
19791 2009-06-14  Jim Meyering  <meyering@redhat.com>
19792
19793         link-follow: fix the "checking..." message to not mention trailing slash
19794         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19795         never considered trailing slashes.
19796
19797 2009-06-14  Bruno Haible  <bruno@clisp.org>
19798
19799         * m4/memchr.m4: Mention also the bug on IA-64.
19800         * doc/posix-functions/memchr.texi: Likewise.
19801
19802 2009-06-12  Eric Blake  <ebb9@byu.net>
19803
19804         memchr: detect broken x86_64 and alpha implementations
19805         * modules/memchr-tests (Depends-on): Move mmap detection...
19806         * modules/memchr (Depends-on): ...here.
19807         (configure.ac): Set indicator.
19808         * lib/string.in.h (memchr): Declare replacement.
19809         * modules/string (Makefile.am): Trigger replacement.
19810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19811         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19812         bugs.
19813         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19814         * modules/getpagesize (License): Relax license.
19815
19816 2009-06-11  Bruno Haible  <bruno@clisp.org>
19817
19818         * lib/idpriv.h: Add more references.
19819
19820 2009-06-08  Bruno Haible  <bruno@clisp.org>
19821
19822         Tests for module 'idpriv-droptemp'.
19823         * modules/idpriv-droptemp-tests: New file.
19824         * tests/test-idpriv-droptemp.sh: New file.
19825         * tests/test-idpriv-droptemp.su.sh: New file.
19826         * tests/test-idpriv-droptemp.c: New file.
19827
19828         New module 'idpriv-droptemp'.
19829         * lib/idpriv-droptemp.c: New file.
19830         * modules/idpriv-droptemp: New file.
19831
19832 2009-06-08  Bruno Haible  <bruno@clisp.org>
19833
19834         Tests for module 'idpriv-drop'.
19835         * modules/idpriv-drop-tests: New file.
19836         * tests/test-idpriv-drop.sh: New file.
19837         * tests/test-idpriv-drop.su.sh: New file.
19838         * tests/test-idpriv-drop.c: New file.
19839
19840         New module 'idpriv-drop'.
19841         * lib/idpriv.h: New file.
19842         * lib-idpriv-drop.c: New file.
19843         * m4/idpriv.m4: New file.
19844         * modules/idpriv-drop: New file.
19845
19846 2009-06-08  Bruno Haible  <bruno@clisp.org>
19847
19848         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19849         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19850         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19851         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19852         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19853         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19855
19856 2009-06-08  Eric Blake  <ebb9@byu.net>
19857
19858         test-strstr: use memory fence, when possible
19859         * tests/test-strstr.c (main): Use memory fence, in order to be
19860         more likely to trigger Debian bug 521737.
19861         * modules/strstr-tests (Files): Pull in additional files.
19862
19863         memchr: no longer obsolete, for wider field testing
19864         * modules/memchr (Status, Notice): Delete, this module is no
19865         longer obsolete.
19866         * modules/vasnprintf (Depends-on): Add memchr.
19867
19868 2009-06-07  Jim Meyering  <meyering@redhat.com>
19869
19870         hash: declare some functions with the warn_unused_result attribute
19871         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19872
19873 2009-06-07  Bruno Haible  <bruno@clisp.org>
19874
19875         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19876         Reported by Eric Blake.
19877
19878 2009-06-06  Eric Blake  <ebb9@byu.net>
19879
19880         test-alignof: fix typo with long double
19881         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19882         compiler error.
19883
19884 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19885
19886         Escape non-texinfo { and }s.
19887         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19888         markup error.
19889
19890 2009-06-04  Jim Meyering  <meyering@redhat.com>
19891
19892         gitlog-to-changelog: don't infloop on an empty commit log
19893         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19894         Reported by Boris Petersen <transacid@centerim.org>.
19895
19896 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19897
19898         version-etc: extend for packagers
19899         Add three new configure options, intended for packagers:
19900           --with-packager="packager name"
19901           --with-packager-version="packager-specific version"
19902           --with-packager-bug-reports="packager bug reporting"
19903         An example with coreutils:
19904           $ ./configure \
19905             --with-packager=Gentoo \
19906             --with-packager-bug-report=http://bugs.gentoo.org/ \
19907             --with-packager-version="patchset 1.6"
19908           $ ./src/ls --version | head -n2
19909           ls (GNU coreutils) 7.1-dirty
19910           Packaged by Gentoo (patchset 1.6)
19911         Note that the bug reporting info via --help doesn't show up because
19912         coreutils uses its own custom emit_bug_reporting_address() implementation
19913         in src/system.h.  If it didn't, it'd look like:
19914           $ ./src/ls --help | tail -n4
19915           Report bugs to <bug-coreutils@gnu.org>.
19916           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19917           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19918           General help using GNU software: <http://www.gnu.org/gethelp/>.
19919         * lib/version-etc.c: Print new information, if provided.
19920         * m4/version-etc.m4: New file.
19921         * modules/version-etc (Files): Add m4/version-etc.m4.
19922         (configure.ac): Add gl_VERSION_ETC.
19923
19924 2009-05-31  Bruno Haible  <bruno@clisp.org>
19925
19926         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19927         and 'int64_t'.
19928         * modules/alignof-tests (Dependencies): Add stdint.
19929         Reported by Eric Blake.
19930
19931 2009-05-31  Bruno Haible  <bruno@clisp.org>
19932
19933         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19934         restriction due to compiler bugs.
19935         Reported by Eric Blake.
19936
19937 2009-05-31  Simon Josefsson  <simon@josefsson.org>
19938             Bruno Haible  <bruno@clisp.org>
19939
19940         Fix test-alignof failure.
19941         * lib/alignof.h (alignof_slot): New macro.
19942         (alignof_type): New macro, with the same semantics as the previous
19943         'alignof'.
19944         (alignof): Alias to alignof_slot.
19945         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
19946         check that the results are usable as constant expressions.
19947
19948 2009-05-31  Bruno Haible  <bruno@clisp.org>
19949
19950         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
19951         * tests/test-memchr.c (main): Check that memchr does not read past the
19952         first occurrence of the byte.
19953         * tests/test-strstr.c (main): Update comment.
19954         Suggested by Eric Blake.
19955
19956 2009-05-30  Bruno Haible  <bruno@clisp.org>
19957
19958         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
19959         detail how to use dumpbin.
19960         Reported by David Byron <dbyron@dbyron.com>.
19961
19962 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19963
19964         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
19965
19966 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19967
19968         * m4/manywarnings.m4: Add GCC 4.4 warnings.
19969
19970 2009-05-28  Bruno Haible  <bruno@clisp.org>
19971
19972         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
19973         build-aux/ files.
19974
19975 2009-05-28  Simon Josefsson  <simon@josefsson.org>
19976
19977         * gnulib-tool (func_import): Transform license on build-aux/ files too.
19978
19979 2009-05-27  Simon Josefsson  <simon@josefsson.org>
19980
19981         * gnulib-tool (sed_transform_main_lib_file)
19982         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
19983         regexps.
19984
19985 2009-05-26  Simon Josefsson  <simon@josefsson.org>
19986
19987         * tests/test-strstr.c: Add another self-test.
19988         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
19989         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
19990
19991 2009-05-23  Bruno Haible  <bruno@clisp.org>
19992
19993         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
19994         change.
19995
19996 2009-05-21  Bruno Haible  <bruno@clisp.org>
19997
19998         Simplify use of mode_t varargs.
19999         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20000         uses 'mode_t' or 'int'.
20001         * lib/openat.c (openat): Likewise.
20002         * lib/open-safer.c (open_safer): Likewise.
20003         * m4/mode_t.m4: New file.
20004         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20005         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20006         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20007         * modules/open (Files): Add m4/mode_t.m4.
20008         * modules/openat (Files): Likewise.
20009         * modules/fcntl-safer (Files): Likewise.
20010         Suggested by Eric Blake.
20011
20012 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20013
20014         * doc/glibc-functions/fallocate.texi: New file.
20015         * doc/gnulib.texi: Include it.
20016
20017 2009-05-21  Eric Blake  <ebb9@byu.net>
20018             Bruno Haible  <bruno@clisp.org>
20019
20020         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20021         invocations.
20022         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20023
20024 2009-05-21  Eric Blake  <ebb9@byu.net>
20025             Bruno Haible  <bruno@clisp.org>
20026
20027         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20028         include_next. Fix of 2008-11-20 commit.
20029         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20030         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20031         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20032         NEXT_MATH_H.
20033         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20034         instead of NEXT_MATH_H.
20035
20036 2009-05-21  Bruno Haible  <bruno@clisp.org>
20037
20038         Avoid redefinition warnings for SIZE_MAX.
20039         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20040         Reported by Simon Josefsson.
20041
20042 2009-05-21  Bruno Haible  <bruno@clisp.org>
20043
20044         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20045         AC_CACHE_VAL.
20046
20047 2009-05-20  Bruno Haible  <bruno@clisp.org>
20048
20049         Make zeroptr.h work on mingw.
20050         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20051         mprotect.
20052         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20053         * modules/memchr2-tests (configure.ac): Likewise.
20054         * modules/memcmp-tests (configure.ac): Likewise.
20055         * modules/memmem-tests (configure.ac): Likewise.
20056         * modules/memrchr-tests (configure.ac): Likewise.
20057         Reported by Simon Josefsson.
20058
20059 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20060
20061         * tests/test-glob.c: Include string.h for strcmp prototype.
20062
20063 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20064
20065         * modules/getdelim (Depends-on): Add explicit stdint, although it
20066         was implicitly already pulled in via realloc-posix.
20067         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20068
20069 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20070
20071         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20072         G. Christensen" <tgc@jupiterrise.com>.
20073         * m4/sys_socket_h.m4: Check for sa_family_t.
20074         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20075         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20076         * tests/test-sys_socket.c: Check that sa_family_t works.
20077
20078 2009-05-18  Eric Blake  <ebb9@byu.net>
20079
20080         maint.mk: allow gnulib_dir in VPATH build
20081         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20082
20083 2009-05-15  Jim Meyering  <meyering@redhat.com>
20084
20085         maint.mk: Give gnulib_dir a default definition.
20086         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20087         Thus, most packages no longer need to specify this variable in cfg.mk
20088
20089 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20090
20091         rename.m4: fix typos that would make non-mingw cross-configure fail
20092         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20093
20094 2009-05-13  Eric Blake  <ebb9@byu.net>
20095
20096         mmap-anon: avoid out-of-order autoconf expansion
20097         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20098         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20099         * modules/memchr-tests (Depends-on): Add extensions.
20100         * modules/memchr2-tests (Depends-on): Add extensions.
20101         * modules/memcmp-tests (Depends-on): Add extensions.
20102         * modules/memmem-tests (Depends-on): Add extensions.
20103         * modules/memrchr-tests (Depends-on): Add extensions.
20104
20105 2009-05-13  Bruno Haible  <bruno@clisp.org>
20106
20107         Make some tests ISO C 99 compliant.
20108         * tests/zerosize-ptr.h: New file.
20109         * tests/test-memchr.c: Include zerosize-ptr.h.
20110         (main): Use a zero-size object pointer instead of NULL.
20111         * tests/test-memchr2.c: Include zerosize-ptr.h.
20112         (main): Use a zero-size object pointer instead of NULL.
20113         * tests/test-memcmp.c: Include zerosize-ptr.h.
20114         (main): Use a zero-size object pointer instead of NULL.
20115         * tests/test-memmem.c: Include zerosize-ptr.h.
20116         (main): Use a zero-size object pointer instead of NULL.
20117         * tests/test-memrchr.c: Include zerosize-ptr.h.
20118         (main): Use a zero-size object pointer instead of NULL.
20119         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20120         m4/mmap-anon.m4.
20121         (Depends-on): Add getpagesize.
20122         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20123         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20124         m4/mmap-anon.m4.
20125         (Depends-on): Add getpagesize.
20126         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20127         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20128         m4/mmap-anon.m4.
20129         (Depends-on): Add getpagesize.
20130         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20131         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20132         m4/mmap-anon.m4.
20133         (Depends-on): Add getpagesize.
20134         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20135         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20136         m4/mmap-anon.m4.
20137         (Depends-on): Add getpagesize.
20138         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20139
20140 2009-05-12  Bruno Haible  <bruno@clisp.org>
20141
20142         Tests for module 'alignof'.
20143         * modules/alignof-tests: New file.
20144         * tests/test-alignof.c: New file.
20145
20146 2009-05-12  Bruno Haible  <bruno@clisp.org>
20147
20148         Fix alignof macro.
20149         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20150         vendor compilers that are always correct.
20151
20152 2009-05-12  Bruno Haible  <bruno@clisp.org>
20153
20154         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20155         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20156         not whether its fully works.
20157
20158 2009-05-12  Bruno Haible  <bruno@clisp.org>
20159
20160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20161
20162 2009-05-12  Jim Meyering  <meyering@redhat.com>
20163
20164         * top/maint.mk: Adjust backslash alignment.
20165
20166 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20167
20168         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20169
20170 2009-05-11  Eric Blake  <ebb9@byu.net>
20171
20172         argp: avoid undefined behavior
20173         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20174         macros.
20175
20176 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20177
20178         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20179         user.name to prevent git commit from complaining.
20180
20181 2009-05-10  Bruno Haible  <bruno@clisp.org>
20182
20183         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20184         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20185         it rewrites every file name only once.
20186         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20187
20188 2009-05-08  Bruno Haible  <bruno@clisp.org>
20189
20190         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20191         instead of 'max'.
20192
20193 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20194
20195         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20196         sockaddr_storage test.
20197
20198 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20199
20200         * modules/sys_socket (Makefile.am): Substitute
20201         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20202         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20203         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20204         * tests/test-sys_socket.c: Check sockaddr_storage.
20205
20206 2009-05-08  Bruno Haible  <bruno@clisp.org>
20207
20208         New module 'alignof'.
20209         * lib/alignof.h: New file.
20210         * modules/alignof: New file.
20211
20212 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20213             Bruno Haible  <bruno@clisp.org>
20214
20215         Fix test-file-has-acl on FreeBSD.
20216         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20217         mask is implicitly added.
20218         * tests/test-file-has-acl.c: Include <signal.h>.
20219         (main): Terminate the test after 5 seconds.
20220         * modules/acl-tests (configure.ac): Check for alarm function.
20221
20222 2009-05-04  Bruno Haible  <bruno@clisp.org>
20223
20224         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20226         * modules/errno (configure.ac): Drop AC_REQUIRE.
20227         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20228         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20229
20230 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20231
20232         * modules/glob-tests: New module.
20233         * tests/test-glob.c: Add.
20234
20235 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20236
20237         * modules/fnmatch-tests: New module.
20238         * tests/test-fnmatch.c: Add.
20239
20240 2009-05-04  Eric Blake  <ebb9@byu.net>
20241
20242         maint: make the new no-submodule-changes rule VPATH-safe
20243         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20244
20245 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20246             Bruno Haible  <bruno@clisp.org>
20247
20248         acl: Fix infinite loop on FreeBSD.
20249         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20250         of return value from acl_get_entry.
20251         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20252         Likewise.
20253
20254 2009-05-03  Bruno Haible  <bruno@clisp.org>
20255
20256         * lib/acl-internal.h (acl_entries): Clarify return value.
20257         * lib/acl_entries.c (acl_entries): Likewise.
20258
20259 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20260
20261         Bug fix in acl module.
20262         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20263
20264 2009-05-03  Bruno Haible  <bruno@clisp.org>
20265
20266         Create gperf-generated file in the source dir, not in the build dir.
20267         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20268         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20269         * modules/unicase/locale-language (unicase/locale-languages.h):
20270         Likewise.
20271         * modules/unicase/special-casing (unicase/special-casing-table.h):
20272         Likewise.
20273         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20274         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20275         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20276         Reported by Ralf Wildenhues.
20277
20278 2009-05-03  Bruno Haible  <bruno@clisp.org>
20279
20280         * modules/fnmatch (Description, configure.ac): Taken from
20281         fnmatch-posix.
20282         * modules/fnmatch-posix: Turn into a symbolic reference to the
20283         'fnmatch' module, and deprecate.
20284         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20285
20286 2009-05-03  Bruno Haible  <bruno@clisp.org>
20287
20288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20289         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20290         Reported by Ralf Wildenhues.
20291
20292 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20293
20294         * m4/fnmatch.m4: Fix fnmatch re-define.
20295
20296 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20297
20298         priv-set: new module and tests; adapt write-any-file
20299         * lib/priv-set.c: New file.
20300         * lib/priv-set.h: New file.
20301         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20302         * lib/write-any-file.c: Simplify by using priv-set module.
20303         * m4/priv-set.m4: New file.
20304         * modules/priv-set: New file.
20305         * modules/unlinkdir: Add dependency on priv-set module.
20306         * modules/write-any-file: Likewise.
20307
20308         Tests for module 'priv-set'.
20309         * modules/priv-set-tests: New file.
20310         * tests/test-priv-set.c: New file.
20311
20312 2009-05-03  Jim Meyering  <meyering@redhat.com>
20313             Bruno Haible  <bruno@clisp.org>
20314
20315         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20316         use the converted UTF-8 variant of the name instead.
20317
20318 2009-05-03  Jim Meyering  <meyering@redhat.com>
20319
20320         tests: tighten some getdate tests
20321         * tests/test-getdate.c (main): Tighten tests: require equality,
20322         not just greater than.  Set TZ envvar to UTC0.
20323
20324 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20325
20326         getdate: correctly interpret "next monday" when run on a Monday
20327         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20328         that e.g., "next tues" (when run on a tuesday) results in a date
20329         that is one week in the future, and not today's date.
20330         I.e., add a week when the wday is the same as the current one.
20331         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20332         and earlier by Martin Bernreuther and Jan Minář.
20333         * tests/test-getdate.c (main): Check that "next DAY" is always in
20334         the future and that "last DAY" is always in the past.
20335
20336 2009-05-02  Jim Meyering  <meyering@redhat.com>
20337
20338         build: ensure that a release build fails when a submodule is unclean
20339         * top/maint.mk (no-submodule-changes): New rule.
20340         (alpha beta major): Depend on it.
20341
20342 2009-05-02  Bruno Haible  <bruno@clisp.org>
20343
20344         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20345         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20346         shell variable gl_fnmatch_required to detect which variant is
20347         requested.
20348         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20349         gl_FUNC_FNMATCH_POSIX.
20350         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20351         exclude fnmatch-posix.
20352
20353 2009-05-02  Bruno Haible  <bruno@clisp.org>
20354
20355         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20356         * modules/mbsrtowcs (License): Change to LGPLv2+.
20357         * modules/strnlen1 (License): Likewise.
20358         Reported by Simon Josefsson.
20359
20360 2009-05-02  Bruno Haible  <bruno@clisp.org>
20361
20362         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20363         "cross".
20364         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20365         gnulib-tool was called with option --source-base=lib.
20366
20367 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20368
20369         Use automake *-local hooks without commands, for extensibility.
20370         * modules/localcharset (Makefile.am): Rename install-exec-local
20371         rule to install-exec-localcharset, and make it a prerequisite of
20372         install-exec-local.  Likewise, rename the uninstall-local rule to
20373         uninstall-localcharset, and make it a prerequisite of the former.
20374
20375 2009-05-01  Bruno Haible  <bruno@clisp.org>
20376
20377         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20378         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20379         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20381         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20382         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20383         m4/locale-zh.m4, m4/codeset.m4.
20384
20385         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20386         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20387         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20388         m4/locale-zh.m4.
20389
20390         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20391         REPLACE_WCRTOMB if mbstate_t must be replaced.
20392         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20393         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20394
20395 2009-05-01  Bruno Haible  <bruno@clisp.org>
20396
20397         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20398         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20399         dngettext, dcngettext, textdomain, bindtextdomain,
20400         bind_textdomain_codeset): Undefine before redefining.
20401
20402 2009-04-30  Bruno Haible  <bruno@clisp.org>
20403
20404         Fix bug introduced on 2009-04-25.
20405         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20406         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20407         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20408         is defined.
20409         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20410         is defined.
20411         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20412         is defined.
20413         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20414
20415 2009-04-28  Bruno Haible  <bruno@clisp.org>
20416
20417         Comment tweaks.
20418         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20419         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20420         * lib/unicase.h (u*_casexfrm): Likewise.
20421         Reported by Paolo Bonzini.
20422
20423 2009-04-28  Bruno Haible  <bruno@clisp.org>
20424
20425         Fix a compilation error.
20426         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20427         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20428         Reported by Jim Meyering.
20429
20430 2009-04-27  Bruno Haible  <bruno@clisp.org>
20431
20432         New module 'libunistring'.
20433         * modules/libunistring: New file.
20434         * m4/libunistring.m4: New file.
20435         * MODULES.html.sh (Unicode string functions): Add it.
20436
20437 2009-04-27  Eric Blake  <ebb9@byu.net>
20438
20439         maint.mk: allow package-specific header to provide <config.h>
20440         * top/maint.mk (sc_require_config_h): New variable.
20441         (sc_require_config_h, sc_require_config_h_first): Use it.
20442
20443 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20444
20445         * top/maint.mk (sc_avoid_if_before_free): Except
20446         useless-if-before-free script.
20447
20448 2009-04-27  Eric Blake  <ebb9@byu.net>
20449
20450         maintainer-makefile: depend on all required helper scripts
20451         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20452         useless-if-before-free.
20453         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20454         version, rather than assuming gnulib checkout is available.
20455         Reported by Simen Josefsson.
20456
20457 2009-04-26  Bruno Haible  <bruno@clisp.org>
20458
20459         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20460         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20461         "../" or "..".
20462
20463 2009-04-26  Bruno Haible  <bruno@clisp.org>
20464
20465         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20466         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20467         AC_LIB_HAVE_LINKFLAGS.
20468
20469 2009-04-26  Bruno Haible  <bruno@clisp.org>
20470
20471         Simplify calling convention of u*_conv_from_encoding.
20472         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20473         u32_conv_from_encoding): Expect a resultbuf argument and return the
20474         result directly as a pointer.
20475         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20476         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20477         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20478         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20479         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20480         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20481         Update.
20482         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20483         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20484         * lib/vasnprintf.c (VASNPRINTF): Update.
20485         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20486         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20487         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20488         * NEWS: Mention the change.
20489
20490 2009-04-26  Bruno Haible  <bruno@clisp.org>
20491
20492         Simplify calling convention of u*_conv_to_encoding.
20493         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20494         u32_conv_to_encoding): Expect a resultbuf argument and return the
20495         result directly as a pointer.
20496         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20497         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20498         freeing scaled_offsets if mem_iconveha failed.
20499         * lib/unicase/u-casexfrm.h (FUNC): Update.
20500         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20501         * lib/vasnprintf.c (VASNPRINTF): Update.
20502         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20503         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20504         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20505         * NEWS: Mention the change.
20506
20507 2009-04-26  Bruno Haible  <bruno@clisp.org>
20508
20509         Avoid test failures on AIX and OSF/1.
20510         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20511         malloc(0).
20512         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20513         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20514         Likewise.
20515         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20516         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20517         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20518         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20519         * doc/posix-functions/malloc.texi: Document the portability problem
20520         related to malloc(0).
20521
20522 2009-04-26  Bruno Haible  <bruno@clisp.org>
20523
20524         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20525         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20526         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20527
20528 2009-04-25  Bruno Haible  <bruno@clisp.org>
20529
20530         Avoid link error when creating a namespace clean library.
20531         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20532         as macro with arguments if already defined as an alias.
20533         * lib/signbitf.c (gl_signbitf): Don't undefine.
20534         * lib/signbitd.c (gl_signbitd): Don't undefine.
20535         * lib/signbitl.c (gl_signbitl): Don't undefine.
20536
20537 2009-04-25  Jim Meyering  <meyering@redhat.com>
20538
20539         vc-list-files: fix another quoting bug
20540         * build-aux/vc-list-files: Avoid sed backslash expansion
20541         of pathological directory names.
20542
20543 2009-04-25  Eric Blake  <ebb9@byu.net>
20544
20545         vc-list-files: fix shell quoting error
20546         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20547         timestamp.
20548
20549 2009-04-25  Jim Meyering  <meyering@redhat.com>
20550
20551         vc-list-files: restore lost functionality with subdir argument
20552         * build-aux/vc-list-files: When given a non-"." sub-directory
20553         argument, substitute the $dir/ prefix back onto each resulting name.
20554         Otherwise, coreutils' root_tests check would fail.
20555
20556 2009-04-24  Eric Blake  <ebb9@byu.net>
20557
20558         vc-list-files: ignore git symlinks
20559         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20560         than ls-files, to ignore git symlinks.
20561
20562         maint.mk: import improvements from m4
20563         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20564         (move_if_change): Delete unused macro.
20565         (news-date-check, vc-diff-check): Support VPATH builds.
20566         (announcement): Likewise.  Split --bootstrap-tools list...
20567         (boostrap-tools): ...into separate list, which can be overridden
20568         in cfg.mk.
20569         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20570         requiring dependency on useless-if-before-free module.
20571         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20572         Support VPATH builds.
20573
20574 2009-04-24  Jim Meyering  <meyering@redhat.com>
20575
20576         maint.mk: remove coreutils-specific rules and variables
20577         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20578         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20579         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20580
20581         maint.mk: remove obsolete rule
20582         * top/maint.mk (rel-check): Remove rule.
20583         (WGET, WGETFLAGS): Remove now-unused variables.
20584
20585 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20586
20587         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20588         consistency.
20589
20590         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20591         '$(PATH_SEPARATOR)' instead of ':'.
20592
20593 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20594
20595         * lib/getopt1.c (main): Use 'const' for static array.
20596
20597 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20598
20599         * top/maint.mk: Sync with coreutils.
20600         * NEWS: Explain incompatibilities.
20601
20602 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20603             Bruno Haible  <bruno@clisp.org>
20604
20605         Fix cross-compilation results.
20606         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20607         statement, as third argument of AC_TRY_RUN.
20608         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20609         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20610         Likewise.
20611         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20612         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20613         Likewise.
20614         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20615         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20616         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20617
20618 2009-04-20  Bruno Haible  <bruno@clisp.org>
20619
20620         Avoid test failure on mingw.
20621         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20622
20623 2009-04-20  Bruno Haible  <bruno@clisp.org>
20624
20625         Avoid compilation error on mingw.
20626         * modules/localename-tests (Depends-on): Add locale.
20627
20628 2009-04-19  Bruno Haible  <bruno@clisp.org>
20629
20630         Support for building a shared library on Windows platforms.
20631         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20632         (main): Test the presence of UNINORM_NFC here.
20633         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20634         (main): Test the presence of UNINORM_NFD here.
20635         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20636         (main): Test the presence of UNINORM_NFKC here.
20637         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20638         (main): Test the presence of UNINORM_NFKD here.
20639
20640 2009-04-19  Bruno Haible  <bruno@clisp.org>
20641
20642         Avoid a compiler warning.
20643         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20644         Change type of variable 'sequence'.
20645
20646 2009-04-19  Bruno Haible  <bruno@clisp.org>
20647
20648         * modules/configmake (Makefile.am): When the contents of configmake.h
20649         does not change, arrange to preserve its modification time.
20650
20651 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20652
20653         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20654         gettext domain.
20655
20656 2009-04-16  Jim Meyering  <meyering@redhat.com>
20657
20658         useless-if-before-free: improve conversion code
20659         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20660         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20661
20662 2009-04-14  Bruno Haible  <bruno@clisp.org>
20663
20664         * modules/fcntl (Depends-on): Add extensions.
20665         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20666
20667 2009-04-12  Ben Pfaff  <blp@gnu.org>
20668
20669         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20670         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20671
20672 2009-03-20  Ben Pfaff  <blp@gnu.org>
20673
20674         Make rename replace existing destinations on Windows.
20675         * m4/rename.m4: Add test for Mingw.
20676         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20677         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20678         * doc/posix-functions/rename.texi: Document.
20679
20680 2009-04-10  Bruno Haible  <bruno@clisp.org>
20681
20682         New include file "iconveh.h".
20683         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20684         * lib/striconveh.h: Include it.
20685         (enum iconv_ilseq_handler): Remove definition.
20686         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20687         striconveh.h.
20688         * lib/striconveha.c: Include striconveh.h.
20689         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20690         * modules/striconveh (Files): Add lib/iconveh.h.
20691         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20692         lib/striconveh.h.
20693
20694 2009-04-10  Bruno Haible  <bruno@clisp.org>
20695
20696         * lib/uniconv.h: Update comment.
20697
20698 2009-04-10  Bruno Haible  <bruno@clisp.org>
20699
20700         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20701         always.
20702         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20703         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20704         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20705         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20706         "unistring-notinline.h", so that the function gets defined always.
20707         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20708         * lib/unistr/u8-uctomb.c: Likewise.
20709         * lib/unistr/u16-mbtouc.c: Likewise.
20710         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20711         * lib/unistr/u16-uctomb.c: Likewise.
20712         * lib/unistr/u32-mbtouc.c: Likewise.
20713         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20714         * lib/unistr/u32-uctomb.c: Likewise.
20715
20716 2009-04-10  Bruno Haible  <bruno@clisp.org>
20717
20718         Mark 'utime' obsolete.
20719         * modules/utime (Status, Notice): New sections.
20720         Suggested by Jim Meyering.
20721
20722         Fix cross-compile guess for utime test.
20723         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20724         autoconf.
20725         * doc/posix-functions/utime.texi: Give more precisions.
20726         Reported by Jan <ipif@ymail.com>.
20727
20728 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20729
20730         filevercmp: correct today's change
20731         * lib/filevercmp.c: Also handle coreutils' test inputs.
20732         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20733
20734         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20735         for reporting it.
20736         * lib/filevercmp.c: Special handle for "", "." and "..".
20737         * tests/test-filevercmp.c: Enlarge the set suite.
20738
20739 2009-04-07  Jim Meyering  <meyering@redhat.com>
20740
20741         useless-if-before-free: show how to remove braced useless free, too
20742         * build-aux/useless-if-before-free: still only in a comment, though.
20743
20744 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20745
20746         maint.mk: import changes to syntax-check macros from coreutils
20747         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20748         Use them in the relevant macros.
20749
20750 2009-04-06  Bruno Haible  <bruno@clisp.org>
20751
20752         Fix unportable use of bit-fields.
20753         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20754         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20755         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20756
20757 2009-04-06  Bruno Haible  <bruno@clisp.org>
20758
20759         Avoid test failures on AIX and OSF/1.
20760         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20761         that malloc(0) = NULL.
20762         * tests/unicase/test-u8-tolower.c (check): Likewise.
20763         * tests/unicase/test-u8-totitle.c (check): Likewise.
20764         * tests/unicase/test-u8-toupper.c (check): Likewise.
20765         * tests/unicase/test-u16-casefold.c (check): Likewise.
20766         * tests/unicase/test-u16-tolower.c (check): Likewise.
20767         * tests/unicase/test-u16-totitle.c (check): Likewise.
20768         * tests/unicase/test-u16-toupper.c (check): Likewise.
20769         * tests/unicase/test-u32-casefold.c (check): Likewise.
20770         * tests/unicase/test-u32-tolower.c (check): Likewise.
20771         * tests/unicase/test-u32-totitle.c (check): Likewise.
20772         * tests/unicase/test-u32-toupper.c (check): Likewise.
20773         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20774         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20775         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20776         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20777         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20778         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20779         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20780         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20781         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20782         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20783         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20784         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20785
20786 2009-04-05  Bruno Haible  <bruno@clisp.org>
20787
20788         Work around an autoconf limitation.
20789         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20790         comment line if it would be longer than 3 KB.
20791
20792 2009-04-05  Bruno Haible  <bruno@clisp.org>
20793
20794         Avoid test failure with libiconv-1.13.
20795         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20796         of the expected test results.
20797
20798 2009-04-05  Bruno Haible  <bruno@clisp.org>
20799
20800         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20801         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20802         that it should be installed.
20803
20804 2009-04-05  Bruno Haible  <bruno@clisp.org>
20805
20806         * gnulib-tool: New option --copy-file.
20807         (func_usage): Document it.
20808         (func_dest_tmpfilename): Moved out of func_import.
20809         (func_add_file, func_update_file): New functions, extracted from
20810         func_import.
20811         (func_import): Update.
20812
20813 2009-04-05  Karl Berry  <karl@gnu.org>
20814
20815         * README: prominently mention gnulib-tool.
20816         Rearrange sections so getting the code is near the top.
20817
20818 2009-04-05  Bruno Haible  <bruno@clisp.org>
20819
20820         * lib/unicase.h: Mention u*_cmp2.
20821         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20822         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20823         * lib/unicase/ulc-casecmp.c: Likewise.
20824         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20825         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20826         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20827         unistr/u8-cmp.
20828         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20829         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20830         unistr/u16-cmp.
20831         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20832         unistr/u32-cmp.
20833
20834         * lib/uninorm.h: Mention u*_cmp2.
20835         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20836         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20837         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20838         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20839         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20840         unistr/u8-cmp.
20841         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20842         unistr/u16-cmp.
20843         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20844         unistr/u32-cmp.
20845
20846         New module 'unistr/u32-cmp2'.
20847         * lib/unistr/u32-cmp2.c: New file.
20848         * modules/unistr/u32-cmp2: New file.
20849
20850         New module 'unistr/u16-cmp2'.
20851         * lib/unistr/u16-cmp2.c: New file.
20852         * modules/unistr/u16-cmp2: New file.
20853
20854         New module 'unistr/u8-cmp2'.
20855         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20856         * lib/unistr/u8-cmp2.c: New file.
20857         * lib/unistr/u-cmp2.h: New file.
20858         * modules/unistr/u8-cmp2: New file.
20859
20860 2009-04-05  Bruno Haible  <bruno@clisp.org>
20861
20862         * lib/unictype.h (uc_property_is_valid): New macro.
20863         * tests/unictype/test-pr_byname.c (main): Use it.
20864
20865         * lib/unistr.h: Doc fixes.
20866         * lib/uniconv.h: Doc fixes.
20867         * lib/unictype.h: Doc fixes.
20868
20869 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         Port coreutils 7.2 to Solaris 8.
20872
20873         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20874         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20875         for Solaris 8.  This is a bit of a hack, as it means it's the
20876         caller's responsibility to add -lnsl if needed, but most likely it
20877         won't be needed since only getaddrinfo uses this and getaddrinfo
20878         isn't needed on Solaris 8.
20879
20880         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20881         problem to Solaris 8 encountered with coreutils 7.2, which
20882         resulted in a message "fnmatch.c:292: warning: passing argument 4
20883         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20884         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20885
20886 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20887
20888         * m4/ld-version-script.m4: Add FIXME comment.
20889
20890 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20891
20892         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20893         SOVERSION variable.
20894
20895 2009-04-02  Bruno Haible  <bruno@clisp.org>
20896
20897         * Makefile (info, html, dvi, pdf): Combine the rules.
20898         Suggested by Jim Meyering.
20899
20900 2009-04-01  Bruno Haible  <bruno@clisp.org>
20901
20902         * Makefile (info, html, dvi, pdf): New targets.
20903         Reported by Reuben Thomas <rrt@sc3d.org>.
20904
20905 2009-04-01  Bruno Haible  <bruno@clisp.org>
20906
20907         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20908         can be put into PATH.
20909         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20910
20911 2009-04-01  Bruno Haible  <bruno@clisp.org>
20912
20913         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20914
20915 2009-04-01  Bruno Haible  <bruno@clisp.org>
20916
20917         Rename module 'visibility'.
20918         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20919         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20920         * doc/gnulib.texi: Update.
20921         * MODULES.html.sh (Misc): Update.
20922         * NEWS: Mention the change.
20923
20924 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20925
20926         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20927         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20928         Eric Blake <ebb9@byu.net> for review.
20929         * MODULES.html.sh: Add lib-msvc-compat.
20930         * doc/gnulib.texi: Link to new section.
20931         * m4/ld-output-def.m4: New file.
20932         * doc/ld-output-def.texi: New file.
20933
20934 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20935
20936         Rename ld-version-script to lib-symbol-versions.  Suggested by
20937         Bruno Haible <bruno@clisp.org>.
20938         * modules/ld-version-script: Renamed to lib-symbol-versions.
20939         * doc/ld-version-script.texi: Fix module name.
20940         * MODULES.html.sh: Add lib-symbol-versions.
20941
20942 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20943
20944         * modules/u64-tests: New file.
20945         * tests/test-u64.c: New file.
20946
20947 2009-03-04  Simon Josefsson  <simon@josefsson.org>
20948
20949         * MODULES.html.sh: Mention u64.
20950         * modules/u64: New module.
20951         * modules/crypto/sha512: Depend on u64 module instead of providing
20952         u64.h.
20953
20954 2009-03-27  Eric Blake  <ebb9@byu.net>
20955
20956         test-strerror: make debugging EAI_SYSTEM easier
20957         * modules/getaddrinfo-tests (Depends-on): Add strerror.
20958         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
20959         failure was EAI_SYSTEM.
20960
20961 2009-03-25  Bruno Haible  <bruno@clisp.org>
20962
20963         Fix a problem with --enable-relocatable on Solaris 7.
20964         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
20965         since 2008-02-24.
20966
20967 2009-03-25  Eric Blake  <ebb9@byu.net>
20968
20969         test-sockets: avoid gcc warning
20970         * tests/test-sockets.c (main): Silence compiler warning.
20971
20972 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20973
20974         New modules nproc, pthread, contributed by Glen Lenker.
20975
20976         * MODULES.html.sh: Add pthread, nproc.
20977         * lib/nproc.c: New file.
20978         * lib/nproc.h: New file.
20979         * lib/pthread.in.h: New file.
20980         * m4/pthread.m4: New file.
20981         * modules/nproc: New file.
20982         * modules/pthread: New file.
20983
20984 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20985
20986         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
20987         New variable.
20988
20989 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
20990
20991         filevercmp: handle simple~ and numbered.~3~ backup suffixes
20992         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
20993         * tests/test-filevercmp.c: Add tests for backup suffixes.
20994
20995 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20996
20997         * modules/stdlib (Depends-on): Add stdint, needed when defining
20998         struct random_data on, for example, HP-UX 10.20.  Reported by
20999         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21000
21001 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21002
21003         * lib/readline.c (readline): Call fflush on stdout after printing
21004         prompt.
21005
21006 2009-03-20  Bruno Haible  <bruno@clisp.org>
21007
21008         Remove dependency from 'close' module to -lws2_32 on native Windows.
21009         * lib/close-hook.h: New file.
21010         * lib/close-hook.c: New file.
21011         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21012         w32sock.h.
21013         (_gl_close_fd_maybe_socket): Remove function.
21014         (rpl_close): Invoke execute_all_close_hooks instead of
21015         _gl_close_fd_maybe_socket.
21016         * lib/sockets.c: Include close-hook.h, w32sock.h.
21017         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21018         (close_sockets_hook): New variable.
21019         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21020         (gl_sockets_cleanup): Unregister it.
21021         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21022         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21023         * modules/close-hook: New file.
21024         * modules/close (Files): Remove lib/w32sock.h.
21025         (Depends-on): Add close-hook.
21026         (Link): Remove section.
21027         * modules/sockets (Files): Add lib/w32sock.h.
21028         (Depends-on): Add close-hook.
21029         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21030         invocation.
21031         * NEWS: Mention that LIB_CLOSE is gone.
21032
21033 2009-03-23  Eric Blake  <ebb9@byu.net>
21034
21035         signal-tests: test previous patch
21036         * tests/test-signal.c: New file.
21037         * modules/signal-tests: Likewise.
21038
21039         signal.h: always support 'volatile sig_atomic_t'
21040         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21041         (gl_SIGNAL_H_DEFAULTS): Add a default.
21042         * modules/signal (Makefile.am): Substitute if needed.
21043         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21044         users can blindly add volatile.
21045         * doc/posix-headers/signal.texi (signal.h): Document it.
21046         Reported by Matthew Woehlke.
21047
21048 2009-03-23  Jim Meyering  <meyering@redhat.com>
21049
21050         pathmax: PATH_MAX: use pathconf only when available
21051         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21052         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21053         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21054         This avoids a link failure in a PSP cross-compilation environment
21055         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21056
21057         * lib/vasnprintf.c (divide): Fix typo in comment.
21058
21059 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21060
21061         * gnulib-tool (func_filter_filelist): Fix comment.
21062
21063 2009-03-20  Bruno Haible  <bruno@clisp.org>
21064
21065         Make sockets.h self-contained.
21066         * lib/sockets.c: Include sockets.h first.
21067         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21068
21069 2009-03-19  Eric Blake  <ebb9@byu.net>
21070
21071         doc: mention more functions added in cygwin 1.7.0
21072         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21073         addition.
21074         * doc/posix-functions/log2f.texi: Likewise.
21075
21076 2009-03-19  Jim Meyering  <meyering@redhat.com>
21077
21078         fsusage: avoid syntax error due to statement-before-declaration
21079         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21080         after all declarations.  Reported by Matthew Woehlke in
21081         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21082
21083 2009-03-18  Eric Blake  <ebb9@byu.net>
21084
21085         build-aux/compile: sync from automake
21086         * build-aux/compile: New file, from automake.
21087         * config/srclist.txt: Mention build-aux/compile.
21088
21089 2009-03-17  Bruno Haible  <bruno@clisp.org>
21090
21091         * lib/git-merge-changelog.c: Fix typo in comment.
21092         Reported by Reuben Thomas <rrt@sc3d.org>.
21093
21094 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21095
21096         * m4/regex.m4: update and improve help for
21097         --without-included-regex.
21098
21099 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21100
21101         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21102         failure on missing include files.
21103
21104 2009-03-17  Eric Blake  <ebb9@byu.net>
21105
21106         doc: mention more functions added in cygwin 1.7.0
21107         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21108         addition.
21109         * doc/posix-functions/fwscanf.texi: Likewise.
21110         * doc/posix-functions/swprintf.texi: Likewise.
21111         * doc/posix-functions/swscanf.texi: Likewise.
21112         * doc/posix-functions/vfwprintf.texi: Likewise.
21113         * doc/posix-functions/vfwscanf.texi: Likewise.
21114         * doc/posix-functions/vswprintf.texi: Likewise.
21115         * doc/posix-functions/vswscanf.texi: Likewise.
21116         * doc/posix-functions/vwprintf.texi: Likewise.
21117         * doc/posix-functions/vwscanf.texi: Likewise.
21118         * doc/posix-functions/wcscasecmp.texi: Likewise.
21119         * doc/posix-functions/wcsdup.texi: Likewise.
21120         * doc/posix-functions/wcsftime.texi: Likewise.
21121         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21122         * doc/posix-functions/wprintf.texi: Likewise.
21123         * doc/posix-functions/wscanf.texi: Likewise.
21124         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21125
21126 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21127
21128         maint.mk: really add $(AM_MAKEFLAGS)
21129         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21130         was inadvertently omitted in the last commit.
21131         Spotted by Bruno Haible.
21132
21133         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21134         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21135         $(AM_MAKEFLAGS)' rather than plain `make'.
21136
21137         gnulib-tool: execute $MAKE not make
21138         * gnulib-tool: Default $MAKE to 'make'.
21139         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21140         than make.  Initialize $MAKE in the do-autobuild script.
21141
21142         gnulib-tool: use $MAKE not make in generated files
21143         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21144         make, in generated files.  Initialize $MAKE in the do-autobuild
21145         script.
21146
21147         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21148
21149         GNUmakefile: disable parallelism only for multiple, recursive targets
21150         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21151         additions in the Makefile.
21152         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21153         by Automake.
21154         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21155         are listed on the command line and at least one of them is
21156         listed in $(ALL_RECURSIVE_TARGETS).
21157
21158 2009-03-14  Bruno Haible  <bruno@clisp.org>
21159
21160         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21161         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21162         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21163         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21164         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21165         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21166         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21167         unistr/u8-uctomb.
21168         * modules/unistr/u8-strchr (Depends-on): Likewise.
21169         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21170         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21171         unistr/u16-uctomb.
21172         * modules/unistr/u16-strchr (Depends-on): Likewise.
21173         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21174
21175 2009-03-12  Bruno Haible  <bruno@clisp.org>
21176
21177         Work around select() bug on Interix 3.5.
21178         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21179         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21180         * m4/select.m4: New file.
21181         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21182         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21183         * modules/select (Files): Add m4/select.m4.
21184         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21185         * modules/nanosleep (Depends-on): Add select.
21186         * modules/poll (Depends-on): Likewise.
21187         * doc/posix-functions/select.texi: Mention the Interix bug.
21188         Reported by Markus Duft <mduft@gentoo.org>.
21189
21190         * lib/select.c: Renamed from lib/winsock-select.c.
21191         * modules/select (Files): Add lib/select.c, remove
21192         lib/winsock-select.c.
21193         (configure.ac): Update.
21194
21195 2009-03-12  Jim Meyering  <meyering@redhat.com>
21196
21197         avoid gcc warnings about unused macro definitions
21198         * lib/readtokens.c (STREQ): Remove unused definition.
21199         * lib/xmalloc.c (SIZE_MAX): Likewise.
21200         * lib/openat-die.c (N_): Likewise.
21201         * lib/mountlist.c (SIZE_MAX): Remove definition.
21202         Instead, include <stdint.h>.
21203         * lib/readutmp.c: Likewise.
21204         * modules/readutmp (Depends-on): Add stdint.
21205         * modules/mountlist (Depends-on): Add stdint.
21206         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21207
21208 2009-03-10  Bruno Haible  <bruno@clisp.org>
21209
21210         Tests for module 'mbmemcasecoll'.
21211         * modules/mbmemcasecoll-tests: New file.
21212         * tests/test-mbmemcasecoll1.sh: New file.
21213         * tests/test-mbmemcasecoll2.sh: New file.
21214         * tests/test-mbmemcasecoll3.sh: New file.
21215         * tests/test-mbmemcasecoll.c: New file.
21216
21217         New module 'mbmemcasecoll'.
21218         * lib/mbmemcasecoll.h: New file.
21219         * lib/mbmemcasecoll.c: New file.
21220         * modules/mbmemcasecoll: New file.
21221
21222         * tests/test-mbmemcasecmp.h: New file, extracted from
21223         tests/test-mbmemcasecmp.c.
21224         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21225         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21226         (main): Update.
21227         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21228
21229 2009-03-09  Bruno Haible  <bruno@clisp.org>
21230
21231         Tests for module 'mbmemcasecmp'.
21232         * modules/mbmemcasecmp-tests: New file.
21233         * tests/test-mbmemcasecmp1.sh: New file.
21234         * tests/test-mbmemcasecmp2.sh: New file.
21235         * tests/test-mbmemcasecmp3.sh: New file.
21236         * tests/test-mbmemcasecmp.c: New file.
21237
21238         New module 'mbmemcasecmp'.
21239         * lib/mbmemcasecmp.h: New file.
21240         * lib/mbmemcasecmp.c: New file.
21241         * modules/mbmemcasecmp: New file.
21242
21243 2009-03-09  Bruno Haible  <bruno@clisp.org>
21244
21245         Tests for module 'unicase/ulc-casecoll'.
21246         * modules/unicase/ulc-casecoll-tests: New file.
21247         * tests/unicase/test-ulc-casecoll1.sh: New file.
21248         * tests/unicase/test-ulc-casecoll2.sh: New file.
21249         * tests/unicase/test-ulc-casecoll.c: New file.
21250
21251         New module 'unicase/ulc-casecoll'.
21252         * lib/unicase.h (ulc_casecoll): New declaration.
21253         * lib/unicase/ulc-casecoll.c: New file.
21254         * modules/unicase/ulc-casecoll: New file.
21255
21256         New module 'unicase/ulc-casexfrm'.
21257         * lib/unicase.h (ulc_casexfrm): New declaration.
21258         * lib/unicase/ulc-casexfrm.c: New file.
21259         * modules/unicase/ulc-casexfrm: New file.
21260
21261 2009-03-09  Bruno Haible  <bruno@clisp.org>
21262
21263         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21264         invocations.
21265
21266         * m4/mbscasecmp.m4: Remove file.
21267         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21268         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21269
21270         * m4/mbscasestr.m4: Remove file.
21271         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21272         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21273
21274         * m4/mbschr.m4: Remove file.
21275         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21276         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21277
21278         * m4/mbscspn.m4: Remove file.
21279         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21280         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21281
21282         * m4/mbslen.m4: Remove file.
21283         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21284         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21285
21286         * m4/mbsncasecmp.m4: Remove file.
21287         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21288         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21289
21290         * m4/mbsnlen.m4: Remove file.
21291         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21292         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21293
21294         * m4/mbspbrk.m4: Remove file.
21295         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21296         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21297
21298         * m4/mbspcasecmp.m4: Remove file.
21299         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21300         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21301
21302         * m4/mbsrchr.m4: Remove file.
21303         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21304         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21305
21306         * m4/mbssep.m4: Remove file.
21307         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21308         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21309
21310         * m4/mbsspn.m4: Remove file.
21311         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21312         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21313
21314         * m4/mbsstr.m4: Remove file.
21315         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21316         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21317
21318         * m4/mbstok_r.m4: Remove file.
21319         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21320         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21321
21322         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21323
21324         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21325         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21326
21327         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21328
21329 2009-03-08  Bruno Haible  <bruno@clisp.org>
21330
21331         Tests for module 'unicase/ulc-casecmp'.
21332         * modules/unicase/ulc-casecmp-tests: New file.
21333         * tests/unicase/test-ulc-casecmp1.sh: New file.
21334         * tests/unicase/test-ulc-casecmp2.sh: New file.
21335         * tests/unicase/test-ulc-casecmp.c: New file.
21336
21337         New module 'unicase/ulc-casecmp'.
21338         * lib/unicase.h (ulc_casecmp): New declaration.
21339         * lib/unicase/ulc-casecmp.c: New file.
21340         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21341         'const SRC_UNIT *'.
21342         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21343         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21344         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21345         * modules/unicase/ulc-casecmp: New file.
21346
21347         Tests for module 'unicase/u32-is-cased'.
21348         * modules/unicase/u32-is-cased-tests: New file.
21349         * tests/unicase/test-u32-is-cased.c: New file.
21350
21351         Tests for module 'unicase/u16-is-cased'.
21352         * modules/unicase/u16-is-cased-tests: New file.
21353         * tests/unicase/test-u16-is-cased.c: New file.
21354
21355         Tests for module 'unicase/u8-is-cased'.
21356         * modules/unicase/u8-is-cased-tests: New file.
21357         * tests/unicase/test-u8-is-cased.c: New file.
21358         * tests/unicase/test-is-cased.h: New file.
21359
21360         New module 'unicase/u32-is-cased'.
21361         * lib/unicase/u32-is-cased.c: New file.
21362         * modules/unicase/u32-is-cased: New file.
21363
21364         New module 'unicase/u16-is-cased'.
21365         * lib/unicase/u16-is-cased.c: New file.
21366         * modules/unicase/u16-is-cased: New file.
21367
21368         New module 'unicase/u8-is-cased'.
21369         * lib/unicase/u8-is-cased.c: New file.
21370         * lib/unicase/u-is-cased.h: New file.
21371         * modules/unicase/u8-is-cased: New file.
21372
21373         Tests for module 'unicase/u32-is-casefolded'.
21374         * modules/unicase/u32-is-casefolded-tests: New file.
21375         * tests/unicase/test-u32-is-casefolded.c: New file.
21376
21377         Tests for module 'unicase/u16-is-casefolded'.
21378         * modules/unicase/u16-is-casefolded-tests: New file.
21379         * tests/unicase/test-u16-is-casefolded.c: New file.
21380
21381         Tests for module 'unicase/u8-is-casefolded'.
21382         * modules/unicase/u8-is-casefolded-tests: New file.
21383         * tests/unicase/test-u8-is-casefolded.c: New file.
21384         * tests/unicase/test-is-casefolded.h: New file.
21385
21386         New module 'unicase/u32-is-casefolded'.
21387         * lib/unicase/u32-is-casefolded.c: New file.
21388         * modules/unicase/u32-is-casefolded: New file.
21389
21390         New module 'unicase/u16-is-casefolded'.
21391         * lib/unicase/u16-is-casefolded.c: New file.
21392         * modules/unicase/u16-is-casefolded: New file.
21393
21394         New module 'unicase/u8-is-casefolded'.
21395         * lib/unicase/u8-is-casefolded.c: New file.
21396         * modules/unicase/u8-is-casefolded: New file.
21397
21398         Tests for module 'unicase/u32-is-titlecase'.
21399         * modules/unicase/u32-is-titlecase-tests: New file.
21400         * tests/unicase/test-u32-is-titlecase.c: New file.
21401
21402         Tests for module 'unicase/u16-is-titlecase'.
21403         * modules/unicase/u16-is-titlecase-tests: New file.
21404         * tests/unicase/test-u16-is-titlecase.c: New file.
21405
21406         Tests for module 'unicase/u8-is-titlecase'.
21407         * modules/unicase/u8-is-titlecase-tests: New file.
21408         * tests/unicase/test-u8-is-titlecase.c: New file.
21409         * tests/unicase/test-is-titlecase.h: New file.
21410
21411         New module 'unicase/u32-is-titlecase'.
21412         * lib/unicase/u32-is-titlecase.c: New file.
21413         * modules/unicase/u32-is-titlecase: New file.
21414
21415         New module 'unicase/u16-is-titlecase'.
21416         * lib/unicase/u16-is-titlecase.c: New file.
21417         * modules/unicase/u16-is-titlecase: New file.
21418
21419         New module 'unicase/u8-is-titlecase'.
21420         * lib/unicase/u8-is-titlecase.c: New file.
21421         * modules/unicase/u8-is-titlecase: New file.
21422
21423         Tests for module 'unicase/u32-is-lowercase'.
21424         * modules/unicase/u32-is-lowercase-tests: New file.
21425         * tests/unicase/test-u32-is-lowercase.c: New file.
21426
21427         Tests for module 'unicase/u16-is-lowercase'.
21428         * modules/unicase/u16-is-lowercase-tests: New file.
21429         * tests/unicase/test-u16-is-lowercase.c: New file.
21430
21431         Tests for module 'unicase/u8-is-lowercase'.
21432         * modules/unicase/u8-is-lowercase-tests: New file.
21433         * tests/unicase/test-u8-is-lowercase.c: New file.
21434         * tests/unicase/test-is-lowercase.h: New file.
21435
21436         New module 'unicase/u32-is-lowercase'.
21437         * lib/unicase/u32-is-lowercase.c: New file.
21438         * modules/unicase/u32-is-lowercase: New file.
21439
21440         New module 'unicase/u16-is-lowercase'.
21441         * lib/unicase/u16-is-lowercase.c: New file.
21442         * modules/unicase/u16-is-lowercase: New file.
21443
21444         New module 'unicase/u8-is-lowercase'.
21445         * lib/unicase/u8-is-lowercase.c: New file.
21446         * modules/unicase/u8-is-lowercase: New file.
21447
21448         Tests for module 'unicase/u32-is-uppercase'.
21449         * modules/unicase/u32-is-uppercase-tests: New file.
21450         * tests/unicase/test-u32-is-uppercase.c: New file.
21451
21452         Tests for module 'unicase/u16-is-uppercase'.
21453         * modules/unicase/u16-is-uppercase-tests: New file.
21454         * tests/unicase/test-u16-is-uppercase.c: New file.
21455
21456         Tests for module 'unicase/u8-is-uppercase'.
21457         * modules/unicase/u8-is-uppercase-tests: New file.
21458         * tests/unicase/test-u8-is-uppercase.c: New file.
21459         * tests/unicase/test-is-uppercase.h: New file.
21460
21461         New module 'unicase/u32-is-uppercase'.
21462         * lib/unicase/u32-is-uppercase.c: New file.
21463         * modules/unicase/u32-is-uppercase: New file.
21464
21465         New module 'unicase/u16-is-uppercase'.
21466         * lib/unicase/u16-is-uppercase.c: New file.
21467         * modules/unicase/u16-is-uppercase: New file.
21468
21469         New module 'unicase/u8-is-uppercase'.
21470         * lib/unicase/u8-is-uppercase.c: New file.
21471         * modules/unicase/u8-is-uppercase: New file.
21472
21473         New module 'unicase/u32-is-invariant'.
21474         * lib/unicase/u32-is-invariant.c: New file.
21475         * modules/unicase/u32-is-invariant: New file.
21476
21477         New module 'unicase/u16-is-invariant'.
21478         * lib/unicase/u16-is-invariant.c: New file.
21479         * modules/unicase/u16-is-invariant: New file.
21480
21481         New module 'unicase/u8-is-invariant'.
21482         * lib/unicase/u8-is-invariant.c: New file.
21483         * lib/unicase/invariant.h: New file.
21484         * lib/unicase/u-is-invariant.h: New file.
21485         * modules/unicase/u8-is-invariant: New file.
21486
21487         Tests for module 'unicase/u32-casecoll'.
21488         * modules/unicase/u32-casecoll-tests: New file.
21489         * tests/unicase/test-u32-casecoll.c: New file.
21490
21491         Tests for module 'unicase/u16-casecoll'.
21492         * modules/unicase/u16-casecoll-tests: New file.
21493         * tests/unicase/test-u16-casecoll.c: New file.
21494
21495         Tests for module 'unicase/u8-casecoll'.
21496         * modules/unicase/u8-casecoll-tests: New file.
21497         * tests/unicase/test-u8-casecoll.c: New file.
21498
21499         New module 'unicase/u32-casecoll'.
21500         * lib/unicase/u32-casecoll.c: New file.
21501         * modules/unicase/u32-casecoll: New file.
21502
21503         New module 'unicase/u16-casecoll'.
21504         * lib/unicase/u16-casecoll.c: New file.
21505         * modules/unicase/u16-casecoll: New file.
21506
21507         New module 'unicase/u8-casecoll'.
21508         * lib/unicase/u8-casecoll.c: New file.
21509         * lib/unicase/u-casecoll.h: New file.
21510         * modules/unicase/u8-casecoll: New file.
21511
21512         New module 'unicase/u32-casexfrm'.
21513         * lib/unicase/u32-casexfrm.c: New file.
21514         * modules/unicase/u32-casexfrm: New file.
21515
21516         New module 'unicase/u16-casexfrm'.
21517         * lib/unicase/u16-casexfrm.c: New file.
21518         * modules/unicase/u16-casexfrm: New file.
21519
21520         New module 'unicase/u8-casexfrm'.
21521         * lib/unicase/u8-casexfrm.c: New file.
21522         * lib/unicase/u-casexfrm.h: New file.
21523         * modules/unicase/u8-casexfrm: New file.
21524
21525         Tests for module 'unicase/u32-casecmp'.
21526         * modules/unicase/u32-casecmp-tests: New file.
21527         * tests/unicase/test-u32-casecmp.c: New file.
21528
21529         Tests for module 'unicase/u16-casecmp'.
21530         * modules/unicase/u16-casecmp-tests: New file.
21531         * tests/unicase/test-u16-casecmp.c: New file.
21532
21533         Tests for module 'unicase/u8-casecmp'.
21534         * modules/unicase/u8-casecmp-tests: New file.
21535         * tests/unicase/test-u8-casecmp.c: New file.
21536         * tests/unicase/test-casecmp.h: New file.
21537
21538         New module 'unicase/u32-casecmp'.
21539         * lib/unicase/u32-casecmp.c: New file.
21540         * modules/unicase/u32-casecmp: New file.
21541
21542         New module 'unicase/u16-casecmp'.
21543         * lib/unicase/u16-casecmp.c: New file.
21544         * modules/unicase/u16-casecmp: New file.
21545
21546         New module 'unicase/u8-casecmp'.
21547         * lib/unicase/u8-casecmp.c: New file.
21548         * lib/unicase/u-casecmp.h: New file.
21549         * modules/unicase/u8-casecmp: New file.
21550
21551         Tests for module 'unicase/u32-casefold'.
21552         * modules/unicase/u32-casefold-tests: New file.
21553         * tests/unicase/test-u32-casefold.c: New file.
21554
21555         Tests for module 'unicase/u16-casefold'.
21556         * modules/unicase/u16-casefold-tests: New file.
21557         * tests/unicase/test-u16-casefold.c: New file.
21558
21559         Tests for module 'unicase/u8-casefold'.
21560         * modules/unicase/u8-casefold-tests: New file.
21561         * tests/unicase/test-u8-casefold.c: New file.
21562
21563         New module 'unicase/u32-casefold'.
21564         * lib/unicase/u32-casefold.c: New file.
21565         * modules/unicase/u32-casefold: New file.
21566
21567         New module 'unicase/u16-casefold'.
21568         * lib/unicase/u16-casefold.c: New file.
21569         * modules/unicase/u16-casefold: New file.
21570
21571         New module 'unicase/u8-casefold'.
21572         * lib/unicase/u8-casefold.c: New file.
21573         * lib/unicase/u-casefold.h: New file.
21574         * modules/unicase/u8-casefold: New file.
21575
21576         New module 'unicase/tocasefold'.
21577         * lib/unicase/casefold.h: New file.
21578         * lib/unicase/tocasefold.c: New file.
21579         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21580         * modules/unicase/tocasefold: New file.
21581
21582         Tests for module 'unicase/u32-totitle'.
21583         * modules/unicase/u32-totitle-tests: New file.
21584         * tests/unicase/test-u32-totitle.c: New file.
21585
21586         Tests for module 'unicase/u16-totitle'.
21587         * modules/unicase/u16-totitle-tests: New file.
21588         * tests/unicase/test-u16-totitle.c: New file.
21589
21590         Tests for module 'unicase/u8-totitle'.
21591         * modules/unicase/u8-totitle-tests: New file.
21592         * tests/unicase/test-u8-totitle.c: New file.
21593
21594         New module 'unicase/u32-totitle'.
21595         * lib/unicase/u32-totitle.c: New file.
21596         * modules/unicase/u32-totitle: New file.
21597
21598         New module 'unicase/u16-totitle'.
21599         * lib/unicase/u16-totitle.c: New file.
21600         * modules/unicase/u16-totitle: New file.
21601
21602         New module 'unicase/u8-totitle'.
21603         * lib/unicase/u8-totitle.c: New file.
21604         * lib/unicase/u-totitle.h: New file.
21605         * modules/unicase/u8-totitle: New file.
21606
21607         Tests for module 'unicase/u32-tolower'.
21608         * modules/unicase/u32-tolower-tests: New file.
21609         * tests/unicase/test-u32-tolower.c: New file.
21610
21611         Tests for module 'unicase/u16-tolower'.
21612         * modules/unicase/u16-tolower-tests: New file.
21613         * tests/unicase/test-u16-tolower.c: New file.
21614
21615         Tests for module 'unicase/u8-tolower'.
21616         * modules/unicase/u8-tolower-tests: New file.
21617         * tests/unicase/test-u8-tolower.c: New file.
21618
21619         New module 'unicase/u32-tolower'.
21620         * lib/unicase/u32-tolower.c: New file.
21621         * modules/unicase/u32-tolower: New file.
21622
21623         New module 'unicase/u16-tolower'.
21624         * lib/unicase/u16-tolower.c: New file.
21625         * modules/unicase/u16-tolower: New file.
21626
21627         New module 'unicase/u8-tolower'.
21628         * lib/unicase/u8-tolower.c: New file.
21629         * modules/unicase/u8-tolower: New file.
21630
21631         Tests for module 'unicase/u32-toupper'.
21632         * modules/unicase/u32-toupper-tests: New file.
21633         * tests/unicase/test-u32-toupper.c: New file.
21634
21635         Tests for module 'unicase/u16-toupper'.
21636         * modules/unicase/u16-toupper-tests: New file.
21637         * tests/unicase/test-u16-toupper.c: New file.
21638
21639         Tests for module 'unicase/u8-toupper'.
21640         * modules/unicase/u8-toupper-tests: New file.
21641         * tests/unicase/test-u8-toupper.c: New file.
21642
21643         New module 'unicase/u32-toupper'.
21644         * lib/unicase/u32-toupper.c: New file.
21645         * modules/unicase/u32-toupper: New file.
21646
21647         New module 'unicase/u16-toupper'.
21648         * lib/unicase/u16-toupper.c: New file.
21649         * modules/unicase/u16-toupper: New file.
21650
21651         New module 'unicase/u8-toupper'.
21652         * lib/unicase/u8-toupper.c: New file.
21653         * modules/unicase/u8-toupper: New file.
21654
21655         New module 'unicase/u32-casemap'.
21656         * lib/unicase/u32-casemap.c: New file.
21657         * modules/unicase/u32-casemap: New file.
21658
21659         New module 'unicase/u16-casemap'.
21660         * lib/unicase/u16-casemap.c: New file.
21661         * modules/unicase/u16-casemap: New file.
21662
21663         New module 'unicase/u8-casemap'.
21664         * lib/unicase/unicasemap.h: New file.
21665         * lib/unicase/u8-casemap.c: New file.
21666         * lib/unicase/u-casemap.h: New file.
21667         * modules/unicase/u8-casemap: New file.
21668
21669         New module 'unicase/special-casing'.
21670         * lib/unicase/special-casing.h: New file.
21671         * lib/unicase/special-casing.c: New file.
21672         * lib/unicase/special-casing-table.gperf: New file, generated by
21673         gen-uni-tables.c.
21674         * modules/unicase/special-casing: New file.
21675
21676         Tests for module 'unicase/locale-language'.
21677         * modules/unicase/locale-language-tests: New file.
21678         * tests/unicase/test-locale-language.sh: New file.
21679         * tests/unicase/test-locale-language.c: New file.
21680
21681         New module 'unicase/locale-language'.
21682         * lib/unicase/locale-language.c: New file.
21683         * lib/unicase/locale-languages.gperf: New file.
21684         * modules/unicase/locale-language: New file.
21685
21686         Generate more tables for case conversion and case folding.
21687         * lib/gen-uni-tables.c (SCC_*): New enum items.
21688         (struct special_casing_rule): New type.
21689         (casing_rules, num_casing_rules, allocated_casing_rules): New
21690         variables.
21691         (add_casing_rule, fill_casing_rules): New functions.
21692         (struct casefold_rule): New type.
21693         (casefolding_rules, num_casefolding_rules,
21694         allocated_casefolding_rules): New variables.
21695         (fill_casefolding_rules): New function.
21696         (unicode_casefold): New variable.
21697         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21698         sort_casing_rules, output_casing_rules): New functions.
21699         (main): Accept to more arguments: SpecialCasing.txt and
21700         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21701         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21702         Output mapping for casefolding.
21703
21704         * lib/unicase.h: Include stdbool.h, uninorm.h.
21705         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21706         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21707         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21708         arguments.
21709         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21710         resultp arguments.
21711         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21712         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21713         resultp arguments.
21714         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21715         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21716         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21717         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21718         declarations.
21719         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21720
21721 2009-03-08  Bruno Haible  <bruno@clisp.org>
21722
21723         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21724         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21725         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21726         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21727
21728 2009-03-07  Bruno Haible  <bruno@clisp.org>
21729
21730         Adjust u*_normcmp, u*_normcoll API.
21731         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21732         u16_normcoll, u32_normcoll): Change failure conventions.
21733         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21734         errno and return -1.
21735         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21736
21737 2009-03-07  Bruno Haible  <bruno@clisp.org>
21738
21739         Tests for module 'uninorm/u32-normcoll'.
21740         * modules/uninorm/u32-normcoll-tests: New file.
21741         * tests/uninorm/test-u32-normcoll.c: New file.
21742
21743         Tests for module 'uninorm/u16-normcoll'.
21744         * modules/uninorm/u16-normcoll-tests: New file.
21745         * tests/uninorm/test-u16-normcoll.c: New file.
21746
21747         Tests for module 'uninorm/u8-normcoll'.
21748         * modules/uninorm/u8-normcoll-tests: New file.
21749         * tests/uninorm/test-u8-normcoll.c: New file.
21750
21751 2009-03-07  Bruno Haible  <bruno@clisp.org>
21752
21753         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21754         tests/uninorm/test-u32-normcmp.c.
21755         * tests/uninorm/test-u32-normcmp.c: Include it.
21756         (test_nonascii): New function, extracted from main. Add some more
21757         tests.
21758         (main): Invoke test_ascii and test_nonascii.
21759         * modules/uninorm/u32-normcmp-tests (Files): Add
21760         tests/uninorm/test-u32-normcmp.h.
21761         (Depends-on): Remove uninorm/u32-normcmp.
21762
21763         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21764         tests/uninorm/test-u16-normcmp.c.
21765         * tests/uninorm/test-u16-normcmp.c: Include it.
21766         (test_nonascii): New function, extracted from main. Add some more
21767         tests.
21768         (main): Invoke test_ascii and test_nonascii.
21769         * modules/uninorm/u16-normcmp-tests (Files): Add
21770         tests/uninorm/test-u16-normcmp.h.
21771         (Depends-on): Remove uninorm/u16-normcmp.
21772
21773         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21774         tests/uninorm/test-u8-normcmp.c.
21775         * tests/uninorm/test-u8-normcmp.c: Include it.
21776         (test_nonascii): New function, extracted from main. Add some more
21777         tests.
21778         (main): Invoke test_ascii and test_nonascii.
21779         * modules/uninorm/u8-normcmp-tests (Files): Add
21780         tests/uninorm/test-u8-normcmp.h.
21781         (Depends-on): Remove uninorm/u8-normcmp.
21782
21783 2009-03-07  Bruno Haible  <bruno@clisp.org>
21784
21785         New module 'uninorm/u32-normcoll'.
21786         * lib/uninorm/u32-normcoll.c: New file.
21787         * modules/uninorm/u32-normcoll: New file.
21788
21789         New module 'uninorm/u16-normcoll'.
21790         * lib/uninorm/u16-normcoll.c: New file.
21791         * modules/uninorm/u16-normcoll: New file.
21792
21793         New module 'uninorm/u8-normcoll'.
21794         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21795         declarations.
21796         * lib/uninorm/u8-normcoll.c: New file.
21797         * lib/uninorm/u-normcoll.h: New file.
21798         * modules/uninorm/u8-normcoll: New file.
21799
21800         New module 'uninorm/u32-normxfrm'.
21801         * lib/uninorm/u32-normxfrm.c: New file.
21802         * modules/uninorm/u32-normxfrm: New file.
21803
21804         New module 'uninorm/u16-normxfrm'.
21805         * lib/uninorm/u16-normxfrm.c: New file.
21806         * modules/uninorm/u16-normxfrm: New file.
21807
21808         New module 'uninorm/u8-normxfrm'.
21809         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21810         declarations.
21811         * lib/uninorm/u8-normxfrm.c: New file.
21812         * lib/uninorm/u-normxfrm.h: New file.
21813         * modules/uninorm/u8-normxfrm: New file.
21814
21815 2009-03-07  Bruno Haible  <bruno@clisp.org>
21816
21817         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21818         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21819         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21820
21821 2009-03-07  Bruno Haible  <bruno@clisp.org>
21822
21823         New module 'memxfrm'.
21824         * lib/memxfrm.h: New file.
21825         * lib/memxfrm.c: New file.
21826         * modules/memxfrm: New file.
21827
21828 2009-03-07  Bruno Haible  <bruno@clisp.org>
21829
21830         New module 'memcmp2'.
21831         * lib/memcmp2.h: New file.
21832         * lib/memcmp2.c: New file.
21833         * modules/memcmp2: New file.
21834
21835 2009-03-07  Bruno Haible  <bruno@clisp.org>
21836
21837         Tests for module 'uninorm/decomposing-form'.
21838         * modules/uninorm/decomposing-form-tests: New file.
21839         * tests/uninorm/test-decomposing-form.c: New file.
21840
21841         New module 'uninorm/decomposing-form'.
21842         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21843         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21844         Add 'decomposing_variant' field.
21845         * lib/uninorm/decomposing-form.c: New file.
21846         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21847         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21848         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21849         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21850         * modules/uninorm/decomposing-form: New file.
21851         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21852         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21853
21854 2009-03-07  Bruno Haible  <bruno@clisp.org>
21855
21856         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21857         strings.
21858
21859 2009-03-06  Bruno Haible  <bruno@clisp.org>
21860
21861         Tests for module 'uninorm/u32-normcmp'.
21862         * tests/uninorm/test-u32-normcmp.c: New file.
21863         * modules/uninorm/u32-normcmp-tests: New file.
21864
21865         Tests for module 'uninorm/u16-normcmp'.
21866         * tests/uninorm/test-u16-normcmp.c: New file.
21867         * modules/uninorm/u16-normcmp-tests: New file.
21868
21869         Tests for module 'uninorm/u8-normcmp'.
21870         * tests/uninorm/test-u8-normcmp.c: New file.
21871         * modules/uninorm/u8-normcmp-tests: New file.
21872
21873         New module 'uninorm/u32-normcmp'.
21874         * lib/uninorm/u32-normcmp.c: New file.
21875         * modules/uninorm/u32-normcmp: New file.
21876
21877         New module 'uninorm/u16-normcmp'.
21878         * lib/uninorm/u16-normcmp.c: New file.
21879         * modules/uninorm/u16-normcmp: New file.
21880
21881         New module 'uninorm/u8-normcmp'.
21882         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21883         declarations.
21884         * lib/uninorm/u8-normcmp.c: New file.
21885         * lib/uninorm/u-normcmp.h: New file.
21886         * modules/uninorm/u8-normcmp: New file.
21887
21888 2009-03-06  Bruno Haible  <bruno@clisp.org>
21889
21890         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21891         Reported by Eric Blake.
21892
21893 2009-03-06  Eric Blake  <ebb9@byu.net>
21894             Bruno Haible  <bruno@clisp.org>
21895
21896         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21897         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21898         condition.
21899         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21900         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21901         condition.
21902         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21903
21904 2009-03-06  Eric Blake  <ebb9@byu.net>
21905
21906         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21907         to avoid compiler warnings.
21908         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21909
21910 2009-03-05  Bruno Haible  <bruno@clisp.org>
21911
21912         * tests/test-ftell.c (main): Disable test beyond end of file on
21913         FreeMiNT.
21914         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21915
21916 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21917
21918         * lib/filevercmp.c: Move hidden files up in ordering.
21919         * tests/test-filevercmp.c: Add tests for hidden files.
21920
21921 2009-03-04  Bruno Haible  <bruno@clisp.org>
21922
21923         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21924         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21925         AM_CFLAGS.
21926         Reported by Simon Josefsson.
21927
21928 2009-03-03  Bruno Haible  <bruno@clisp.org>
21929
21930         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21931         Reported by Simon Josefsson.
21932
21933         * doc/ld-version-script.texi: Update node reference.
21934
21935 2009-03-03  Bruno Haible  <bruno@clisp.org>
21936
21937         * modules/visibility (License): Change to 'unlimited'.
21938         Suggested by Simon Josefsson.
21939
21940 2009-03-03  Jim Meyering  <meyering@redhat.com>
21941
21942         unlinkdir: cannot_unlink_dir may modify process state
21943         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
21944         it's neither thread-safe nor appropriate for use in a library.
21945
21946 2009-03-03  Eric Blake  <ebb9@byu.net>
21947
21948         test-closein: silence test under Darwin
21949         * tests/test-closein.sh: Ignore stderr from cat, since we don't
21950         care if it dies from EPIPE or EBADF.
21951
21952 2009-03-03  Bruno Haible  <bruno@clisp.org>
21953
21954         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
21955         earlier.
21956         * doc/visibility.texi: Fix @node and @section.
21957
21958 2009-03-03  Simon Josefsson  <simon@josefsson.org>
21959
21960         * doc/gnulib.texi: Link to sections for ld version script and
21961         visibility.
21962         * doc/visibility.texi: Add @node and @section.
21963         * modules/ld-version-script: New module.
21964         * m4/ld-version-script.m4: New file.
21965         * doc/ld-version-script.texi: New file.
21966
21967 2009-03-02  David Lutterkort  <lutter@redhat.com>
21968
21969         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
21970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21971
21972 2009-03-02  Bruno Haible  <bruno@clisp.org>
21973
21974         * doc/visibility.texi: Mention libtool's -export-symbols option.
21975
21976 2009-03-02  Jim Meyering  <meyering@redhat.com>
21977
21978         announce-gen: new option: --no-print-checksums
21979         * build-aux/announce-gen (usage): Describe it.
21980         (print_checksums): Print a newline here, not in the [*] footnote.
21981         (main): Honor it.
21982
21983 2009-03-01  Bruno Haible  <bruno@clisp.org>
21984
21985         Use socklen_t in the native Windows replacements prototypes.
21986         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
21987         instead of 'int'.
21988         * lib/getsockopt.c (rpl_getsockopt): Likewise.
21989         * lib/setsockopt.c (rpl_setsockopt): Likewise.
21990         * modules/getsockopt (Depends-on): Add socklen.
21991         * modules/setsockopt (Depends-on): Add socklen.
21992
21993 2009-03-01  Bruno Haible  <bruno@clisp.org>
21994
21995         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
21996         least 4.2.
21997
21998 2009-03-01  Eric Blake  <ebb9@byu.net>
21999             Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22002         error messages.
22003         * lib/wait-process.c (wait_subprocess): Omit error message about
22004         deadly signal sent to the child of termsigp != NULL.
22005
22006 2009-03-01  Eric Blake  <ebb9@byu.net>
22007
22008         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22009
22010 2009-03-01  Bruno Haible  <bruno@clisp.org>
22011
22012         Avoid a gcc warning.
22013         * tests/test-sched.c (b): Make global.
22014         Reported by Eric Blake.
22015
22016 2009-01-19  Martin Lambers  <marlam@marlam.de>
22017
22018         Provide POSIX semantics for socket timeout options on W32.
22019         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22020         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22021         * modules/setsockopt: Depend on sys_time module for struct timeval.
22022         * modules/getsockopt: Depend on sys_time module for struct timeval.
22023
22024 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22025
22026         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22027         __USE_GNU, for consistency with netdb.in.h.
22028         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22029
22030 2009-03-01  Bruno Haible  <bruno@clisp.org>
22031
22032         More support for FreeMiNT.
22033         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22034         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22035
22036 2009-03-01  Bruno Haible  <bruno@clisp.org>
22037
22038         More support for FreeMiNT.
22039         * lib/fpurge.c (fpurge): Correct last commit.
22040         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22041
22042 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22043
22044         Fix unportable awk script in vc-list-files.
22045         * build-aux/vc-list-files: In the replacement awk script, use
22046         substr with a second argument of 1, not zero.
22047         Report by Simon Josefsson.
22048
22049 2009-02-28  Bruno Haible  <bruno@clisp.org>
22050
22051         More support for FreeMiNT.
22052         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22053         to FreeMiNT today.
22054         * lib/fwriting.c (fwriting): Likewise.
22055         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22056
22057 2009-02-28  Bruno Haible  <bruno@clisp.org>
22058
22059         * tests/test-freadseek.c (main): Disable test beyond end of file on
22060         FreeMiNT.
22061         * tests/test-ftello.c (main): Likewise.
22062         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22063
22064 2009-02-28  Bruno Haible  <bruno@clisp.org>
22065
22066         Add tentative support for FreeMiNT.
22067         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22068         * lib/fpurge.c (fpurge): Likewise.
22069         * lib/freadable.c (freadable): Likewise.
22070         * lib/freading.c (freading): Likewise.
22071         * lib/freadptr.c (freadptr): Likewise.
22072         * lib/freadseek.c (freadptrinc): Likewise.
22073         * lib/fseeko.c (rpl_fseeko): Likewise.
22074         * lib/fseterr.c (fseterr): Likewise.
22075         * lib/fwritable.c (fwritable): Likewise.
22076         * lib/fwriting.c (fwriting): Likewise.
22077         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22078         Hourihane.
22079         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22080
22081 2009-02-28  Bruno Haible  <bruno@clisp.org>
22082
22083         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22084         SIGCHLD.
22085         Reported by Jim Meyering.
22086
22087 2009-02-28  Bruno Haible  <bruno@clisp.org>
22088
22089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22090         Mention the results of these tests on various platforms.
22091         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22092         order.
22093         * doc/posix-functions/printf.texi: Likewise.
22094         * doc/posix-functions/snprintf.texi: Likewise.
22095         * doc/posix-functions/sprintf.texi: Likewise.
22096         * doc/posix-functions/vfprintf.texi: Likewise.
22097         * doc/posix-functions/vprintf.texi: Likewise.
22098         * doc/posix-functions/vsnprintf.texi: Likewise.
22099         * doc/posix-functions/vsprintf.texi: Likewise.
22100         * doc/glibc-functions/obstack_printf.texi: Likewise.
22101         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22102
22103 2009-02-28  Bruno Haible  <bruno@clisp.org>
22104
22105         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22106         Reported by Loïc Minier <lool@dooz.org>.
22107
22108 2009-02-27  Bruno Haible  <bruno@clisp.org>
22109
22110         * gnulib-tool (func_import): Make the sed expression used to create the
22111         sed script for updating the .gitignore file POSIX compliant.
22112         Reported by Eric Blake.
22113
22114 2009-02-27  Bruno Haible  <bruno@clisp.org>
22115
22116         * gnulib-tool (sed): Don't alias as "sed --posix".
22117         Reported by Eric Blake.
22118
22119 2009-02-27  Bruno Haible  <bruno@clisp.org>
22120
22121         Avoid test link errors.
22122         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22123         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22124         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22125         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22127
22128 2009-02-27  Bruno Haible  <bruno@clisp.org>
22129
22130         Avoid spurious "(cached)" in configure output.
22131         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22132         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22133         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22134         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22135         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22136         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22137         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22138         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22139         Reported by Eric Blake.
22140
22141 2009-02-27  Eric Blake  <ebb9@byu.net>
22142
22143         printf: fix regression in previous patch
22144         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22145
22146 2009-02-27  Bruno Haible  <bruno@clisp.org>
22147
22148         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22149         value.
22150         * lib/stdint.in.h: Likewise.
22151         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22152
22153 2009-02-27  Eric Blake  <ebb9@byu.net>
22154
22155         doc: mention more functions added in cygwin 1.7.0
22156         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22157         addition.
22158         * doc/posix-functions/open_wmemstream.texi: Likewise.
22159         * doc/posix-functions/wcsnlen.texi: Likewise.
22160         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22161         * doc/posix-functions/wcstod.texi: Likewise.
22162         * doc/posix-functions/wcstof.texi: Likewise.
22163         * doc/posix-functions/wcstoimax.texi: Likewise.
22164         * doc/posix-functions/wcstok.texi: Likewise.
22165         * doc/posix-functions/wcstoumax.texi: Likewise.
22166
22167         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22169         * doc/posix-functions/fprintf.texi: Update.
22170         * doc/posix-functions/printf.texi: Update.
22171         * doc/posix-functions/snprintf.texi: Update.
22172         * doc/posix-functions/sprintf.texi: Update.
22173         * doc/posix-functions/vfprintf.texi: Update.
22174         * doc/posix-functions/vprintf.texi: Update.
22175         * doc/posix-functions/vsnprintf.texi: Update.
22176         * doc/posix-functions/vsprintf.texi: Update.
22177         * doc/glibc-functions/obstack_printf.texi: Update.
22178         * doc/glibc-functions/obstack_vprintf.texi: Update.
22179
22180 2009-02-26  Eric Blake  <ebb9@byu.net>
22181
22182         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22183         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22184         compilation bug by using runtime conversion.
22185         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22186         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22187         * modules/ceill-tests (Files): Use nan.h.
22188         * modules/floorl-tests (Files): Likewise.
22189         * modules/frexpl-tests (Files): Likewise.
22190         * modules/isnanl-tests (Files): Likewise.
22191         * modules/ldexpl-tests (Files): Likewise.
22192         * modules/roundl-tests (Files): Likewise.
22193         * modules/truncl-tests (Files): Likewise.
22194         * tests/test-ceill.c (main): Use a working NaN.
22195         * tests/test-floorl.c (main): Likewise.
22196         * tests/test-frexpl.c (main): Likewise.
22197         * tests/test-isnan.c (test_long_double): Likewise.
22198         * tests/test-isnanl.h (main): Likewise.
22199         * tests/test-ldexpl.h (main): Likewise.
22200         * tests/test-roundl.h (main): Likewise.
22201         * tests/test-truncl.h (main): Likewise.
22202         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22203
22204 2009-02-26  Eric Blake  <ebb9@byu.net>
22205             Bruno Haible  <bruno@clisp.org>
22206
22207         Work around a *printf bug with %ls on Solaris.
22208         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22209         precision is specified, sprintf stops converting the wide string
22210         argument when the number of bytes that have been produced by this
22211         conversion equals or exceeds the precision.
22212         * doc/posix-functions/fprintf.texi: Update.
22213         * doc/posix-functions/printf.texi: Update.
22214         * doc/posix-functions/snprintf.texi: Update.
22215         * doc/posix-functions/sprintf.texi: Update.
22216         * doc/posix-functions/vfprintf.texi: Update.
22217         * doc/posix-functions/vprintf.texi: Update.
22218         * doc/posix-functions/vsnprintf.texi: Update.
22219         * doc/posix-functions/vsprintf.texi: Update.
22220         * doc/glibc-functions/obstack_printf.texi: Update.
22221         * doc/glibc-functions/obstack_vprintf.texi: Update.
22222
22223 2009-02-26  Eric Blake  <ebb9@byu.net>
22224
22225         stdlib: favor compiler check of random.h
22226         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22227         to avoid an ObjC random.h installed by Swarm.
22228
22229 2009-02-26  Bruno Haible  <bruno@clisp.org>
22230
22231         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22232         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22233         Reported by Gary V. Vaughan <gary@gnu.org>.
22234
22235 2009-02-26  Bruno Haible  <bruno@clisp.org>
22236
22237         Fix *printf behaviour regarding the %ls directive.
22238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22239         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22240         NEED_PRINTF_DIRECTIVE_LS.
22241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22242         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22244         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22245         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22246         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22247         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22249         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22250         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22251         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22252         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22253         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22256         * doc/posix-functions/fprintf.texi: Update.
22257         * doc/posix-functions/printf.texi: Update.
22258         * doc/posix-functions/snprintf.texi: Update.
22259         * doc/posix-functions/sprintf.texi: Update.
22260         * doc/posix-functions/vfprintf.texi: Update.
22261         * doc/posix-functions/vprintf.texi: Update.
22262         * doc/posix-functions/vsnprintf.texi: Update.
22263         * doc/posix-functions/vsprintf.texi: Update.
22264         * doc/glibc-functions/obstack_printf.texi: Update.
22265         * doc/glibc-functions/obstack_vprintf.texi: Update.
22266         Reported by Eric Blake.
22267
22268 2009-02-25  Bruno Haible  <bruno@clisp.org>
22269
22270         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22271         with known value.
22272         Reported by Gary V. Vaughan <gary@gnu.org>.
22273
22274 2009-02-25  Bruno Haible  <bruno@clisp.org>
22275
22276         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22277         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22278         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22279         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22280         Reported by Gary V. Vaughan <gary@gnu.org>.
22281
22282 2009-02-25  Bruno Haible  <bruno@clisp.org>
22283
22284         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22285         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22286         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22287         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22288         Reported by Gary V. Vaughan <gary@gnu.org>.
22289
22290 2009-02-25  Eric Blake  <ebb9@byu.net>
22291
22292         tests: skip fseek/ftell tests if ungetc is broken
22293         * m4/ungetc.m4: New file.
22294         * modules/fseek-tests: Split test, so ungetc dependency is
22295         separate from rest of test.
22296         * modules/fseeko-tests: Likewise.
22297         * modules/ftell-tests: Likewise.
22298         * modules/ftello-tests: Likewise.
22299         * tests/test-fseek.c (main): Isolate ungetc dependency.
22300         * tests/test-fseeko.c (main): Likewise.
22301         * tests/test-ftell.c (main): Likewise.
22302         * tests/test-ftello.c (main): Likewise.
22303         * tests/test-fseek2.sh: New file.
22304         * tests/test-fseeko2.sh: Likewise.
22305         * tests/test-ftell2.sh: Likewise.
22306         * tests/test-ftello2.sh: Likewise.
22307
22308 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22309
22310         test-getaddrinfo: fix usage of skip return code 77
22311         * tests/test-gettaddrinfo.c: Return skip code 77 only
22312         for first occurance of skip (4x77 is not 77)
22313
22314 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22315
22316         strtod: avoid C99 decl-after-statement
22317         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22318
22319 2009-02-24  Eric Blake  <ebb9@byu.net>
22320
22321         strtod: detect HP-UX 11.31 bug
22322         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22323         Reported by Gary V. Vaughan.
22324
22325 2009-02-23  Bruno Haible  <bruno@clisp.org>
22326
22327         Fix invalid read past end of memory block.
22328         * lib/vasnprintf.c (DCHAR_SET): Define.
22329         (local_wcslen): Define only when needed.
22330         (local_strnlen, local_wcsnlen): New functions.
22331         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22332         directives that involve a conversion ourselves.
22333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22334         wcsnlen, mbrtowc, wcrtomb.
22335         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22336         * tests/test-vasprintf-posix.c (test_function): Likewise.
22337         * tests/test-snprintf-posix.h (test_function): Likewise.
22338         * tests/test-sprintf-posix.h (test_function): Likewise.
22339         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22340
22341 2009-02-22  Bruno Haible  <bruno@clisp.org>
22342
22343         Implement new clarified decomposition of Hangul syllables.
22344         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22345         of type LTV, return only a pairwise decomposition.
22346         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22347         Likewise.
22348         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22349         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22350         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22351
22352 2009-02-22  Bruno Haible  <bruno@clisp.org>
22353
22354         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22355         zero-length results and shrink excess allocated memory.
22356         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22357         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22358         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22359         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22360         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22361         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22362         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22363         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22364         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22365         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22366         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22367         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22368
22369 2009-02-21  Bruno Haible  <bruno@clisp.org>
22370
22371         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22372         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22373         spaces after a period. Put a space between a macro name and its
22374         argument list. Trivial rewordings.
22375         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22376         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22377         (main): Return 0 explicitly.
22378
22379 2009-02-21  Bruno Haible  <bruno@clisp.org>
22380
22381         Tests for module 'uninorm/filter'.
22382         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22383         * modules/uninorm/filter-tests: New file.
22384
22385         New module 'uninorm/filter'.
22386         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22387         uninorm_filter_flush, uninorm_filter_free): New declarations.
22388         * lib/uninorm/uninorm-filter.c: New file.
22389         * modules/uninorm/filter: New file.
22390
22391 2009-02-21  Bruno Haible  <bruno@clisp.org>
22392
22393         Tests for module 'uninorm/nfkc'.
22394         * tests/uninorm/test-nfkc.c: New file.
22395         * tests/uninorm/test-u8-nfkc.c: New file.
22396         * tests/uninorm/test-u16-nfkc.c: New file.
22397         * tests/uninorm/test-u32-nfkc.c: New file.
22398         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22399         * tests/uninorm/test-u32-nfkc-big.c: New file.
22400         * modules/uninorm/nfkc-tests: New file.
22401
22402         New module 'uninorm/nfkc'.
22403         * lib/uninorm/nfkc.c: New file.
22404         * modules/uninorm/nfkc: New file.
22405
22406         Tests for module 'uninorm/nfkd'.
22407         * tests/uninorm/test-nfkd.c: New file.
22408         * tests/uninorm/test-u8-nfkd.c: New file.
22409         * tests/uninorm/test-u16-nfkd.c: New file.
22410         * tests/uninorm/test-u32-nfkd.c: New file.
22411         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22412         * tests/uninorm/test-u32-nfkd-big.c: New file.
22413         * modules/uninorm/nfkd-tests: New file.
22414
22415         New module 'uninorm/nfkd'.
22416         * lib/uninorm/nfkd.c: New file.
22417         * modules/uninorm/nfkd: New file.
22418
22419         Tests for module 'uninorm/nfc'.
22420         * tests/uninorm/test-nfc.c: New file.
22421         * tests/uninorm/test-u8-nfc.c: New file.
22422         * tests/uninorm/test-u16-nfc.c: New file.
22423         * tests/uninorm/test-u32-nfc.c: New file.
22424         * tests/uninorm/test-u32-nfc-big.sh: New file.
22425         * tests/uninorm/test-u32-nfc-big.c: New file.
22426         * modules/uninorm/nfc-tests: New file.
22427
22428         New module 'uninorm/nfc'.
22429         * lib/uninorm/nfc.c: New file.
22430         * modules/uninorm/nfc: New file.
22431
22432         Tests for module 'uninorm/nfd'.
22433         * tests/uninorm/test-nfd.c: New file.
22434         * tests/uninorm/test-u8-nfd.c: New file.
22435         * tests/uninorm/test-u16-nfd.c: New file.
22436         * tests/uninorm/test-u32-nfd.c: New file.
22437         * tests/uninorm/test-u32-nfd-big.sh: New file.
22438         * tests/uninorm/test-u32-nfd-big.c: New file.
22439         * tests/uninorm/test-u32-normalize-big.h: New file.
22440         * tests/uninorm/test-u32-normalize-big.c: New file.
22441         * tests/uninorm/NormalizationTest.txt: New file, created from
22442         Unicode 5.1.0 NormalizationTest.txt.
22443         * modules/uninorm/nfd-tests: New file.
22444
22445         New module 'uninorm/nfd'.
22446         * lib/uninorm/nfd.c: New file.
22447         * modules/uninorm/nfd: New file.
22448
22449         New module 'uninorm/u32-normalize'.
22450         * lib/uninorm/u32-normalize.c: New file.
22451         * modules/uninorm/u32-normalize: New file.
22452
22453         New module 'uninorm/u16-normalize'.
22454         * lib/uninorm/u16-normalize.c: New file.
22455         * modules/uninorm/u16-normalize: New file.
22456
22457         New module 'uninorm/u8-normalize'.
22458         * lib/uninorm/u8-normalize.c: New file.
22459         * lib/uninorm/normalize-internal.h: New file.
22460         * lib/uninorm/u-normalize-internal.h: New file.
22461         * modules/uninorm/u8-normalize: New file.
22462
22463         New module 'uninorm/decompose-internal'.
22464         * lib/uninorm/decompose-internal.c: New file.
22465         * modules/uninorm/decompose-internal: New file.
22466
22467         Tests for module 'uninorm/composition'.
22468         * tests/uninorm/test-composition.c: New file.
22469         * modules/uninorm/composition-tests: New file.
22470
22471         New module 'uninorm/composition'.
22472         * lib/uninorm/composition.c: New file.
22473         * lib/uninorm/composition-table.gperf: New file, generated by
22474         gen-uni-tables.
22475         * modules/uninorm/composition: New file.
22476
22477         Tests for module 'uninorm/compat-decomposition'.
22478         * tests/uninorm/test-compat-decomposition.c: New file.
22479         * modules/uninorm/compat-decomposition-tests: New file.
22480
22481         New module 'uninorm/compat-decomposition'.
22482         * lib/uninorm/decompose-internal.h: New file.
22483         * lib/uninorm/compat-decomposition.c: New file.
22484         * modules/uninorm/compat-decomposition: New file.
22485
22486         Tests for module 'uninorm/canonical-decomposition'.
22487         * tests/uninorm/test-canonical-decomposition.c: New file.
22488         * modules/uninorm/canonical-decomposition-tests: New file.
22489
22490         New module 'uninorm/canonical-decomposition'.
22491         * lib/uninorm/canonical-decomposition.c: New file.
22492         * modules/uninorm/canonical-decomposition: New file.
22493
22494         Tests for module 'uninorm/decomposition'.
22495         * tests/uninorm/test-decomposition.c: New file.
22496         * modules/uninorm/decomposition-tests: New file.
22497
22498         New module 'uninorm/decomposition'.
22499         * lib/uninorm/decomposition.c: New file.
22500         * modules/uninorm/decomposition: New file.
22501
22502         New module 'uninorm/decomposition-table'.
22503         * lib/uninorm/decomposition-table.h: New file.
22504         * lib/uninorm/decomposition-table.c: New file.
22505         * lib/uninorm/decomposition-table1.h: New file, generated by
22506         gen-uni-tables.
22507         * lib/uninorm/decomposition-table2.h: New file, generated by
22508         gen-uni-tables.
22509         * modules/uninorm/decomposition-table: New file.
22510
22511         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22512         (UC_DECOMP_*): New enumeration items.
22513         (get_decomposition): New function.
22514         (struct decomp_table): New type.
22515         (output_decomposition, output_decomposition_tables): New functions.
22516         (unicode_composition_exclusions): New variable.
22517         (fill_composition_exclusions, debug_output_composition_tables): New
22518         functions.
22519         (main): Accept one more argument. Invoke fill_composition_exclusions.
22520         Output decomposition and composition tables.
22521
22522         New module 'uninorm/base'.
22523         * lib/uninorm.h: New file.
22524         * lib/unictype.h: Update comment.
22525         * modules/uninorm/base: New file.
22526
22527 2009-02-21  David Lutterkort  <lutter@redhat.com>
22528
22529         Tests for module 'safe-alloc'.
22530         * tests/test-safe-alloc.c: New file.
22531         * modules/safe-alloc-tests: New file.
22532
22533         New module 'safe-alloc'.
22534         * lib/safe-alloc.h: New file.
22535         * lib/safe-alloc.c: New file.
22536         * m4/safe-alloc.m4: New file.
22537         * modules/safe-alloc: New file.
22538         * doc/safe-alloc.texi: New file.
22539         * doc/gnulib.texi: Include it.
22540         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22541         safe-alloc.
22542
22543 2009-02-18  Bruno Haible  <bruno@clisp.org>
22544
22545         Fix link error on non-glibc systems.
22546         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22547         variable.
22548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22549
22550 2009-02-18  Jim Meyering  <meyering@redhat.com>
22551
22552         fts: avoid used-uninitialized error due to recent change
22553         * lib/fts.c (fts_read): Guard uses of the new member,
22554         parent->fts_n_dirs_remaining, since it's not relevant for
22555         the parent of a directory specified on the command-line.
22556
22557 2009-02-17  James Youngman  <jay@gnu.org>
22558             Bruno Haible  <bruno@clisp.org>
22559
22560         * m4/include_next.m4: Reformulate comment.
22561
22562 2009-02-16  Jim Meyering  <meyering@redhat.com>
22563
22564         fts: add #if guards so that the fts_lgpl module still builds
22565         * lib/fts.c: Guard just-added hash-table-using parts with
22566         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22567         Reported by Simon Josefsson.
22568
22569 2009-02-15  Bruno Haible  <bruno@clisp.org>
22570
22571         * modules/array-mergesort-tests: New file.
22572         * tests/test-array-mergesort.c: New file.
22573
22574         New module 'array-mergesort'.
22575         * modules/array-mergesort: New file.
22576         * lib/array-mergesort.h: New file.
22577
22578 2009-02-15  Bruno Haible  <bruno@clisp.org>
22579
22580         Fix 2009-02-07 commit.
22581         * lib/gen-uni-tables.c (output_predicate, output_category,
22582         output_combclass, output_bidi_category, output_decimal_digit,
22583         output_digit, output_numeric, output_mirror, output_scripts,
22584         output_ident_category, output_simple_mapping): Fix format directives.
22585         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22586
22587 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22588
22589         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22590         fixes are available from IBM.
22591
22592 2009-02-13  Jim Meyering  <meyering@redhat.com>
22593
22594         fts: arrange not to stat non-directories in more cases
22595         This makes GNU find (when it doesn't need to stat each file)
22596         *much* more efficient at traversing reiserfs file systems.
22597         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22598         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22599         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22600         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22601         (leaf_optimization_applies): New function.
22602         (LCO_hash, LCO_compare): New helper functions.
22603         (link_count_optimize_ok): New function.
22604         (fts_stat): Initialize new member (if dir).
22605         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22606         we've just stat'ed a directory.  Skip the stat call when possible.
22607         ---
22608         Note this AFS-related exchange:
22609         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22610         and note find's pioctl call in find/fstype.c.
22611         But that is necessary only if you want to enable the
22612         optimization for AFS, and for now, I don't.
22613
22614         fts: move a function definition "up" (no semantic change)
22615         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22616         "up" to precede upcoming use of a related function.
22617
22618 2009-02-11  Jim Meyering  <meyering@redhat.com>
22619
22620         fts: correct internal computation of nlinks (optimization-related)
22621         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22622         whether the current entry is a directory, so don't test it.
22623
22624 2009-02-10  Bruno Haible  <bruno@clisp.org>
22625
22626         Tests for module 'uniwbrk/ulc-wordbreaks'.
22627         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22628         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22629         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22630
22631         Tests for module 'uniwbrk/u32-wordbreaks'.
22632         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22633         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22634
22635         Tests for module 'uniwbrk/u16-wordbreaks'.
22636         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22637         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22638
22639         Tests for module 'uniwbrk/u8-wordbreaks'.
22640         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22641         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22642
22643 2009-02-10  Bruno Haible  <bruno@clisp.org>
22644
22645         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22646         property.
22647         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22648         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22649         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22650
22651 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22652
22653         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22654         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22655
22656 2009-02-10  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22659         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22660         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22661         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22662         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22663         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22664
22665 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22666
22667         * lib/sockets.h (gl_fd_to_handle): New function.
22668
22669         * tests/test-sockets.c: Call gl_fd_to_handle.
22670
22671 2009-02-09  Bruno Haible  <bruno@clisp.org>
22672
22673         * doc/havelib.texi: Document the conventions on bi-arch systems.
22674
22675 2009-02-08  Bruno Haible  <bruno@clisp.org>
22676
22677         Document the AC_LIB_LINKFLAGS macro.
22678         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22679         * doc/gnulib.texi: Include it.
22680
22681 2009-02-08  Bruno Haible  <bruno@clisp.org>
22682
22683         Fix wrong order of sections, compared to TOC.
22684         * doc/gnulib.texi: Include relocatable-maint.texi after the
22685         "Regular expressions" node, not before.
22686
22687 2009-02-08  Bruno Haible  <bruno@clisp.org>
22688
22689         Tests for module 'unicase/totitle'.
22690         * modules/unicase/totitle-tests: New file.
22691
22692         Tests for module 'unicase/tolower'.
22693         * modules/unicase/tolower-tests: New file.
22694
22695         Tests for module 'unicase/toupper'.
22696         * modules/unicase/toupper-tests: New file.
22697         * tests/unicase/test-mapping-part1.h: New file.
22698         * tests/unicase/test-mapping-part2.h: New file.
22699
22700         New module 'unicase/totitle'.
22701         * modules/unicase/totitle: New file.
22702         * lib/unicase/totitle.c: New file.
22703
22704         New module 'unicase/tolower'.
22705         * modules/unicase/tolower: New file.
22706         * lib/unicase/tolower.c: New file.
22707
22708         New module 'unicase/toupper'.
22709         * modules/unicase/toupper: New file.
22710         * lib/unicase/toupper.c: New file.
22711         * lib/unicase/simple-mapping.h: New file.
22712
22713         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22714         (mapping_table): New structure.
22715         (output_simple_mapping): New function.
22716         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22717         * modules/gen-uni-tables (Description): Update.
22718         * lib/unicase/toupper.h: New file, automatically generated by
22719         gen-uni-tables.
22720         * lib/unicase/tolower.h: New file, automatically generated by
22721         gen-uni-tables.
22722         * lib/unicase/totitle.h: New file, automatically generated by
22723         gen-uni-tables.
22724         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22725         gen-uni-tables.
22726         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22727         gen-uni-tables.
22728         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22729         gen-uni-tables.
22730
22731         New module 'unicase/base'.
22732         * modules/unicase/base: New file.
22733         * lib/unicase.h: New file.
22734
22735 2009-02-08  Bruno Haible  <bruno@clisp.org>
22736
22737         New module 'uniwbrk/ulc-wordbreaks'.
22738         * modules/uniwbrk/ulc-wordbreaks: New file.
22739         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22740
22741         New module 'uniwbrk/u32-wordbreaks'.
22742         * modules/uniwbrk/u32-wordbreaks: New file.
22743         * lib/uniwbrk/u32-wordbreaks.c: New file.
22744
22745         New module 'uniwbrk/u16-wordbreaks'.
22746         * modules/uniwbrk/u16-wordbreaks: New file.
22747         * lib/uniwbrk/u16-wordbreaks.c: New file.
22748
22749         New module 'uniwbrk/u8-wordbreaks'.
22750         * modules/uniwbrk/u8-wordbreaks: New file.
22751         * lib/uniwbrk/u8-wordbreaks.c: New file.
22752         * lib/uniwbrk/u-wordbreaks.h: New file.
22753
22754         New module 'uniwbrk/table'.
22755         * modules/uniwbrk/table: New file.
22756         * lib/uniwbrk/wbrktable.h: New file.
22757         * lib/uniwbrk/wbrktable.c: New file.
22758
22759         New module 'uniwbrk/wordbreak-property'.
22760         * modules/uniwbrk/wordbreak-property: New file.
22761         * lib/uniwbrk/wordbreak-property.c: New file.
22762
22763         * lib/gen-uni-tables.c (WBP_*): New enum items.
22764         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22765         (unicode_org_wbp): New variable.
22766         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22767         New functions.
22768         (wbp_table): New structure.
22769         (output_wbp, output_wbrk_tables): New functions.
22770         (main): Accept additional argument. Invoke fill_org_wbp,
22771         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22772         output_wbrk_tables.
22773         * modules/gen-uni-tables (Description): Update.
22774         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22775         gen-uni-tables.
22776
22777         New module 'uniwbrk/base'.
22778         * modules/uniwbrk/base: New file.
22779         * lib/uniwbrk.h: New file.
22780
22781 2009-02-08  Bruno Haible  <bruno@clisp.org>
22782
22783         Update to Unicode 5.1.0.
22784         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22785         U+2185..U+2188.
22786         (is_property_default_ignorable_code_point): Don't include characters
22787         of category Cc or Cs and not-a-characters.
22788         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22789         U+0D79, U+109E, U+109F, U+A60C.
22790         * lib/unictype/bidi_of.h: Regenerated.
22791         * lib/unictype/blocks.h: Regenerated.
22792         * lib/unictype/categ_C.h: Regenerated.
22793         * lib/unictype/categ_Cf.h: Regenerated.
22794         * lib/unictype/categ_Cn.h: Regenerated.
22795         * lib/unictype/categ_L.h: Regenerated.
22796         * lib/unictype/categ_Ll.h: Regenerated.
22797         * lib/unictype/categ_Lm.h: Regenerated.
22798         * lib/unictype/categ_Lo.h: Regenerated.
22799         * lib/unictype/categ_Lu.h: Regenerated.
22800         * lib/unictype/categ_M.h: Regenerated.
22801         * lib/unictype/categ_Mc.h: Regenerated.
22802         * lib/unictype/categ_Me.h: Regenerated.
22803         * lib/unictype/categ_Mn.h: Regenerated.
22804         * lib/unictype/categ_N.h: Regenerated.
22805         * lib/unictype/categ_Nd.h: Regenerated.
22806         * lib/unictype/categ_Nl.h: Regenerated.
22807         * lib/unictype/categ_No.h: Regenerated.
22808         * lib/unictype/categ_P.h: Regenerated.
22809         * lib/unictype/categ_Pd.h: Regenerated.
22810         * lib/unictype/categ_Pe.h: Regenerated.
22811         * lib/unictype/categ_Pf.h: Regenerated.
22812         * lib/unictype/categ_Pi.h: Regenerated.
22813         * lib/unictype/categ_Po.h: Regenerated.
22814         * lib/unictype/categ_Ps.h: Regenerated.
22815         * lib/unictype/categ_S.h: Regenerated.
22816         * lib/unictype/categ_Sk.h: Regenerated.
22817         * lib/unictype/categ_Sm.h: Regenerated.
22818         * lib/unictype/categ_So.h: Regenerated.
22819         * lib/unictype/categ_of.h: Regenerated.
22820         * lib/unictype/combining.h: Regenerated.
22821         * lib/unictype/ctype_alnum.h: Regenerated.
22822         * lib/unictype/ctype_alpha.h: Regenerated.
22823         * lib/unictype/ctype_graph.h: Regenerated.
22824         * lib/unictype/ctype_lower.h: Regenerated.
22825         * lib/unictype/ctype_print.h: Regenerated.
22826         * lib/unictype/ctype_punct.h: Regenerated.
22827         * lib/unictype/ctype_upper.h: Regenerated.
22828         * lib/unictype/decdigit.h: Regenerated.
22829         * lib/unictype/digit.h: Regenerated.
22830         * lib/unictype/mirror.h: Regenerated.
22831         * lib/unictype/numeric.h: Regenerated.
22832         * lib/unictype/pr_alphabetic.h: Regenerated.
22833         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22834         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22835         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22836         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22837         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22838         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22839         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22840         * lib/unictype/pr_combining.h: Regenerated.
22841         * lib/unictype/pr_dash.h: Regenerated.
22842         * lib/unictype/pr_decimal_digit.h: Regenerated.
22843         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22844         * lib/unictype/pr_deprecated.h: Regenerated.
22845         * lib/unictype/pr_diacritic.h: Regenerated.
22846         * lib/unictype/pr_extender.h: Regenerated.
22847         * lib/unictype/pr_format_control.h: Regenerated.
22848         * lib/unictype/pr_grapheme_base.h: Regenerated.
22849         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22850         * lib/unictype/pr_grapheme_link.h: Regenerated.
22851         * lib/unictype/pr_id_continue.h: Regenerated.
22852         * lib/unictype/pr_id_start.h: Regenerated.
22853         * lib/unictype/pr_ideographic.h: Regenerated.
22854         * lib/unictype/pr_ignorable_control.h: Regenerated.
22855         * lib/unictype/pr_lowercase.h: Regenerated.
22856         * lib/unictype/pr_math.h: Regenerated.
22857         * lib/unictype/pr_numeric.h: Regenerated.
22858         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22859         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22860         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22861         * lib/unictype/pr_other_id_continue.h: Regenerated.
22862         * lib/unictype/pr_other_lowercase.h: Regenerated.
22863         * lib/unictype/pr_other_math.h: Regenerated.
22864         * lib/unictype/pr_punctuation.h: Regenerated.
22865         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22866         * lib/unictype/pr_soft_dotted.h: Regenerated.
22867         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22868         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22869         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22870         * lib/unictype/pr_uppercase.h: Regenerated.
22871         * lib/unictype/pr_xid_continue.h: Regenerated.
22872         * lib/unictype/pr_xid_start.h: Regenerated.
22873         * lib/unictype/pr_zero_width.h: Regenerated.
22874         * lib/unictype/scripts.h: Regenerated.
22875         * lib/unictype/scripts_byname.gperf: Regenerated.
22876         * lib/unictype/sy_java_ident.h: Regenerated.
22877         * lib/unilbrk/lbrkprop1.h: Regenerated.
22878         * lib/unilbrk/lbrkprop2.h: Regenerated.
22879         * tests/unictype/test-categ_C.c: Regenerated.
22880         * tests/unictype/test-categ_Cf.c: Regenerated.
22881         * tests/unictype/test-categ_Cn.c: Regenerated.
22882         * tests/unictype/test-categ_L.c: Regenerated.
22883         * tests/unictype/test-categ_Ll.c: Regenerated.
22884         * tests/unictype/test-categ_Lm.c: Regenerated.
22885         * tests/unictype/test-categ_Lo.c: Regenerated.
22886         * tests/unictype/test-categ_Lu.c: Regenerated.
22887         * tests/unictype/test-categ_M.c: Regenerated.
22888         * tests/unictype/test-categ_Mc.c: Regenerated.
22889         * tests/unictype/test-categ_Me.c: Regenerated.
22890         * tests/unictype/test-categ_Mn.c: Regenerated.
22891         * tests/unictype/test-categ_N.c: Regenerated.
22892         * tests/unictype/test-categ_Nd.c: Regenerated.
22893         * tests/unictype/test-categ_Nl.c: Regenerated.
22894         * tests/unictype/test-categ_No.c: Regenerated.
22895         * tests/unictype/test-categ_P.c: Regenerated.
22896         * tests/unictype/test-categ_Pd.c: Regenerated.
22897         * tests/unictype/test-categ_Pe.c: Regenerated.
22898         * tests/unictype/test-categ_Pf.c: Regenerated.
22899         * tests/unictype/test-categ_Pi.c: Regenerated.
22900         * tests/unictype/test-categ_Po.c: Regenerated.
22901         * tests/unictype/test-categ_Ps.c: Regenerated.
22902         * tests/unictype/test-categ_S.c: Regenerated.
22903         * tests/unictype/test-categ_Sk.c: Regenerated.
22904         * tests/unictype/test-categ_Sm.c: Regenerated.
22905         * tests/unictype/test-categ_So.c: Regenerated.
22906         * tests/unictype/test-ctype_alnum.c: Regenerated.
22907         * tests/unictype/test-ctype_alpha.c: Regenerated.
22908         * tests/unictype/test-ctype_graph.c: Regenerated.
22909         * tests/unictype/test-ctype_lower.c: Regenerated.
22910         * tests/unictype/test-ctype_print.c: Regenerated.
22911         * tests/unictype/test-ctype_punct.c: Regenerated.
22912         * tests/unictype/test-ctype_upper.c: Regenerated.
22913         * tests/unictype/test-decdigit.h: Regenerated.
22914         * tests/unictype/test-digit.h: Regenerated.
22915         * tests/unictype/test-numeric.h: Regenerated.
22916         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22917         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22918         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22919         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22920         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22921         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22922         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22923         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22924         * tests/unictype/test-pr_combining.c: Regenerated.
22925         * tests/unictype/test-pr_dash.c: Regenerated.
22926         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22927         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22928         * tests/unictype/test-pr_deprecated.c: Regenerated.
22929         * tests/unictype/test-pr_diacritic.c: Regenerated.
22930         * tests/unictype/test-pr_extender.c: Regenerated.
22931         * tests/unictype/test-pr_format_control.c: Regenerated.
22932         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22933         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22934         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22935         * tests/unictype/test-pr_id_continue.c: Regenerated.
22936         * tests/unictype/test-pr_id_start.c: Regenerated.
22937         * tests/unictype/test-pr_ideographic.c: Regenerated.
22938         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
22939         * tests/unictype/test-pr_lowercase.c: Regenerated.
22940         * tests/unictype/test-pr_math.c: Regenerated.
22941         * tests/unictype/test-pr_numeric.c: Regenerated.
22942         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
22943         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
22944         Regenerated.
22945         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
22946         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
22947         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
22948         * tests/unictype/test-pr_other_math.c: Regenerated.
22949         * tests/unictype/test-pr_punctuation.c: Regenerated.
22950         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
22951         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
22952         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
22953         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
22954         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
22955         * tests/unictype/test-pr_uppercase.c: Regenerated.
22956         * tests/unictype/test-pr_xid_continue.c: Regenerated.
22957         * tests/unictype/test-pr_xid_start.c: Regenerated.
22958         * tests/unictype/test-pr_zero_width.c: Regenerated.
22959
22960         Update to Unicode 5.1.0.
22961         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
22962         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
22963         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
22964         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
22965         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
22966         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
22967         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
22968         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
22969         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
22970         (nonspacing_table_ind): Update.
22971         * tests/uniwidth/test-uc_width2.sh: Update expected result.
22972
22973         Update to Unicode 5.1.0.
22974         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
22975         code transform.
22976         * lib/uniname/uniname.c (unicode_character_name,
22977         unicode_name_character): Add the range 0x1Fxxx to the code transform.
22978         * lib/uniname/uninames.h: Regenerated.
22979         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
22980
22981 2009-02-07  Bruno Haible  <bruno@clisp.org>
22982
22983         Merge gen-ctype and gen-lbrk into a single program.
22984         * lib/gen-uni-tables.c: New file, incorporating
22985         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
22986         Add directory prefixes to the names of the generated files.
22987         * lib/unictype/gen-ctype.c: Remove file.
22988         * lib/unilbrk/gen-lbrk.c: Remove file.
22989         * modules/gen-uni-tables: New file.
22990         * modules/unictype/gen-ctype: Remove file.
22991         * modules/unilbrk/gen-lbrk: Remove file.
22992
22993 2009-02-07  Bruno Haible  <bruno@clisp.org>
22994
22995         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
22996
22997         New module 'unistr/u32-strcoll'.
22998         * modules/unistr/u32-strcoll: New file.
22999         * lib/unistr/u32-strcoll.c: New file.
23000
23001         New module 'unistr/u16-strcoll'.
23002         * modules/unistr/u16-strcoll: New file.
23003         * lib/unistr/u16-strcoll.c: New file.
23004
23005         New module 'unistr/u8-strcoll'.
23006         * modules/unistr/u8-strcoll: New file.
23007         * lib/unistr/u8-strcoll.c: New file.
23008         * lib/unistr/u-strcoll.h: New file.
23009
23010 2009-02-07  Bruno Haible  <bruno@clisp.org>
23011
23012         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23013         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23014         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23015         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23016         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23017         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23018
23019 2009-02-07  Bruno Haible  <bruno@clisp.org>
23020
23021         Make 64-bit clean.
23022         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23023         output_combclass, output_bidi_category, output_decimal_digit,
23024         output_digit, output_numeric, output_mirror, output_scripts,
23025         output_ident_category): Use proper width specifier in format strings.
23026
23027 2009-02-07  Bruno Haible  <bruno@clisp.org>
23028
23029         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23030         failure behaviour.
23031
23032 2009-02-07  Jim Meyering  <meyering@redhat.com>
23033
23034         regex: avoid compilation failure with upcoming gcc-4.4
23035         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23036         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23037         "... error: integer overflow in preprocessor expression".
23038
23039 2009-02-05  Ben Pfaff  <blp@gnu.org>
23040
23041         Fix link errors on Windows when close module is used.
23042         * modules/close: Add $(LIB_CLOSE) to Link section.
23043         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23044         $(LIB_CLOSE) on Windows.
23045
23046 2009-02-05  Jim Meyering  <meyering@redhat.com>
23047
23048         still avoid unused-parameter warnings, but do it cleanly
23049         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23050         (get_fs_usage): Cast to void instead.
23051         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23052         (dev_from_mount_options, read_file_system_list): Cast to void.
23053         Prompted by Bruno Haible.
23054
23055 2009-02-04  Jim Meyering  <meyering@redhat.com>
23056
23057         fsusage.c: correct copyright year
23058         * lib/fsusage.c: Reflect year in which the change is pushed into
23059
23060         avoid misc. warnings
23061         * lib/fsusage.c (UNUSED_PARAM): Define.
23062         (get_fs_usage): Mark parameter "disk" as unused.
23063         * lib/getugroups.c (getgrent): Use "void" in prototype.
23064         * lib/mountlist.c: Mark unused parameters.
23065         (read_file_system_list): Declare a local with "const".
23066         * lib/nanosleep.c (getnow): Declare static.
23067         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23068
23069         dirfd: set errno upon failure
23070         * lib/dirfd.c: Include <errno.h>.
23071         Set errno to ENOTSUP when returning -1.
23072         * modules/dirfd (Depends-on): Add errno.
23073         Suggested by John Kodis <kodis@comcast.net>.
23074
23075 2009-02-01  Bruno Haible  <bruno@clisp.org>
23076
23077         Don't assume sizeof (long) >= sizeof (void *).
23078         * lib/memcmp.c: Include stdint.h.
23079         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23080         srcp2 to 'const byte *'.
23081         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23082         types to uintptr_t.
23083         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23084         * modules/memcmp (Depends-on): Add stdint.
23085         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23086
23087 2009-01-30  Eric Blake  <ebb9@byu.net>
23088
23089         fix more require-before-expand issues
23090         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23091         expand, AC_PROG_AWK.
23092         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23093
23094 2009-01-28  Eric Blake  <ebb9@byu.net>
23095
23096         version-etc: use consistent URL formatting
23097         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23098         Improve formatting.  Use fputs for string without %.
23099
23100 2009-01-28  Jim Meyering  <meyering@redhat.com>
23101
23102         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23103         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23104         "underquoted definition of NAME" from autoconf-2.59.
23105
23106 2009-01-28  Bruno Haible  <bruno@clisp.org>
23107
23108         * doc/gnulib.texi: Add "Obsolete modules" to index.
23109
23110 2009-01-28  Jim Meyering  <meyering@redhat.com>
23111
23112         useless-if-before-free: recognize more variants
23113         * build-aux/useless-if-before-free: Also recognize e.g.,
23114         if (NULL != p) free (p);
23115
23116 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23117
23118         test-getaddrinfo: skip (don't fail) this test when there's no network
23119         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23120         on the presumption that it means you lack network access.
23121
23122 2009-01-26  Jim Meyering  <meyering@redhat.com>
23123
23124         fflush: avoid warnings on modern systems
23125         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23126         pos and result, into scopes where they're used.
23127
23128 2009-01-26  Eric Blake  <ebb9@byu.net>
23129
23130         Silence warning reintroduced by recent extensions patch.
23131         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23132         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23133         autoconf.
23134
23135         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23136         * m4/00gnulib.m4: New file.
23137         * gnulib-tool (func_get_filelist): Always use it.
23138         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23139         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23140
23141 2009-01-25  Bruno Haible  <bruno@clisp.org>
23142
23143         Make test-quotearg work on MacOS X and AIX.
23144         * tests/test-quotearg.sh: New file.
23145         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23146         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23147         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23148         include <libintl.h>.
23149         (fake_locale): Remove variable.
23150         (gettext, dgettext, dcgettext): Remove functions.
23151         (main): Instead of setting a fake locale, set a real locale. Call
23152         textdomain and bindtextdomain.
23153         * modules/quotearg-tests (Files): Add the new files.
23154         (Depends-on): Add gettext, setenv, unsetenv.
23155         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23156         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23157         Augment TESTS_ENVIRONMENT.
23158
23159 2009-01-25  Bruno Haible  <bruno@clisp.org>
23160
23161         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23162         fr_FR.ISO8859-1 locale on MacOS X.
23163         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23164         ja_JP.eucJP locale on MacOS X.
23165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23166         zh_CN.GB18030 locale on MacOS X.
23167
23168 2009-01-25  Bruno Haible  <bruno@clisp.org>
23169
23170         Avoid link errors on MacOS X 10.3.
23171         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23172         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23173
23174 2009-01-25  Bruno Haible  <bruno@clisp.org>
23175
23176         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23177         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23178         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23179         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23180         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23181         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23182         posix_spawnattr_init, posix_spawnattr_setsigmask,
23183         posix_spawnattr_setflags, posix_spawnattr_destroy.
23184
23185         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23186         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23187         * modules/execute (Files): Remove m4/posix_spawn.m4.
23188         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23189         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23190         posix_spawnattr_init, posix_spawnattr_setsigmask,
23191         posix_spawnattr_setflags, posix_spawnattr_destroy.
23192
23193 2009-01-25  Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/glthread/threadlib.c: Include <stdlib.h>.
23196
23197 2009-01-25  Bruno Haible  <bruno@clisp.org>
23198
23199         * lib/glthread/threadlib.c (dummy): New declaration.
23200
23201 2009-01-25  Bruno Haible  <bruno@clisp.org>
23202
23203         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23204         multibyte characters also for the GB18030 encoding. Don't crash when
23205         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23206
23207 2009-01-25  Bruno Haible  <bruno@clisp.org>
23208
23209         Avoid redefining 'struct random_data' on OSF/1 5.1.
23210         * lib/stdlib.in.h: Include <random.h> if it exists.
23211         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23212         HAVE_RANDOM_H. Include <random.h> when testing whether
23213         'struct random_data' exists.
23214         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23215
23216 2009-01-25  Bruno Haible  <bruno@clisp.org>
23217
23218         Don't install charset.alias on MacOS X >= 10.3.
23219         * lib/localcharset.c (DARWIN7): New macro.
23220         (get_charset_aliases): Hardcode the result for Darwin7.
23221         * modules/localcharset (install-exec-local): Don't install
23222         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23223
23224 2009-01-25  Bruno Haible  <bruno@clisp.org>
23225
23226         Don't install charset.alias on mingw and Cygwin.
23227         * modules/localcharset (install-exec-local): Don't install
23228         charset.alias on mingw and Cygwin, if the file does not yet exist.
23229         The result for these platforms is hardcoded in localcharset.c.
23230
23231 2009-01-25  Bruno Haible  <bruno@clisp.org>
23232
23233         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23234         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23235         before requiring AC_USE_SYSTEM_EXTENSIONS.
23236
23237 2009-01-25  Jim Meyering  <meyering@redhat.com>
23238
23239         c-strtod: avoid warnings
23240         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23241         "assignment discards qualifiers from pointer target type" warnings.
23242
23243 2009-01-24  Bruno Haible  <bruno@clisp.org>
23244
23245         Add support for non-UTF-8 locales on MacOS X.
23246         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23247         canonical encodings. For Darwin 7 and newer, don't map traditional
23248         encodings to UTF-8.
23249         Reported by Vincent Lefevre <vincent@vinc17.org>
23250         at <http://savannah.gnu.org/bugs/?25235>.
23251
23252 2009-01-24  Bruno Haible  <bruno@clisp.org>
23253
23254         * doc/gnulib.texi (Obsolete modules): New section.
23255         Reported by Mike Frysinger <vapier@gentoo.org>.
23256
23257 2009-01-24  Bruno Haible  <bruno@clisp.org>
23258
23259         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23260         (%.dvi): New rule.
23261
23262 2009-01-24  Bruno Haible  <bruno@clisp.org>
23263
23264         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23265         Reported by Eric Blake.
23266
23267 2009-01-24  Bruno Haible  <bruno@clisp.org>
23268
23269         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23270         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23271         Reported by Gary V. Vaughan <gary@gnu.org>.
23272
23273 2009-01-24  Bruno Haible  <bruno@clisp.org>
23274
23275         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23276
23277 2009-01-23  Bruno Haible  <bruno@clisp.org>
23278
23279         Make c-strtod, c-strtold usable in libraries.
23280         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23281         (C_STRTOD): Call strdup instead of xstrdup.
23282         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23283         * modules/c-strtold (Depends-on): Likewise.
23284         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23285         * NEWS: Mention the change.
23286         Reported by Michael Gold <mgold@ncf.ca>.
23287
23288 2009-01-23  Jim Meyering  <meyering@redhat.com>
23289
23290         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23291         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23292         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23293
23294 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23295
23296         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23297         GNU CoreUtils.
23298         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23299         * modules/version-etc (Description): Update.
23300
23301 2009-01-22  Bruno Haible  <bruno@clisp.org>
23302
23303         Cache the C locale object.
23304         * lib/c-strtod.c (c_locale_cache): New variable.
23305         (c_locale): New function.
23306         (C_STRTOD): Use it, and don't call freelocale.
23307         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23308         Suggested by Paolo Bonzini.
23309
23310 2009-01-21  Bruno Haible  <bruno@clisp.org>
23311
23312         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23313         conditions other than overflow.
23314
23315 2009-01-21  Bruno Haible  <bruno@clisp.org>
23316
23317         * lib/c-strtod.c: Include errno.h.
23318         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23319         value from STRTOD_L and STRTOD.
23320
23321 2009-01-21  Bruno Haible  <bruno@clisp.org>
23322         and Jim Meyering  <meyering@redhat.com>
23323
23324         nanosleep: skip configure test (fail it) for apple universal builds
23325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23326         universal builds, assume that nanosleep does not work.
23327         * modules/nanosleep (Depends-on): Add multiarch.
23328
23329         mktime: skip configure test (fail it) for apple universal builds
23330         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23331         universal builds, assume that mktime does not work.
23332         * modules/mktime (Depends-on): Add multiarch.
23333
23334 2009-01-21  Eric Blake  <ebb9@byu.net>
23335
23336         multiarch: avoid expand-before-require warning
23337         * modules/multiarch (configure.ac): Require, rather than expand,
23338         gl_MULTIARCH.
23339         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23340         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23341         enforce that all clients require it.  Partial reversion of
23342         2008-12-29 patch.
23343
23344         error: avoid expand-before-require warning
23345         * modules/errno (configure.ac): Require, rather than expand,
23346         gl_HEADER_ERRNO_H.
23347         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23348         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23349         enforce that all clients require it.
23350
23351         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23352         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23353         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23354         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23355
23356 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23357
23358         Revert:
23359         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23360
23361         regex: do not depend on obsolete modules.
23362         * modules/regex: Remove memcmp and memmove.
23363
23364 2009-01-20  Bruno Haible  <bruno@clisp.org>
23365
23366         Make the 'link' module link on Windows NT 4.
23367         * lib/link.c (_WIN32_WINNT): Don't define.
23368         (CreateHardLinkFuncType): New type.
23369         (CreateHardLinkFunc, initialized): New variables.
23370         (initialize): New function.
23371         (link): Invoke CreateHardLink indirectly through the function pointer.
23372
23373 2009-01-20  Bruno Haible  <bruno@clisp.org>
23374
23375         Fix compilation failure on mingw.
23376         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23377
23378 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23379
23380         * doc/c-strtod.texi: Mention a couple of restrictions.
23381
23382 2009-01-20  Jim Meyering  <meyering@redhat.com>
23383
23384         gettimeofday: move more declarations out of functions
23385         * lib/gettimeofday.c: Move extern declarations of tzset and
23386         gmtime out of containing functions.  Prompted by Bruno Haible.
23387
23388 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23389
23390         regex: do not depend on obsolete modules.
23391         * modules/regex: Remove memcmp and memmove.
23392
23393 2009-01-19  Bruno Haible  <bruno@clisp.org>
23394
23395         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23396         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23397         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23398         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23399         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23400
23401 2009-01-19  Bruno Haible  <bruno@clisp.org>
23402
23403         * tests/test-link.c: Include <errno.h>.
23404         (main): Exit with code 77 when a hard link cannot be created due to
23405         the file system.
23406         * tests/test-link.sh: Skip test when a hard link cannot be created due
23407         to the file system.
23408         Suggested by Eric Blake.
23409
23410 2009-01-19  Martin Lambers  <marlam@marlam.de>
23411
23412         * modules/link-tests: New file.
23413         * tests/test-link.sh: New file.
23414         * tests/test-link.c: New file.
23415
23416 2009-01-19  Eric Blake  <ebb9@byu.net>
23417
23418         doc: mention another function added in cygwin 1.7.0
23419         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23420         Another new function in cygwin 1.7.
23421
23422 2009-01-19  Bruno Haible  <bruno@clisp.org>
23423
23424         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23425         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23426         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23427         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23428         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23429         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23431         * m4/md4.m4 (gl_MD4): Likewise.
23432         * m4/md5.m4 (gl_MD5): Likewise.
23433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23434         * m4/sha1.m4 (gl_SHA1): Likewise.
23435         * m4/sha256.m4 (gl_SHA256): Likewise.
23436         * m4/sha512.m4 (gl_SHA512): Likewise.
23437
23438 2009-01-19  Bruno Haible  <bruno@clisp.org>
23439
23440         * modules/uniname/uniname-tests (Depends-on): Add progname.
23441         * tests/uniname/test-uninames.c: Include progname.h.
23442         (main): Call set_program_name.
23443
23444         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23445         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23446         (main): Call set_program_name.
23447
23448         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23449         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23450         (main): Call set_program_name.
23451
23452         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23453         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23454         (main): Call set_program_name.
23455
23456         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23457         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23458         (main): Call set_program_name.
23459
23460         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23461         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23462         (main): Call set_program_name.
23463
23464         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23465         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23466         (main): Call set_program_name.
23467
23468         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23469         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23470         (main): Call set_program_name.
23471
23472         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23473         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23474         (main): Call set_program_name.
23475
23476 2009-01-19  Eric Blake  <ebb9@byu.net>
23477
23478         test-unistd: test previous patch
23479         * tests/test-unistd.c: Test *_FILENO macros.
23480
23481         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23482         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23483         Guarantee a definition.
23484         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23485         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23486         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23487         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23488         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23489         Likewise.
23490         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23491         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23492         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23493         Likewise.
23494         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23495         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23496         (STDERR_FILENO): Likewise.
23497         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23498         (STDERR_FILENO): Likewise.
23499         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23500         (STDERR_FILENO): Likewise.
23501         Reported by Elbert Pol.
23502
23503 2009-01-19  Eric Blake  <ebb9@byu.net>
23504
23505         doc: mention more functions added in cygwin 1.7.0
23506         * doc/posix-functions/abort.texi (abort): Update wording related
23507         to cygwin.
23508         * doc/posix-functions/daylight.texi (daylight): Likewise.
23509         * doc/posix-functions/optarg.texi (optarg): Likewise.
23510         * doc/posix-functions/optarg.texi (opterr): Likewise.
23511         * doc/posix-functions/optarg.texi (optind): Likewise.
23512         * doc/posix-functions/optarg.texi (optopt): Likewise.
23513         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23514         worked in 1.5.x, and was withdrawn in 1.7.
23515         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23516         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23517         cygwin versions.
23518         * doc/posix-functions/perror.texi (perror): Likewise.
23519         * doc/posix-functions/printf.texi (printf): Likewise.
23520         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23521         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23522         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23523         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23524         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23525         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23526         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23527         Likewise.
23528         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23529         Likewise.
23530         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23531         this function.
23532         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23533         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23534         Likewise.
23535         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23536         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23537         * doc/posix-functions/confstr.texi (confstr): Likewise.
23538         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23539         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23540         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23541         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23542         * doc/posix-functions/fputws.texi (fputws): Likewise.
23543         * doc/posix-functions/fwide.texi (fwide): Likewise.
23544         * doc/posix-functions/getwc.texi (getwc): Likewise.
23545         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23546         * doc/posix-functions/putwc.texi (putwc): Likewise.
23547         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23548         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23549         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23550         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23551         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23552         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23553         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23554         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23555         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23556         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23557         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23558
23559 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23560
23561         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23562         * lib/ioctl.c: Include <sys/ioctl.h>.
23563
23564 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23565
23566         * modules/getdate-tests (Depends-on): Add progname.
23567         * tests/test-getdate.c: Use progname module, to avoid link errors
23568         on non-glibc systems.
23569
23570 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23571
23572         * modules/filenamecat-tests (Depends-on): Add progname.
23573         * modules/fstrcmp-tests (Depends-on): Likewise.
23574
23575         * tests/test-filenamecat.c: Use progname module, to avoid link
23576         errors on non-glibc systems.
23577         * tests/test-fstrcmp.c: Likewise.
23578
23579 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23580
23581         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23582         * lib/gettimeofday.c: Move extern declaration out of function.
23583
23584 2009-01-18  Bruno Haible  <bruno@clisp.org>
23585
23586         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23587         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23588         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23589
23590 2009-01-18  Bruno Haible  <bruno@clisp.org>
23591
23592         * lib/strftime.c (MEMPCPY): Remove unused macro.
23593         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23594
23595 2009-01-18  Martin Lambers  <marlam@marlam.de>
23596
23597         New module 'link'.
23598         * lib/unistd.in.h (link): New declaration.
23599         * lib/link.c: New file.
23600         * m4/link.m4: New file.
23601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23602         HAVE_LINK.
23603         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23604         * modules/link: New file.
23605         * doc/posix-functions/link.texi: Mention the new module.
23606
23607 2009-01-18  Bruno Haible  <bruno@clisp.org>
23608
23609         * tests/test-avltree_list.c (main): Call set_program_name.
23610         * tests/test-avltree_oset.c (main): Likewise.
23611         * tests/test-obstack-printf.c: Include progname.h.
23612         (main): Call set_program_name.
23613         * tests/test-quotearg.c: Include progname.h.
23614         (main): Call set_program_name.
23615         * tests/test-xmemdup0.c: Include progname.h.
23616         (main): Call set_program_name.
23617
23618 2009-01-18  Bruno Haible  <bruno@clisp.org>
23619
23620         New module 'alphasort'.
23621         * lib/dirent.in.h (alphasort): New declaration.
23622         * lib/alphasort.c: New file, from glibc with modifications.
23623         * m4/alphasort.m4: New file.
23624         * modules/alphasort: New file.
23625         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23626         HAVE_ALPHASORT.
23627         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23628         HAVE_ALPHASORT.
23629         * doc/posix-functions/alphasort.texi: Mention the new module and the
23630         portability problems.
23631
23632 2009-01-18  Bruno Haible  <bruno@clisp.org>
23633
23634         New module 'scandir'.
23635         * lib/dirent.in.h (scandir): New declaration.
23636         * lib/scandir.c: New file, from glibc with modifications.
23637         * m4/scandir.m4: New file.
23638         * modules/scandir: New file.
23639         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23640         HAVE_SCANDIR.
23641         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23642         HAVE_SCANDIR.
23643         * doc/posix-functions/scandir.texi: Mention the new module and the
23644         portability problems.
23645
23646 2009-01-17  Bruno Haible  <bruno@clisp.org>
23647
23648         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23649         Update documentation.
23650         (func_remove_suffix): Escape all dots in the suffix. Update
23651         documentation.
23652         (func_filter_filelist): Update documentation.
23653         Reported by Ralf Wildenhues.
23654
23655 2009-01-17  Bruno Haible  <bruno@clisp.org>
23656
23657         * modules/dprintf-posix-tests: New file.
23658         * tests/test-dprintf-posix.sh: New file.
23659         * tests/test-dprintf-posix.c: New file.
23660
23661         New modules 'dprintf', 'dprintf-posix'.
23662         * lib/stdio.in.h (dprintf): New declaration.
23663         * lib/dprintf.c: New file.
23664         * m4/dprintf.m4: New file.
23665         * m4/dprintf-posix.m4: New file.
23666         * modules/dprintf: New file.
23667         * modules/dprintf-posix: New file.
23668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23669         HAVE_DPRINTF, REPLACE_DPRINTF.
23670         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23671         HAVE_DPRINTF, REPLACE_DPRINTF.
23672         * doc/posix-functions/dprintf.texi: Mention the new modules.
23673
23674 2009-01-17  Bruno Haible  <bruno@clisp.org>
23675
23676         * modules/vdprintf-posix-tests: New file.
23677         * tests/test-vdprintf-posix.sh: New file.
23678         * tests/test-vdprintf-posix.c: New file.
23679
23680         New modules 'vdprintf', 'vdprintf-posix'.
23681         * lib/stdio.in.h (vdprintf): New declaration.
23682         * lib/vdprintf.c: New file.
23683         * m4/vdprintf.m4: New file.
23684         * m4/vdprintf-posix.m4: New file.
23685         * modules/vdprintf: New file.
23686         * modules/vdprintf-posix: New file.
23687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23688         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23689         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23690         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23691         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23692
23693 2009-01-17  Bruno Haible  <bruno@clisp.org>
23694
23695         Fix replacement of fopen on mingw.
23696         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23697         mingw.
23698
23699 2009-01-17  Bruno Haible  <bruno@clisp.org>
23700
23701         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23702         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23703
23704 2009-01-17  Bruno Haible  <bruno@clisp.org>
23705
23706         Avoid test-fflush2.sh failure on mingw.
23707         * tests/test-fflush2.c: Include binary-io.h.
23708         (main): Put standard input into binary mode.
23709         * modules/fflush-tests (Depends-on): Add binary-io.
23710
23711 2009-01-17  Bruno Haible  <bruno@clisp.org>
23712
23713         * lib/wchar.in.h: In another particular situation, include only the
23714         system's <wchar.h> file.
23715         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23716         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23717         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23718
23719 2009-01-17  Bruno Haible  <bruno@clisp.org>
23720
23721         Support for stripping executables in --enable-relocatable.
23722         * build-aux/install-reloc: Expect one more argument, or an environment
23723         variable RELOC_STRIP_PROG. If set, strip the destination program and
23724         its wrapper.
23725         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23726         RELOC_STRIP_PROG.
23727         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23728         to set RELOCATABLE_STRIP.
23729         * NEWS: Mention the new Makefile requirement.
23730
23731 2009-01-17  Bruno Haible  <bruno@clisp.org>
23732
23733         * build-aux/install-reloc: Remove debugging information left over by
23734         C compiler on MacOS X.
23735
23736 2009-01-17  Bruno Haible  <bruno@clisp.org>
23737
23738         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23739         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23740         _NSGetExecutablePath.
23741
23742 2009-01-16  Jim Meyering  <meyering@redhat.com>
23743
23744         strerror: avoid warnings about discarding "const"
23745         * lib/strerror.c (rpl_strerror): Instead of returning a const
23746         string from each and every "case", use a variable, and add a single
23747         cast after the switch.
23748
23749 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23750
23751         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23752
23753 2009-01-16  Bruno Haible  <bruno@clisp.org>
23754
23755         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23756         array initializer syntax that also works in C++ mode.
23757         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23758
23759 2009-01-16  Jim Meyering  <meyering@redhat.com>
23760
23761         poll: suppress a warning
23762         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23763         to ignore "...unsigned expression < 0 is always false" warnings.
23764
23765 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23766
23767         poll: remove declarations of unused variables
23768         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23769         sockbuf and optlen.
23770
23771 2009-01-15  Bruno Haible  <bruno@clisp.org>
23772
23773         Make fflush-after-ungetc POSIX compliant on BSD systems.
23774         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23775         (clear_ungetc_buffer): Implement also for other systems.
23776         (rpl_fflush): On glibc systems, invoke
23777         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23778         clear_ungetc_buffer after fetching the stream's position, not before.
23779
23780 2009-01-15  Bruno Haible  <bruno@clisp.org>
23781
23782         Make fflush-after-ungetc POSIX compliant on glibc systems.
23783         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23784         after ungetc.
23785         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23786         (rpl_fflush): On glibc systems, simply call the system's fflush
23787         function after clearing the ungetc buffer.
23788         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23789         Instead, lseek only to the end of file, then use the system's fseeko
23790         for the rest. On glibc systems, reset the EOF indicator bit.
23791
23792 2009-01-15  Jim Meyering  <meyering@redhat.com>
23793
23794         openmp.m4: revert quote-adding change, for portability to older autoconf
23795         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23796         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23797         Simon Josefsson noticed the problem when using autoconf-2.61.
23798
23799 2009-01-15  Bruno Haible  <bruno@clisp.org>
23800
23801         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23802         * tests/test-fflush2.c (ASSERT): Always fail.
23803         (main): Add two tests for fflush() after ungetc(), taking into account
23804         the Austin Group's clarification.
23805         Suggested by Eric Blake.
23806
23807 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23808
23809         mktime.m4: remove K&R-style function prototypes
23810         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23811         for the Sun C++ compiler.
23812
23813 2009-01-14  Bruno Haible  <bruno@clisp.org>
23814
23815         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23816         while including <wchar.h>.
23817         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23818         the system's <wchar.h> file.
23819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23820
23821 2009-01-14  Bruno Haible  <bruno@clisp.org>
23822
23823         * m4/csharp.m4: Don't mention gettext on the serial number line.
23824         * m4/csharpexec.m4: Likewise.
23825         * m4/eaccess.m4: Likewise.
23826         * m4/javaexec.m4: Likewise.
23827         * m4/sig_atomic_t.m4: Likewise.
23828         * m4/tmpdir.m4: Likewise.
23829         * m4/intldir.m4: Bump gettext version.
23830         * m4/lib-ld.m4: Likewise.
23831
23832 2009-01-14  Bruno Haible  <bruno@clisp.org>
23833
23834         * lib/progname.c (set_program_name): Add more comments.
23835         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23836
23837 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23838
23839         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23840         were sys/stat.h does not define it.
23841
23842 2009-01-14  Jim Meyering  <meyering@redhat.com>
23843
23844         many *.m4 files: improve m4 quoting
23845         99% of this change was performed by running the following commands:
23846         git ls-files | grep '\.m4$' | xargs perl -pi \
23847           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23848           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23849           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23850           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23851         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23852         The remainder were to add Copyright dates, increment serial numbers,
23853         undo some changes in comments, exclude m4/intl.m4, and add quotes
23854         around the "1" in ",1" where the unusual spacing prohibited the
23855         above regexps from doing the job.  For more details, see
23856         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23857         * m4/acl.m4: Modified.
23858         * m4/afs.m4: Likewise.
23859         * m4/alloca.m4: Likewise.
23860         * m4/argp.m4: Likewise.
23861         * m4/argz.m4: Likewise.
23862         * m4/atexit.m4: Likewise.
23863         * m4/bison-i18n.m4: Likewise.
23864         * m4/bison.m4: Likewise.
23865         * m4/byteswap.m4: Likewise.
23866         * m4/c-stack.m4: Likewise.
23867         * m4/c-strtod.m4: Likewise.
23868         * m4/calloc.m4: Likewise.
23869         * m4/canonicalize-lgpl.m4: Likewise.
23870         * m4/chown.m4: Likewise.
23871         * m4/clock_time.m4: Likewise.
23872         * m4/codeset.m4: Likewise.
23873         * m4/copy-file.m4: Likewise.
23874         * m4/csharp.m4: Likewise.
23875         * m4/csharpcomp.m4: Likewise.
23876         * m4/csharpexec.m4: Likewise.
23877         * m4/d-ino.m4: Likewise.
23878         * m4/d-type.m4: Likewise.
23879         * m4/dirfd.m4: Likewise.
23880         * m4/double-slash-root.m4: Likewise.
23881         * m4/eaccess.m4: Likewise.
23882         * m4/eealloc.m4: Likewise.
23883         * m4/environ.m4: Likewise.
23884         * m4/errno_h.m4: Likewise.
23885         * m4/euidaccess.m4: Likewise.
23886         * m4/execute.m4: Likewise.
23887         * m4/fatal-signal.m4: Likewise.
23888         * m4/fchdir.m4: Likewise.
23889         * m4/fcntl_h.m4: Likewise.
23890         * m4/fileblocks.m4: Likewise.
23891         * m4/filenamecat.m4: Likewise.
23892         * m4/findprog.m4: Likewise.
23893         * m4/flexmember.m4: Likewise.
23894         * m4/fnmatch.m4: Likewise.
23895         * m4/fopen.m4: Likewise.
23896         * m4/fpending.m4: Likewise.
23897         * m4/fprintf-posix.m4: Likewise.
23898         * m4/free.m4: Likewise.
23899         * m4/frexp.m4: Likewise.
23900         * m4/frexpl.m4: Likewise.
23901         * m4/fsusage.m4: Likewise.
23902         * m4/ftruncate.m4: Likewise.
23903         * m4/gc-camellia.m4: Likewise.
23904         * m4/gc-random.m4: Likewise.
23905         * m4/gc.m4: Likewise.
23906         * m4/getaddrinfo.m4: Likewise.
23907         * m4/getcwd-abort-bug.m4: Likewise.
23908         * m4/getcwd-path-max.m4: Likewise.
23909         * m4/getdate.m4: Likewise.
23910         * m4/getdomainname.m4: Likewise.
23911         * m4/getgroups.m4: Likewise.
23912         * m4/gethostname.m4: Likewise.
23913         * m4/gethrxtime.m4: Likewise.
23914         * m4/getline.m4: Likewise.
23915         * m4/getloadavg.m4: Likewise.
23916         * m4/getndelim2.m4: Likewise.
23917         * m4/getpass.m4: Likewise.
23918         * m4/gettext.m4: Likewise.
23919         * m4/gettime.m4: Likewise.
23920         * m4/gettimeofday.m4: Likewise.
23921         * m4/gnulib-common.m4: Likewise.
23922         * m4/group-member.m4: Likewise.
23923         * m4/host-os.m4: Likewise.
23924         * m4/iconv.m4: Likewise.
23925         * m4/iconv_open.m4: Likewise.
23926         * m4/inet_ntop.m4: Likewise.
23927         * m4/inet_pton.m4: Likewise.
23928         * m4/inline.m4: Likewise.
23929         * m4/intldir.m4: Likewise.
23930         * m4/intlmacosx.m4: Likewise.
23931         * m4/intmax.m4: Likewise.
23932         * m4/intmax_t.m4: Likewise.
23933         * m4/inttypes.m4: Likewise.
23934         * m4/inttypes_h.m4: Likewise.
23935         * m4/inttypes-pri.m4: Likewise.
23936         * m4/isapipe.m4: Likewise.
23937         * m4/isnand.m4: Likewise.
23938         * m4/isnanf.m4: Likewise.
23939         * m4/isnanl.m4: Likewise.
23940         * m4/javacomp.m4: Likewise.
23941         * m4/javaexec.m4: Likewise.
23942         * m4/jm-winsz1.m4: Likewise.
23943         * m4/jm-winsz2.m4: Likewise.
23944         * m4/lchown.m4: Likewise.
23945         * m4/lcmessage.m4: Likewise.
23946         * m4/ldexpl.m4: Likewise.
23947         * m4/lib-ld.m4: Likewise.
23948         * m4/lib-link.m4: Likewise.
23949         * m4/libsigsegv.m4: Likewise.
23950         * m4/link-follow.m4: Likewise.
23951         * m4/localcharset.m4: Likewise.
23952         * m4/locale-fr.m4: Likewise.
23953         * m4/locale-ja.m4: Likewise.
23954         * m4/locale-tr.m4: Likewise.
23955         * m4/locale-zh.m4: Likewise.
23956         * m4/lock.m4: Likewise.
23957         * m4/longlong.m4: Likewise.
23958         * m4/ls-mntd-fs.m4: Likewise.
23959         * m4/lstat.m4: Likewise.
23960         * m4/malloc.m4: Likewise.
23961         * m4/mathl.m4: Likewise.
23962         * m4/mbrtowc.m4: Likewise.
23963         * m4/mbstate_t.m4: Likewise.
23964         * m4/mbswidth.m4: Likewise.
23965         * m4/memchr.m4: Likewise.
23966         * m4/memcmp.m4: Likewise.
23967         * m4/memcpy.m4: Likewise.
23968         * m4/memmem.m4: Likewise.
23969         * m4/memmove.m4: Likewise.
23970         * m4/mempcpy.m4: Likewise.
23971         * m4/memrchr.m4: Likewise.
23972         * m4/memset.m4: Likewise.
23973         * m4/minmax.m4: Likewise.
23974         * m4/mkdir-slash.m4: Likewise.
23975         * m4/mkdtemp.m4: Likewise.
23976         * m4/mktime.m4: Likewise.
23977         * m4/mmap-anon.m4: Likewise.
23978         * m4/mountlist.m4: Likewise.
23979         * m4/nanosleep.m4: Likewise.
23980         * m4/nls.m4: Likewise.
23981         * m4/nocrash.m4: Likewise.
23982         * m4/open.m4: Likewise.
23983         * m4/openat.m4: Likewise.
23984         * m4/openmp.m4: Likewise.
23985         * m4/pathmax.m4: Likewise.
23986         * m4/perl.m4: Likewise.
23987         * m4/physmem.m4: Likewise.
23988         * m4/pipe.m4: Likewise.
23989         * m4/po.m4: Likewise.
23990         * m4/poll.m4: Likewise.
23991         * m4/posixtm.m4: Likewise.
23992         * m4/posixver.m4: Likewise.
23993         * m4/printf-frexp.m4: Likewise.
23994         * m4/printf-frexpl.m4: Likewise.
23995         * m4/printf-posix.m4: Likewise.
23996         * m4/printf-posix-rpl.m4: Likewise.
23997         * m4/printf.m4: Likewise.
23998         * m4/progtest.m4: Likewise.
23999         * m4/putenv.m4: Likewise.
24000         * m4/readline.m4: Likewise.
24001         * m4/readlink.m4: Likewise.
24002         * m4/readutmp.m4: Likewise.
24003         * m4/realloc.m4: Likewise.
24004         * m4/regex.m4: Likewise.
24005         * m4/relocatable.m4: Likewise.
24006         * m4/relocatable-lib.m4: Likewise.
24007         * m4/rename-dest-slash.m4: Likewise.
24008         * m4/rename.m4: Likewise.
24009         * m4/rmdir-errno.m4: Likewise.
24010         * m4/rmdir.m4: Likewise.
24011         * m4/roundf.m4: Likewise.
24012         * m4/roundl.m4: Likewise.
24013         * m4/rpmatch.m4: Likewise.
24014         * m4/save-cwd.m4: Likewise.
24015         * m4/selinux-selinux-h.m4: Likewise.
24016         * m4/setenv.m4: Likewise.
24017         * m4/settime.m4: Likewise.
24018         * m4/sig2str.m4: Likewise.
24019         * m4/sig_atomic_t.m4: Likewise.
24020         * m4/signalblocking.m4: Likewise.
24021         * m4/signbit.m4: Likewise.
24022         * m4/sigpipe.m4: Likewise.
24023         * m4/sockets.m4: Likewise.
24024         * m4/sockpfaf.m4: Likewise.
24025         * m4/st_dm_mode.m4: Likewise.
24026         * m4/stat-time.m4: Likewise.
24027         * m4/stdbool.m4: Likewise.
24028         * m4/stdint.m4: Likewise.
24029         * m4/stdint_h.m4: Likewise.
24030         * m4/stpcpy.m4: Likewise.
24031         * m4/stpncpy.m4: Likewise.
24032         * m4/strcase.m4: Likewise.
24033         * m4/strchrnul.m4: Likewise.
24034         * m4/strcspn.m4: Likewise.
24035         * m4/strdup.m4: Likewise.
24036         * m4/strftime.m4: Likewise.
24037         * m4/strndup.m4: Likewise.
24038         * m4/strnlen.m4: Likewise.
24039         * m4/strpbrk.m4: Likewise.
24040         * m4/strptime.m4: Likewise.
24041         * m4/strsep.m4: Likewise.
24042         * m4/strtod.m4: Likewise.
24043         * m4/strtoimax.m4: Likewise.
24044         * m4/strtok_r.m4: Likewise.
24045         * m4/strtol.m4: Likewise.
24046         * m4/strtoll.m4: Likewise.
24047         * m4/strtoul.m4: Likewise.
24048         * m4/strtoull.m4: Likewise.
24049         * m4/strtoumax.m4: Likewise.
24050         * m4/strverscmp.m4: Likewise.
24051         * m4/threadlib.m4: Likewise.
24052         * m4/timegm.m4: Likewise.
24053         * m4/tm_gmtoff.m4: Likewise.
24054         * m4/tmpdir.m4: Likewise.
24055         * m4/tmpfile.m4: Likewise.
24056         * m4/tzset.m4: Likewise.
24057         * m4/uintmax_t.m4: Likewise.
24058         * m4/unlinkdir.m4: Likewise.
24059         * m4/unlocked-io.m4: Likewise.
24060         * m4/uptime.m4: Likewise.
24061         * m4/userspec.m4: Likewise.
24062         * m4/utimbuf.m4: Likewise.
24063         * m4/utime.m4: Likewise.
24064         * m4/utimes-null.m4: Likewise.
24065         * m4/utimes.m4: Likewise.
24066         * m4/vararrays.m4: Likewise.
24067         * m4/vasnprintf.m4: Likewise.
24068         * m4/vfprintf-posix.m4: Likewise.
24069         * m4/vprintf-posix.m4: Likewise.
24070         * m4/wait-process.m4: Likewise.
24071         * m4/wchar_t.m4: Likewise.
24072         * m4/wint_t.m4: Likewise.
24073         * m4/write-any-file.m4: Likewise.
24074         * m4/yield.m4: Likewise.
24075
24076 2009-01-13  Bruno Haible  <bruno@clisp.org>
24077
24078         Avoid test-copy-file.sh failures when ACL support insufficient.
24079         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24080         TESTS_ENVIRONMENT.
24081         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24082         Reported by Jim Meyering.
24083
24084 2009-01-13  Bruno Haible  <bruno@clisp.org>
24085
24086         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24087         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24088         * modules/unistdio/u8-printf-parse (Files): Likewise.
24089         * modules/unistdio/u32-printf-parse (Files): Likewise.
24090         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24091
24092 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24093
24094         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24095         and m4/inttypes_h.m4 too.
24096
24097 2009-01-12  Eric Blake  <ebb9@byu.net>
24098
24099         tests: IRIX 6.2 cc can't compile -0.0 into .data
24100         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24101         rather than at compile-time.
24102         * tests/test-floorl.c (minus_zero): Likewise.
24103         * tests/test-frexpl.c (minus_zero): Likewise.
24104         * tests/test-isnan.c (minus_zerol): Likewise.
24105         * tests/test-isnanl.h (minus_zero): Likewise.
24106         * tests/test-ldexpl.c (minus_zero): Likewise.
24107         * tests/test-roundl.c (minus_zero): Likewise.
24108         * tests/test-signbit.c (minus_zerol): Likewise.
24109         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24110         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24111         * tests/test-truncl.c (minus_zero): Likewise.
24112         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24113         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24114         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24115
24116 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24117
24118         regex: fix glibc bug 9697
24119         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24120         handling.
24121
24122 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24123
24124         regex: fix glibc bug 697
24125         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24126         being NULL also if there are no backreferences.
24127
24128 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24129
24130         regex: merge glibc changes
24131         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24132         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24133         re_string_skip_chars, re_string_reconstruct): Likewise.
24134         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24135
24136 2009-01-07  Jim Meyering  <meyering@redhat.com>
24137
24138         poll: filter through cppi
24139         * lib/poll.c: Indent cpp directives to reflect nesting.
24140
24141 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24142
24143         poll: don't return uninitialized
24144         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24145
24146 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24147
24148         avoid compile failure on AIX 6.1
24149         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24150         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24151
24152 2009-01-04  Jim Meyering  <meyering@redhat.com>
24153
24154         remove duplicate inclusion of <stdio.h>
24155         * tests/test-fprintf-posix.c: Likewise.
24156         * tests/test-printf-posix.c: Likewise.
24157         * tests/test-snprintf-posix.c: Likewise.
24158         * tests/test-sprintf-posix.c: Likewise.
24159         * tests/test-vasprintf-posix.c: Likewise.
24160         * tests/test-vfprintf-posix.c: Likewise.
24161         * tests/test-vprintf-posix.c: Likewise.
24162         * tests/test-vsnprintf-posix.c: Likewise.
24163         * tests/test-vsprintf-posix.c: Likewise.
24164
24165 2009-01-03  Jim Meyering  <meyering@redhat.com>
24166
24167         gnulib-tool: fix sed-based filtering
24168         * gnulib-tool (func_filter_filelist): Remove extra backslash
24169         in sed_fff_filter definition.
24170
24171 2009-01-02  Jim Meyering  <meyering@redhat.com>
24172
24173         strftime: avoid compilation failure on Solaris 2.6
24174         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24175         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24176         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24177         be available.  Reported by Tom G. Christensen.  Details in
24178         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24179
24180 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24181             Bruno Haible  <bruno@clisp.org>
24182
24183         Speed up gnulib-tool by doing more string processing through shell
24184         built-ins.
24185         * gnulib-tool (fast_func_append): New variable.
24186         (func_remove_prefix, func_remove_suffix): New functions.
24187         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24188         (func_filter_filelist): New function.
24189         (func_get_dependencies): Use func_remove_suffix instead of sed.
24190         (func_get_automake_snippet): Use func_filter_filelist instead of a
24191         subshell and sed invocation.
24192
24193 2009-01-01  Bruno Haible  <bruno@clisp.org>
24194
24195         Fix a security bug.
24196         * gnulib-tool (func_import, import, update): Don't allow the characters
24197         '"', '$', '`', '\' in macro arguments that become part of commands that
24198         are evaluated.
24199
24200 2009-01-01  Bruno Haible  <bruno@clisp.org>
24201
24202         * gnulib-tool (func_reset_sigpipe): Add more comments.
24203
24204 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24205
24206         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24207         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24208         already know the answer.
24209
24210 2009-01-01  Jim Meyering  <meyering@redhat.com>
24211
24212         * lib/version-etc.c (version_etc_va): Update copyright year.
24213
24214 2008-12-30  Bruno Haible  <bruno@clisp.org>
24215
24216         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24217         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24218         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24219
24220 2008-12-29  Eric Blake  <ebb9@byu.net>
24221
24222         multiarch: avoid autoconf AC_REQUIRE bug
24223         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24224         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24225         2.63 and older.
24226         Reported by Bruno Haible, and analyzed in
24227         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24228
24229 2008-12-29  Bruno Haible  <bruno@clisp.org>
24230
24231         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24232         files in subdirectories correctly.
24233         Reported by Ralf Wildenhues.
24234
24235 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24236
24237         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24238         rather than 'join FILE -', for Solaris join.
24239
24240 2008-12-29  Bruno Haible  <bruno@clisp.org>
24241
24242         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24243         quoting.
24244         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24245         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24246         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24247         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24248         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24249         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24250         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24251         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24252         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24253         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24254         * m4/nls.m4 (AM_NLS): Likewise.
24255         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24256         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24257         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24258         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24259         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24260         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24261         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24262         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24263         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24264         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24265         * m4/xsize.m4 (gl_XSIZE): Likewise.
24266         Suggested by Jim Meyering.
24267
24268 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24269
24270         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24271         * lib/parse-duration.c: use a switch instead of cascading if's.
24272
24273 2008-12-29  Eric Blake  <ebb9@byu.net>
24274
24275         wchar.h: supply WEOF on Irix 5.3
24276         * lib/wchar.in.h (wint_t): Also supply WEOF.
24277         * lib/wctype.in.h (wint_t): Likewise.
24278         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24279         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24280         Reported by Tom G. Christensen.
24281
24282 2008-12-26  Bruno Haible  <bruno@clisp.org>
24283
24284         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24285         i486, i586, i686.
24286
24287 2008-12-26  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24290
24291 2008-12-26  Bruno Haible  <bruno@clisp.org>
24292
24293         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24294         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24295         not __STDC_CONSTANT_MACROS.
24296         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24297
24298 2008-12-25  Bruno Haible  <bruno@clisp.org>
24299
24300         Add support for universal builds to vasnprintf.
24301         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24302         universal builds, guess no.
24303         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24304         * modules/vasprintf-posix (Depends-on): Likewise.
24305         * modules/fprintf-posix (Depends-on): Likewise.
24306         * modules/vfprintf-posix (Depends-on): Likewise.
24307         * modules/snprintf-posix (Depends-on): Likewise.
24308         * modules/vsnprintf-posix (Depends-on): Likewise.
24309         * modules/sprintf-posix (Depends-on): Likewise.
24310         * modules/vsprintf-posix (Depends-on): Likewise.
24311         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24312         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24313         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24314         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24315         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24316         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24317         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24318
24319         Add support for universal builds to <inttypes.h>.
24320         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24321         _SCNu64_PREFIX): In Apple
24322         universal builds, define directly, using _LP64.
24323         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24324         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24325         * modules/inttypes (Depends-on): Add multiarch.
24326         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24327
24328         Add support for universal builds to <stdint.h>.
24329         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24330         universal builds, define directly, using _LP64.
24331         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24332         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24333         and size_t.
24334         * modules/stdint (Depends-on): Add multiarch.
24335         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24336
24337         New module 'multiarch'.
24338         * modules/multiarch: New file.
24339         * m4/multiarch.m4: New file.
24340
24341 2008-12-25  Bruno Haible  <bruno@clisp.org>
24342
24343         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24344
24345 2008-12-25  Bruno Haible  <bruno@clisp.org>
24346
24347         * modules/btowc (License): Relicense under LGPLv2+.
24348         * modules/mbsinit (License): Likewise.
24349         * modules/mbrtowc (License): Likewise.
24350         * modules/wcrtomb (License): Likewise.
24351         * modules/streq (License): Likewise.
24352         Reported by David Lutterkort <lutter@redhat.com>.
24353
24354 2008-12-23  Bruno Haible  <bruno@clisp.org>
24355
24356         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24357
24358 2008-12-23  Bruno Haible  <bruno@clisp.org>
24359
24360         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24362         GETADDRINFO_LIB, not in LIBS.
24363         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24364         * modules/canon-host (Link): Likewise.
24365         * NEWS: Mention the change.
24366         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24367         GETADDRINFO_LIB.
24368
24369 2008-12-22  Bruno Haible  <bruno@clisp.org>
24370
24371         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24372         * doc/posix-functions/iswalpha_l.texi: Likewise.
24373         * doc/posix-functions/iswblank_l.texi: Likewise.
24374         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24375         * doc/posix-functions/iswctype_l.texi: Likewise.
24376         * doc/posix-functions/iswdigit_l.texi: Likewise.
24377         * doc/posix-functions/iswgraph_l.texi: Likewise.
24378         * doc/posix-functions/iswlower_l.texi: Likewise.
24379         * doc/posix-functions/iswprint_l.texi: Likewise.
24380         * doc/posix-functions/iswpunct_l.texi: Likewise.
24381         * doc/posix-functions/iswspace_l.texi: Likewise.
24382         * doc/posix-functions/iswupper_l.texi: Likewise.
24383         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24384         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24385         * doc/posix-functions/open_wmemstream.texi: Likewise.
24386         * doc/posix-functions/swscanf.texi: Likewise.
24387         * doc/posix-functions/towctrans_l.texi: Likewise.
24388         * doc/posix-functions/towlower.texi: Likewise.
24389         * doc/posix-functions/towlower_l.texi: Likewise.
24390         * doc/posix-functions/towupper.texi: Likewise.
24391         * doc/posix-functions/towupper_l.texi: Likewise.
24392         * doc/posix-functions/vfwprintf.texi: Likewise.
24393         * doc/posix-functions/vfwscanf.texi: Likewise.
24394         * doc/posix-functions/vswscanf.texi: Likewise.
24395         * doc/posix-functions/vwprintf.texi: Likewise.
24396         * doc/posix-functions/vwscanf.texi: Likewise.
24397         * doc/posix-functions/wcpcpy.texi: Likewise.
24398         * doc/posix-functions/wcpncpy.texi: Likewise.
24399         * doc/posix-functions/wcscasecmp.texi: Likewise.
24400         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24401         * doc/posix-functions/wcscoll_l.texi: Likewise.
24402         * doc/posix-functions/wcsdup.texi: Likewise.
24403         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24404         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24405         * doc/posix-functions/wcsnlen.texi: Likewise.
24406         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24407         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24408         * doc/posix-functions/wctrans_l.texi: Likewise.
24409         * doc/posix-functions/wctype_l.texi: Likewise.
24410         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24411         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24412         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24413         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24414         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24415         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24416         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24417         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24418         * doc/glibc-functions/wcschrnul.texi: Likewise.
24419         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24420         * doc/glibc-functions/wcstod_l.texi: Likewise.
24421         * doc/glibc-functions/wcstof_l.texi: Likewise.
24422         * doc/glibc-functions/wcstol_l.texi: Likewise.
24423         * doc/glibc-functions/wcstold_l.texi: Likewise.
24424         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24425         * doc/glibc-functions/wcstoq.texi: Likewise.
24426         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24427         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24428         * doc/glibc-functions/wcstouq.texi: Likewise.
24429         * doc/glibc-functions/wmempcpy.texi: Likewise.
24430
24431 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24432             Eric Blake  <ebb9@byu.net>
24433             Paolo Bonzini  <bonzini@gnu.org>
24434             Bruno Haible  <bruno@clisp.org>
24435
24436         Make c-stack work on Haiku.
24437         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24438         (c_stack_action): Use SA_ONSTACK flag.
24439
24440 2008-12-22  Bruno Haible  <bruno@clisp.org>
24441
24442         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24443
24444 2008-12-22  Bruno Haible  <bruno@clisp.org>
24445
24446         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24447         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24448         being overridden.
24449         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24450         New macros.
24451         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24453         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24454         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24455
24456 2008-12-22  Bruno Haible  <bruno@clisp.org>
24457
24458         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24459         from test code.
24460
24461 2008-12-22  Eric Blake  <ebb9@byu.net>
24462
24463         Avoid gcc warnings on cygwin.
24464         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24465         Avoid unused variable.
24466         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24467         Likewise.
24468
24469 2008-12-22  Bruno Haible  <bruno@clisp.org>
24470
24471         Remove HAVE_MBRTOWC conditionals.
24472         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24473         (mbscasecmp): Assume mbrtowc function.
24474         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24475         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24476         * lib/mbschr.c: Include mbuiter.h unconditionally.
24477         (mbschr): Assume mbrtowc function.
24478         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24479         (mbscspn): Assume mbrtowc function.
24480         * lib/mbslen.c: Include mbuiter.h unconditionally.
24481         (mbslen): Assume mbrtowc function.
24482         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24483         (mbsncasecmp): Assume mbrtowc function.
24484         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24485         (mbsnlen): Assume mbrtowc function.
24486         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24487         (mbspbrk): Assume mbrtowc function.
24488         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24489         (mbspcasecmp): Assume mbrtowc function.
24490         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24491         (mbsrchr): Assume mbrtowc function.
24492         * lib/mbssep.c: Include mbuiter.h unconditionally.
24493         (mbssep): Assume mbrtowc function.
24494         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24495         (mbsspn): Assume mbrtowc function.
24496         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24497         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24498         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24499         (mbstok_r): Assume mbrtowc function.
24500         * lib/propername.c: Include mbuiter.h unconditionally.
24501         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24502         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24503         (trim2): Assume mbrtowc function.
24504         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24505         (mbsnwidth): Assume mbrtowc function.
24506         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24507         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24508         fallback definitions.
24509         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24510
24511 2008-12-22  Bruno Haible  <bruno@clisp.org>
24512
24513         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24514
24515 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24516
24517         * modules/regex: Request emulations for the mb*/wc* functions we need.
24518         * m4/regex.m4: Don't look for those functions here.
24519         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24520
24521 2008-12-22  Bruno Haible  <bruno@clisp.org>
24522
24523         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24524
24525 2008-12-21  Bruno Haible  <bruno@clisp.org>
24526
24527         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24528         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24529         (Include): Remove conditionalization.
24530         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24531         (Include): Remove conditionalization.
24532         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24533         (Include): Remove conditionalization.
24534         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24535         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24536         * NEWS: Mention the change.
24537         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24538         via Sergey Poznyakoff <gray@gnu.org.ua>.
24539
24540 2008-12-21  Bruno Haible  <bruno@clisp.org>
24541
24542         * MODULES.html.sh (Extended multibyte and wide character utilities
24543         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24544         wcrtomb, wcsrtombs.
24545         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24546         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24547         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24548         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24549
24550 2008-12-21  Bruno Haible  <bruno@clisp.org>
24551
24552         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24553
24554 2008-12-21  Bruno Haible  <bruno@clisp.org>
24555
24556         * modules/wcsnrtombs-tests: New file.
24557         * tests/test-wcsnrtombs1.sh: New file.
24558         * tests/test-wcsnrtombs2.sh: New file.
24559         * tests/test-wcsnrtombs3.sh: New file.
24560         * tests/test-wcsnrtombs4.sh: New file.
24561         * tests/test-wcsnrtombs.c: New file.
24562
24563         New module 'wcsnrtombs'.
24564         * lib/wchar.in.h (wcsnrtombs): New declaration.
24565         * lib/wcsnrtombs.c: New file.
24566         * lib/wcsrtombs-state.c: New file.
24567         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24568         (internal_state): Remove variable.
24569         * m4/wcsnrtombs.m4: New file.
24570         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24571         compilation units.
24572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24573         HAVE_WCSNRTOMBS.
24574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24575         HAVE_WCSNRTOMBS.
24576         * modules/wcsnrtombs: New file.
24577         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24578         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24579
24580 2008-12-21  Bruno Haible  <bruno@clisp.org>
24581
24582         * modules/wcsrtombs-tests: New file.
24583         * tests/test-wcsrtombs1.sh: New file.
24584         * tests/test-wcsrtombs2.sh: New file.
24585         * tests/test-wcsrtombs3.sh: New file.
24586         * tests/test-wcsrtombs4.sh: New file.
24587         * tests/test-wcsrtombs.c: New file.
24588
24589         New module 'wcsrtombs'.
24590         * lib/wchar.in.h (wcsrtombs): New declaration.
24591         * lib/wcsrtombs.c: New file.
24592         * m4/wcsrtombs.m4: New file.
24593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24594         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24596         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24597         * modules/wcsrtombs: New file.
24598         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24599         bugs.
24600
24601 2008-12-21  Bruno Haible  <bruno@clisp.org>
24602
24603         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24604         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24605         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24606         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24607         if not correct.
24608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24609         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24610         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24611         m4/locale-zh.m4, m4/codeset.m4.
24612         * doc/posix-functions/wcrtomb.texi: Document the bug.
24613
24614 2008-12-21  Bruno Haible  <bruno@clisp.org>
24615
24616         Work around a btowc() bug on IRIX 6.5.
24617         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24618         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24619         REPLACE_WTOBC if not.
24620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24621         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24622         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24623
24624 2008-12-21  Bruno Haible  <bruno@clisp.org>
24625
24626         * modules/wcrtomb-tests: New file.
24627         * tests/test-wcrtomb.sh: New file.
24628         * tests/test-wcrtomb.c: New file.
24629
24630         New module 'wcrtomb'.
24631         * lib/wchar.in.h (wcrtomb): New declaration.
24632         * lib/wcrtomb.c: New file.
24633         * m4/wcrtomb.m4: New file.
24634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24635         HAVE_WCRTOMB.
24636         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24637         HAVE_WCRTOMB.
24638         * modules/wcrtomb: New file.
24639         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24640
24641 2008-12-21  Bruno Haible  <bruno@clisp.org>
24642
24643         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24644         * modules/mbsrtowcs (Files): Likewise.
24645         * modules/wctob (Files): Likewise.
24646         * modules/c-strcase-tests (Files): Likewise.
24647         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24648         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24649         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24650         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24651         * modules/vasnprintf-posix-tests (Files): Likewise.
24652
24653 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24654
24655         gitlog-to-changelog: pass all command-line arguments to git-log
24656         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24657         it is sometimes convenient to filter the commits in various ways.
24658         gitlog-to-changelog only allows --since to specify a start date,
24659         but git-log itself supports many other filtering mechanisms.
24660         At the moment, I want to filter by branch name.  Rather than
24661         adding a --branch option to gitlog-to-changelog, it seems more
24662         flexible to simply pass all options directly to git-log and let
24663         git do the work.  Notice that this effectively makes --since a
24664         redundant option for gitlog-to-changelog, but removing it would
24665         require current usage to change since calls would then require
24666         an additional '--'.
24667
24668 2008-12-21  Bruno Haible  <bruno@clisp.org>
24669
24670         * modules/mbsnrtowcs-tests: New file.
24671         * tests/test-mbsnrtowcs1.sh: New file.
24672         * tests/test-mbsnrtowcs2.sh: New file.
24673         * tests/test-mbsnrtowcs3.sh: New file.
24674         * tests/test-mbsnrtowcs4.sh: New file.
24675         * tests/test-mbsnrtowcs.c: New file.
24676
24677         New module 'mbsnrtowcs'.
24678         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24679         * lib/mbsnrtowcs.c: New file.
24680         * lib/mbsrtowcs-state.c: New file.
24681         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24682         (internal_state): Remove variable.
24683         * m4/mbsnrtowcs.m4: New file.
24684         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24685         compilation units.
24686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24687         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24688         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24689         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24690         * modules/mbsnrtowcs: New file.
24691         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24692         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24693         portability problem.
24694
24695 2008-12-21  Bruno Haible  <bruno@clisp.org>
24696
24697         Work around mbsrtowcs bug.
24698         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24699         (gl_FUNC_MBSRTOWCS): Invoke it.
24700         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24701         m4/locale-zh.m4.
24702         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24703
24704 2008-12-21  Bruno Haible  <bruno@clisp.org>
24705
24706         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24707
24708 2008-12-21  Bruno Haible  <bruno@clisp.org>
24709
24710         Update doc for AIX.
24711         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24712         16-bit wchar_t type.
24713         * doc/posix-functions/btowc.texi: Likewise.
24714         * doc/posix-functions/fgetwc.texi: Likewise.
24715         * doc/posix-functions/fgetws.texi: Likewise.
24716         * doc/posix-functions/fputwc.texi: Likewise.
24717         * doc/posix-functions/fputws.texi: Likewise.
24718         * doc/posix-functions/fwide.texi: Likewise.
24719         * doc/posix-functions/fwprintf.texi: Likewise.
24720         * doc/posix-functions/fwscanf.texi: Likewise.
24721         * doc/posix-functions/getwchar.texi: Likewise.
24722         * doc/posix-functions/getwc.texi: Likewise.
24723         * doc/posix-functions/iswalnum.texi: Likewise.
24724         * doc/posix-functions/iswalpha.texi: Likewise.
24725         * doc/posix-functions/iswblank.texi: Likewise.
24726         * doc/posix-functions/iswcntrl.texi: Likewise.
24727         * doc/posix-functions/iswctype.texi: Likewise.
24728         * doc/posix-functions/iswdigit.texi: Likewise.
24729         * doc/posix-functions/iswgraph.texi: Likewise.
24730         * doc/posix-functions/iswlower.texi: Likewise.
24731         * doc/posix-functions/iswprint.texi: Likewise.
24732         * doc/posix-functions/iswpunct.texi: Likewise.
24733         * doc/posix-functions/iswspace.texi: Likewise.
24734         * doc/posix-functions/iswupper.texi: Likewise.
24735         * doc/posix-functions/iswxdigit.texi: Likewise.
24736         * doc/posix-functions/mbrtowc.texi: Likewise.
24737         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24738         * doc/posix-functions/mbstowcs.texi: Likewise.
24739         * doc/posix-functions/mbtowc.texi: Likewise.
24740         * doc/posix-functions/putwchar.texi: Likewise.
24741         * doc/posix-functions/putwc.texi: Likewise.
24742         * doc/posix-functions/swprintf.texi: Likewise.
24743         * doc/posix-functions/tolower.texi: Likewise.
24744         * doc/posix-functions/toupper.texi: Likewise.
24745         * doc/posix-functions/towctrans.texi: Likewise.
24746         * doc/posix-functions/ungetwc.texi: Likewise.
24747         * doc/posix-functions/vswprintf.texi: Likewise.
24748         * doc/posix-functions/wcrtomb.texi: Likewise.
24749         * doc/posix-functions/wcscat.texi: Likewise.
24750         * doc/posix-functions/wcschr.texi: Likewise.
24751         * doc/posix-functions/wcscmp.texi: Likewise.
24752         * doc/posix-functions/wcscoll.texi: Likewise.
24753         * doc/posix-functions/wcscpy.texi: Likewise.
24754         * doc/posix-functions/wcscspn.texi: Likewise.
24755         * doc/posix-functions/wcsftime.texi: Likewise.
24756         * doc/posix-functions/wcslen.texi: Likewise.
24757         * doc/posix-functions/wcsncat.texi: Likewise.
24758         * doc/posix-functions/wcsncmp.texi: Likewise.
24759         * doc/posix-functions/wcsncpy.texi: Likewise.
24760         * doc/posix-functions/wcspbrk.texi: Likewise.
24761         * doc/posix-functions/wcsrchr.texi: Likewise.
24762         * doc/posix-functions/wcsrtombs.texi: Likewise.
24763         * doc/posix-functions/wcsspn.texi: Likewise.
24764         * doc/posix-functions/wcsstr.texi: Likewise.
24765         * doc/posix-functions/wcstod.texi: Likewise.
24766         * doc/posix-functions/wcstof.texi: Likewise.
24767         * doc/posix-functions/wcstoimax.texi: Likewise.
24768         * doc/posix-functions/wcstok.texi: Likewise.
24769         * doc/posix-functions/wcstold.texi: Likewise.
24770         * doc/posix-functions/wcstoll.texi: Likewise.
24771         * doc/posix-functions/wcstol.texi: Likewise.
24772         * doc/posix-functions/wcstombs.texi: Likewise.
24773         * doc/posix-functions/wcstoull.texi: Likewise.
24774         * doc/posix-functions/wcstoul.texi: Likewise.
24775         * doc/posix-functions/wcstoumax.texi: Likewise.
24776         * doc/posix-functions/wcswidth.texi: Likewise.
24777         * doc/posix-functions/wcsxfrm.texi: Likewise.
24778         * doc/posix-functions/wctob.texi: Likewise.
24779         * doc/posix-functions/wctomb.texi: Likewise.
24780         * doc/posix-functions/wctrans.texi: Likewise.
24781         * doc/posix-functions/wctype.texi: Likewise.
24782         * doc/posix-functions/wcwidth.texi: Likewise.
24783         * doc/posix-functions/wmemchr.texi: Likewise.
24784         * doc/posix-functions/wmemcmp.texi: Likewise.
24785         * doc/posix-functions/wmemcpy.texi: Likewise.
24786         * doc/posix-functions/wmemmove.texi: Likewise.
24787         * doc/posix-functions/wmemset.texi: Likewise.
24788         * doc/posix-functions/wprintf.texi: Likewise.
24789         * doc/posix-functions/wscanf.texi: Likewise.
24790
24791 2008-12-21  Bruno Haible  <bruno@clisp.org>
24792
24793         Update doc for HP-UX 11.11.
24794         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24795         in HP-UX version 11.00, not in all versions of HP-UX 11.
24796         * doc/posix-functions/fwide.texi: Likewise.
24797         * doc/posix-functions/fwprintf.texi: Likewise.
24798         * doc/posix-functions/fwscanf.texi: Likewise.
24799         * doc/posix-functions/inet_ntop.texi: Likewise.
24800         * doc/posix-functions/inet_pton.texi: Likewise.
24801         * doc/posix-functions/mbrlen.texi: Likewise.
24802         * doc/posix-functions/mbrtowc.texi: Likewise.
24803         * doc/posix-functions/mbsinit.texi: Likewise.
24804         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24805         * doc/posix-functions/swprintf.texi: Likewise.
24806         * doc/posix-functions/swscanf.texi: Likewise.
24807         * doc/posix-functions/towctrans.texi: Likewise.
24808         * doc/posix-functions/vfwprintf.texi: Likewise.
24809         * doc/posix-functions/vswprintf.texi: Likewise.
24810         * doc/posix-functions/vwprintf.texi: Likewise.
24811         * doc/posix-functions/wcrtomb.texi: Likewise.
24812         * doc/posix-functions/wcsrtombs.texi: Likewise.
24813         * doc/posix-functions/wcsstr.texi: Likewise.
24814         * doc/posix-functions/wctob.texi: Likewise.
24815         * doc/posix-functions/wctrans.texi: Likewise.
24816         * doc/posix-functions/wmemchr.texi: Likewise.
24817         * doc/posix-functions/wmemcmp.texi: Likewise.
24818         * doc/posix-functions/wmemcpy.texi: Likewise.
24819         * doc/posix-functions/wmemmove.texi: Likewise.
24820         * doc/posix-functions/wmemset.texi: Likewise.
24821         * doc/posix-functions/wprintf.texi: Likewise.
24822         * doc/posix-functions/wscanf.texi: Likewise.
24823
24824 2008-12-21  Bruno Haible  <bruno@clisp.org>
24825
24826         Work around a portability problem.
24827         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24828         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24829
24830 2008-12-20  Bruno Haible  <bruno@clisp.org>
24831
24832         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24833         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24834         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24836         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24837
24838         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24839         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24840         set.
24841         (GNULIB_defined_mbstate_t): New macro.
24842         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24843         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24844         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24845         reuses the system's mbrtowc function but works around the bugs.
24846         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24847         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24848         macros.
24849         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24850         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24851         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24852         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24853         REPLACE_MBSINIT if mbsinit needs to be overridden.
24854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24855         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24856         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24857         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24858         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24859         m4/locale-zh.m4.
24860         (Depends): Add mbsinit.
24861         * modules/mbsinit (Depends): Add mbrtowc.
24862         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24863
24864 2008-12-20  Bruno Haible  <bruno@clisp.org>
24865
24866         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24867         so that there are no conversion errors on AIX.
24868         * tests/test-mbsrtowcs.c (main): LIkewise.
24869
24870 2008-12-20  Bruno Haible  <bruno@clisp.org>
24871
24872         Work around wctob bug on Solaris <= 9.
24873         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24874         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24876         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24877         * modules/wctob (Files): Add m4/locale-fr.m4.
24878         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24879
24880 2008-12-20  Bruno Haible  <bruno@clisp.org>
24881
24882         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24883         /dev/null.
24884         * tests/test-select-in.sh: Likewise.
24885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24886
24887 2008-12-20  Bruno Haible  <bruno@clisp.org>
24888
24889         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24890         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24891         Cygwin 1.5.x.
24892
24893 2008-12-20  Bruno Haible  <bruno@clisp.org>
24894
24895         Ensure mbstate_t is defined on HP-UX 11.11.
24896         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24897         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24898         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24899         AC_USE_SYSTEM_EXTENSIONS.
24900         * modules/fnmatch (Depends-on): Add extensions.
24901         * modules/mbrlen (Depends-on): Likewise.
24902         * modules/mbrtowc (Depends-on): Likewise.
24903         * modules/mbsinit (Depends-on): Likewise.
24904         * modules/mbsrtowcs (Depends-on): Likewise.
24905         * modules/mbswidth (Depends-on): Likewise.
24906         * modules/quotearg (Depends-on): Likewise.
24907         * modules/strftime (Depends-on): Likewise.
24908
24909 2008-12-20  Bruno Haible  <bruno@clisp.org>
24910
24911         Ensure wctob is declared on IRIX 6.5.
24912         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24913         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24914         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24916         of HAVE_WCTOB.
24917         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24918         HAVE_WCTOB.
24919         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24920
24921 2008-12-19  Bruno Haible  <bruno@clisp.org>
24922
24923         * modules/mbsrtowcs-tests: New file.
24924         * tests/test-mbsrtowcs1.sh: New file.
24925         * tests/test-mbsrtowcs2.sh: New file.
24926         * tests/test-mbsrtowcs3.sh: New file.
24927         * tests/test-mbsrtowcs4.sh: New file.
24928         * tests/test-mbsrtowcs.c: New file.
24929
24930         New module 'mbsrtowcs'.
24931         * lib/wchar.in.h (mbsrtowcs): New declaration.
24932         * lib/mbsrtowcs.c: New file.
24933         * m4/mbsrtowcs.m4: New file.
24934         * modules/mbsrtowcs: New file.
24935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
24936         HAVE_MBSRTOWCS.
24937         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
24938         HAVE_MBSRTOWCS.
24939         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
24940
24941 2008-12-19  Bruno Haible  <bruno@clisp.org>
24942
24943         New module 'mbrlen'.
24944         * lib/wchar.in.h (mbrlen): New declaration.
24945         * lib/mbrlen.c: New file.
24946         * m4/mbrlen.m4: New file.
24947         * modules/mbrlen: New file.
24948         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
24949         HAVE_MBRLEN.
24950         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
24951         HAVE_MBRLEN.
24952         * doc/posix-functions/mbrlen.texi: Document the new module.
24953
24954 2008-12-19  Bruno Haible  <bruno@clisp.org>
24955
24956         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
24957         * modules/mbrtowc (Depends-on): Add verify.
24958         Suggested by Paul Eggert.
24959
24960 2008-12-18  Bruno Haible  <bruno@clisp.org>
24961
24962         * modules/mbsinit-tests: New file.
24963         * tests/test-mbsinit.sh: New file.
24964         * tests/test-mbsinit.c: New file.
24965
24966 2008-12-18  Bruno Haible  <bruno@clisp.org>
24967
24968         * modules/mbrtowc-tests: New file.
24969         * tests/test-mbrtowc1.sh: New file.
24970         * tests/test-mbrtowc2.sh: New file.
24971         * tests/test-mbrtowc3.sh: New file.
24972         * tests/test-mbrtowc4.sh: New file.
24973         * tests/test-mbrtowc.c: New file.
24974
24975         New module 'mbrtowc'.
24976         * lib/wchar.in.h (mbstate_t): Override when the system does not have
24977         mbsinit and mbrtowc.
24978         (mbrtowc): New declaration.
24979         * lib/mbrtowc.c: New file.
24980         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
24981         * modules/mbrtowc: New file.
24982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
24983         HAVE_MBRTOWC.
24984         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
24985         HAVE_MBRTOWC.
24986         * doc/posix-functions/mbrtowc.texi: Document the new module.
24987
24988 2008-12-18  Bruno Haible  <bruno@clisp.org>
24989
24990         New module 'wctob'.
24991         * lib/wchar.in.h (wctob): New declaration.
24992         * lib/wctob.c: New file.
24993         * m4/wctob.m4: New file.
24994         * modules/wctob: New file.
24995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
24996         HAVE_WCTOB.
24997         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
24998         * doc/posix-functions/wctob.texi: Document the new module.
24999
25000 2008-12-18  Bruno Haible  <bruno@clisp.org>
25001
25002         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25003         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25004
25005 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25006
25007         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25008         G. Christensen" <tgc@jupiterrise.com>.
25009
25010         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25011         G. Christensen" <tgc@jupiterrise.com>.
25012
25013         * lib/flock.c: Need to include string.h.  Reported by "Tom
25014         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25015         <ebb9@byu.net>.
25016
25017 2008-12-18  Bruno Haible  <bruno@clisp.org>
25018
25019         * m4/locale-ja.m4: New file, from GNU gettext.
25020
25021 2008-12-17  Bruno Haible  <bruno@clisp.org>
25022
25023         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25024         Suggested by Eric Blake.
25025
25026 2008-12-17  Bruno Haible  <bruno@clisp.org>
25027
25028         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25029
25030 2008-12-17  Bruno Haible  <bruno@clisp.org>
25031
25032         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25033         * modules/mbsinit (Depends-on): Add verify.
25034         Suggested by Paul Eggert.
25035
25036 2008-12-17  Bruno Haible  <bruno@clisp.org>
25037
25038         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25039         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25040         gl_FUNC_MBRTOWC.
25041         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25042         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25043         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25044         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25045         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25046         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25047         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25048         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25049         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25050         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25051         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25052         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25053         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25054         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25055         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25056         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25057         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25058         * modules/trim (configure.ac): Likewise.
25059
25060 2008-12-17  Bruno Haible  <bruno@clisp.org>
25061
25062         * modules/btowc-tests: New file.
25063         * tests/test-btowc1.sh: New file.
25064         * tests/test-btowc2.sh: New file.
25065         * tests/test-btowc.c: New file.
25066
25067         New module 'btowc'.
25068         * lib/wchar.in.h (btowc): New declaration.
25069         * lib/btowc.c: New file.
25070         * m4/btowc.m4: New file.
25071         * modules/btowc: New file.
25072         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25073         HAVE_BTOWC.
25074         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25075         * doc/posix-functions/btowc.texi: Document the new module.
25076
25077 2008-12-17  Bruno Haible  <bruno@clisp.org>
25078
25079         New module 'mbsinit'.
25080         * lib/wchar.in.h (mbsinit): New declaration.
25081         * lib/mbsinit.c: New file.
25082         * m4/mbsinit.m4: New file.
25083         * modules/mbsinit: New file.
25084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25085         HAVE_MBSINIT.
25086         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25087         HAVE_MBSINIT.
25088         * doc/posix-functions/mbsinit.texi: Document the new module.
25089
25090 2008-12-16  Bruno Haible  <bruno@clisp.org>
25091
25092         * lib/unistd.in.h: Add comment.
25093         * tests/test-environ.c: Don't include <stdlib.h>.
25094
25095 2008-12-16  Bruno Haible  <bruno@clisp.org>
25096
25097         * lib/parse-duration.h (parse_duration): Document return value
25098         convention.
25099         * lib/parse-duration.c: Include specification header first. Add
25100         comments.
25101         (_): Remove macro.
25102         (parse_year_month_day, parse_hour_minute_second): Move side effects
25103         outside of strchr call.
25104         (parse_non_iso8601): Move side effects outside of isspace call.
25105         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25106         call.
25107
25108 2008-12-16  Bruno Haible  <bruno@clisp.org>
25109
25110         * tests/test-parse-duration.sh: Produce no output when the test
25111         succeeds.
25112
25113 2008-12-16  Bruno Haible  <bruno@clisp.org>
25114
25115         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25116         expressions.
25117
25118 2008-12-15  Bruno Haible  <bruno@clisp.org>
25119
25120         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25121         * doc/glibc-functions/flistxattr.texi: Likewise.
25122         * doc/glibc-functions/fopencookie.texi: Likewise.
25123         * doc/glibc-functions/fremovexattr.texi: Likewise.
25124         * doc/glibc-functions/fsetxattr.texi: Likewise.
25125         * doc/glibc-functions/getxattr.texi: Likewise.
25126         * doc/glibc-functions/lgetxattr.texi: Likewise.
25127         * doc/glibc-functions/listxattr.texi: Likewise.
25128         * doc/glibc-functions/llistxattr.texi: Likewise.
25129         * doc/glibc-functions/lremovexattr.texi: Likewise.
25130         * doc/glibc-functions/lsetxattr.texi: Likewise.
25131         * doc/glibc-functions/removexattr.texi: Likewise.
25132         * doc/glibc-functions/setxattr.texi: Likewise.
25133         * doc/posix-functions/open_memstream.texi: Likewise.
25134
25135 2008-12-15  Eric Blake  <ebb9@byu.net>
25136
25137         Update doc for cygwin 1.7.
25138         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25139         functions.
25140         * doc/posix-functions/fchmodat.texi: Likewise.
25141         * doc/posix-functions/fchownat.texi: Likewise.
25142         * doc/posix-functions/fdopendir.texi: Likewise.
25143         * doc/posix-functions/fmemopen.texi: Likewise.
25144         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25145         * doc/posix-functions/fstatat.texi: Likewise.
25146         * doc/posix-functions/futimens.texi: Likewise.
25147         * doc/posix-functions/gai_strerror.texi: Likewise.
25148         * doc/posix-functions/getaddrinfo.texi: Likewise.
25149         * doc/posix-functions/getnameinfo.texi: Likewise.
25150         * doc/posix-functions/if_freenameindex.texi: Likewise.
25151         * doc/posix-functions/if_indextoname.texi: Likewise.
25152         * doc/posix-functions/if_nameindex.texi: Likewise.
25153         * doc/posix-functions/if_nametoindex.texi: Likewise.
25154         * doc/posix-functions/insque.texi: Likewise.
25155         * doc/posix-functions/linkat.texi: Likewise.
25156         * doc/posix-functions/llrint.texi: Likewise.
25157         * doc/posix-functions/llrintf.texi: Likewise.
25158         * doc/posix-functions/llrintl.texi: Likewise.
25159         * doc/posix-functions/lockf.texi: Likewise.
25160         * doc/posix-functions/lrintl.texi: Likewise.
25161         * doc/posix-functions/mkdirat.texi: Likewise.
25162         * doc/posix-functions/mkfifoat.texi: Likewise.
25163         * doc/posix-functions/mknodat.texi: Likewise.
25164         * doc/posix-functions/mq_close.texi: Likewise.
25165         * doc/posix-functions/mq_getattr.texi: Likewise.
25166         * doc/posix-functions/mq_notify.texi: Likewise.
25167         * doc/posix-functions/mq_open.texi: Likewise.
25168         * doc/posix-functions/mq_receive.texi: Likewise.
25169         * doc/posix-functions/mq_send.texi: Likewise.
25170         * doc/posix-functions/mq_setattr.texi: Likewise.
25171         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25172         * doc/posix-functions/mq_timedsend.texi: Likewise.
25173         * doc/posix-functions/mq_unlink.texi: Likewise.
25174         * doc/posix-functions/open_memstream.texi: Likewise.
25175         * doc/posix-functions/openat.texi: Likewise.
25176         * doc/posix-functions/posix_fadvise.texi: Likewise.
25177         * doc/posix-functions/posix_fallocate.texi: Likewise.
25178         * doc/posix-functions/posix_madvise.texi: Likewise.
25179         * doc/posix-functions/posix_memalign.texi: Likewise.
25180         * doc/posix-functions/posix_openpt.texi: Likewise.
25181         * doc/posix-functions/readlinkat.texi: Likewise.
25182         * doc/posix-functions/remque.texi: Likewise.
25183         * doc/posix-functions/renameat.texi: Likewise.
25184         * doc/posix-functions/rintl.texi: Likewise.
25185         * doc/posix-functions/sem_unlink.texi: Likewise.
25186         * doc/posix-functions/shm_open.texi: Likewise.
25187         * doc/posix-functions/shm_unlink.texi: Likewise.
25188         * doc/posix-functions/signgam.texi: Likewise.
25189         * doc/posix-functions/sigset.texi: Likewise.
25190         * doc/posix-functions/stpcpy.texi: Likewise.
25191         * doc/posix-functions/stpncpy.texi: Likewise.
25192         * doc/posix-functions/strerror.texi: Likewise.
25193         * doc/posix-functions/strtod.texi: Likewise.
25194         * doc/posix-functions/symlinkat.texi: Likewise.
25195         * doc/posix-functions/unlinkat.texi: Likewise.
25196         * doc/posix-functions/utimensat.texi: Likewise.
25197         * doc/glibc-functions/bindresvport.texi: Likewise.
25198         * doc/glibc-functions/dn_expand.texi: Likewise.
25199         * doc/glibc-functions/exp10.texi: Likewise.
25200         * doc/glibc-functions/exp10f.texi: Likewise.
25201         * doc/glibc-functions/fgetxattr.texi: Likewise.
25202         * doc/glibc-functions/flistxattr.texi: Likewise.
25203         * doc/glibc-functions/fopencookie.texi: Likewise.
25204         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25205         * doc/glibc-functions/fremovexattr.texi: Likewise.
25206         * doc/glibc-functions/fsetxattr.texi: Likewise.
25207         * doc/glibc-functions/getifaddrs.texi: Likewise.
25208         * doc/glibc-functions/getxattr.texi: Likewise.
25209         * doc/glibc-functions/lgetxattr.texi: Likewise.
25210         * doc/glibc-functions/listxattr.texi: Likewise.
25211         * doc/glibc-functions/llistxattr.texi: Likewise.
25212         * doc/glibc-functions/lremovexattr.texi: Likewise.
25213         * doc/glibc-functions/lsetxattr.texi: Likewise.
25214         * doc/glibc-functions/pow10.texi: Likewise.
25215         * doc/glibc-functions/pow10f.texi: Likewise.
25216         * doc/glibc-functions/rcmd_af.texi: Likewise.
25217         * doc/glibc-functions/removexattr.texi: Likewise.
25218         * doc/glibc-functions/res_init.texi: Likewise.
25219         * doc/glibc-functions/res_mkquery.texi: Likewise.
25220         * doc/glibc-functions/res_query.texi: Likewise.
25221         * doc/glibc-functions/res_querydomain.texi: Likewise.
25222         * doc/glibc-functions/res_send.texi: Likewise.
25223         * doc/glibc-functions/rresvport_af.texi: Likewise.
25224         * doc/glibc-functions/setxattr.texi: Likewise.
25225         * doc/glibc-functions/strcasestr.texi: Likewise.
25226
25227 2008-12-15  Bruno Haible  <bruno@clisp.org>
25228
25229         Fix compilation error on OSF/1 4.0.
25230         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25231         <sys/time.h>, simply delegate to the system header.
25232         Reported by Daniel Richard G. <oss@teragram.com>.
25233
25234 2008-12-15  Bruno Haible  <bruno@clisp.org>
25235
25236         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25237         * doc/posix-functions/fchmodat.texi: Likewise.
25238         * doc/posix-functions/fchownat.texi: Likewise.
25239         * doc/posix-functions/fdopendir.texi: Likewise.
25240         * doc/posix-functions/fstatat.texi: Likewise.
25241         * doc/posix-functions/mkdirat.texi: Likewise.
25242         * doc/posix-functions/unlinkat.texi: Likewise.
25243
25244 2008-12-14  Bruno Haible  <bruno@clisp.org>
25245
25246         Update doc for POSIX:2008.
25247         * doc/posix-functions/faccessat.texi: New file.
25248         * doc/posix-functions/fchmodat.texi: New file.
25249         * doc/posix-functions/fchownat.texi: New file.
25250         * doc/posix-functions/fdopendir.texi: New file.
25251         * doc/posix-functions/fstatat.texi: New file.
25252         * doc/posix-functions/futimens.texi: New file.
25253         * doc/posix-functions/linkat.texi: New file.
25254         * doc/posix-functions/mkdirat.texi: New file.
25255         * doc/posix-functions/mkfifoat.texi: New file.
25256         * doc/posix-functions/mknodat.texi: New file.
25257         * doc/posix-functions/open_wmemstream.texi: New file.
25258         * doc/posix-functions/openat.texi: New file.
25259         * doc/posix-functions/psiginfo.texi: New file.
25260         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25261         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25262         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25263         * doc/posix-functions/readlinkat.texi: New file.
25264         * doc/posix-functions/renameat.texi: New file.
25265         * doc/posix-functions/strerror_l.texi: New file.
25266         * doc/posix-functions/symlinkat.texi: New file.
25267         * doc/posix-functions/unlinkat.texi: New file.
25268         * doc/posix-functions/utimensat.texi: New file.
25269         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25270
25271 2008-12-14  Bruno Haible  <bruno@clisp.org>
25272
25273         Update doc for POSIX:2008.
25274         * doc/posix-functions/alphasort.texi: Renamed from
25275         doc/glibc-functions/alphasort.texi.
25276         * doc/posix-functions/dirfd.texi: Renamed from
25277         doc/glibc-functions/dirfd.texi.
25278         * doc/posix-functions/dprintf.texi: Renamed from
25279         doc/glibc-functions/dprintf.texi.
25280         * doc/posix-functions/duplocale.texi: Renamed from
25281         doc/glibc-functions/duplocale.texi.
25282         * doc/posix-functions/fexecve.texi: Renamed from
25283         doc/glibc-functions/fexecve.texi.
25284         * doc/posix-functions/fmemopen.texi: Renamed from
25285         doc/glibc-functions/fmemopen.texi.
25286         * doc/posix-functions/freelocale.texi: Renamed from
25287         doc/glibc-functions/freelocale.texi.
25288         * doc/posix-functions/getdate_err.texi: Renamed from
25289         doc/glibc-functions/getdate_err.texi.
25290         * doc/posix-functions/isalnum_l.texi: Renamed from
25291         doc/glibc-functions/isalnum_l.texi.
25292         * doc/posix-functions/isalpha_l.texi: Renamed from
25293         doc/glibc-functions/isalpha_l.texi.
25294         * doc/posix-functions/isblank_l.texi: Renamed from
25295         doc/glibc-functions/isblank_l.texi.
25296         * doc/posix-functions/iscntrl_l.texi: Renamed from
25297         doc/glibc-functions/iscntrl_l.texi.
25298         * doc/posix-functions/isdigit_l.texi: Renamed from
25299         doc/glibc-functions/isdigit_l.texi.
25300         * doc/posix-functions/isgraph_l.texi: Renamed from
25301         doc/glibc-functions/isgraph_l.texi.
25302         * doc/posix-functions/islower_l.texi: Renamed from
25303         doc/glibc-functions/islower_l.texi.
25304         * doc/posix-functions/isprint_l.texi: Renamed from
25305         doc/glibc-functions/isprint_l.texi.
25306         * doc/posix-functions/ispunct_l.texi: Renamed from
25307         doc/glibc-functions/ispunct_l.texi.
25308         * doc/posix-functions/isspace_l.texi: Renamed from
25309         doc/glibc-functions/isspace_l.texi.
25310         * doc/posix-functions/isupper_l.texi: Renamed from
25311         doc/glibc-functions/isupper_l.texi.
25312         * doc/posix-functions/iswalnum_l.texi: Renamed from
25313         doc/glibc-functions/iswalnum_l.texi.
25314         * doc/posix-functions/iswalpha_l.texi: Renamed from
25315         doc/glibc-functions/iswalpha_l.texi.
25316         * doc/posix-functions/iswblank_l.texi: Renamed from
25317         doc/glibc-functions/iswblank_l.texi.
25318         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25319         doc/glibc-functions/iswcntrl_l.texi.
25320         * doc/posix-functions/iswctype_l.texi: Renamed from
25321         doc/glibc-functions/iswctype_l.texi.
25322         * doc/posix-functions/iswdigit_l.texi: Renamed from
25323         doc/glibc-functions/iswdigit_l.texi.
25324         * doc/posix-functions/iswgraph_l.texi: Renamed from
25325         doc/glibc-functions/iswgraph_l.texi.
25326         * doc/posix-functions/iswlower_l.texi: Renamed from
25327         doc/glibc-functions/iswlower_l.texi.
25328         * doc/posix-functions/iswprint_l.texi: Renamed from
25329         doc/glibc-functions/iswprint_l.texi.
25330         * doc/posix-functions/iswpunct_l.texi: Renamed from
25331         doc/glibc-functions/iswpunct_l.texi.
25332         * doc/posix-functions/iswspace_l.texi: Renamed from
25333         doc/glibc-functions/iswspace_l.texi.
25334         * doc/posix-functions/iswupper_l.texi: Renamed from
25335         doc/glibc-functions/iswupper_l.texi.
25336         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25337         doc/glibc-functions/iswxdigit_l.texi.
25338         * doc/posix-functions/isxdigit_l.texi: Renamed from
25339         doc/glibc-functions/isxdigit_l.texi.
25340         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25341         doc/glibc-functions/mbsnrtowcs.texi.
25342         * doc/posix-functions/mkdtemp.texi: Renamed from
25343         doc/glibc-functions/mkdtemp.texi.
25344         * doc/posix-functions/newlocale.texi: Renamed from
25345         doc/glibc-functions/newlocale.texi.
25346         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25347         doc/glibc-functions/nl_langinfo_l.texi.
25348         * doc/posix-functions/open_memstream.texi: Renamed from
25349         doc/glibc-functions/open_memstream.texi.
25350         * doc/posix-functions/opterr.texi: Renamed from
25351         doc/glibc-functions/opterr.texi.
25352         * doc/posix-functions/optind.texi: Renamed from
25353         doc/glibc-functions/optind.texi.
25354         * doc/posix-functions/optopt.texi: Renamed from
25355         doc/glibc-functions/optopt.texi.
25356         * doc/posix-functions/psignal.texi: Renamed from
25357         doc/glibc-functions/psignal.texi.
25358         * doc/posix-functions/scandir.texi: Renamed from
25359         doc/glibc-functions/scandir.texi.
25360         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25361         doc/glibc-functions/sched_get_priority_min.texi.
25362         * doc/posix-functions/signgam.texi: Renamed from
25363         doc/glibc-functions/signgam.texi.
25364         * doc/posix-functions/stpcpy.texi: Renamed from
25365         doc/glibc-functions/stpcpy.texi.
25366         * doc/posix-functions/stpncpy.texi: Renamed from
25367         doc/glibc-functions/stpncpy.texi.
25368         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25369         doc/glibc-functions/strcasecmp_l.texi.
25370         * doc/posix-functions/strcoll_l.texi: Renamed from
25371         doc/glibc-functions/strcoll_l.texi.
25372         * doc/posix-functions/strfmon_l.texi: Renamed from
25373         doc/glibc-functions/strfmon_l.texi.
25374         * doc/posix-functions/strftime_l.texi: Renamed from
25375         doc/glibc-functions/strftime_l.texi.
25376         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25377         doc/glibc-functions/strncasecmp_l.texi.
25378         * doc/posix-functions/strndup.texi: Renamed from
25379         doc/glibc-functions/strndup.texi.
25380         * doc/posix-functions/strnlen.texi: Renamed from
25381         doc/glibc-functions/strnlen.texi.
25382         * doc/posix-functions/strsignal.texi: Renamed from
25383         doc/glibc-functions/strsignal.texi.
25384         * doc/posix-functions/strxfrm_l.texi: Renamed from
25385         doc/glibc-functions/strxfrm_l.texi.
25386         * doc/posix-functions/timer_gettime.texi: Renamed from
25387         doc/glibc-functions/timer_gettime.texi.
25388         * doc/posix-functions/tolower_l.texi: Renamed from
25389         doc/glibc-functions/tolower_l.texi.
25390         * doc/posix-functions/toupper_l.texi: Renamed from
25391         doc/glibc-functions/toupper_l.texi.
25392         * doc/posix-functions/towctrans_l.texi: Renamed from
25393         doc/glibc-functions/towctrans_l.texi.
25394         * doc/posix-functions/towlower_l.texi: Renamed from
25395         doc/glibc-functions/towlower_l.texi.
25396         * doc/posix-functions/towupper_l.texi: Renamed from
25397         doc/glibc-functions/towupper_l.texi.
25398         * doc/posix-functions/uselocale.texi: Renamed from
25399         doc/glibc-functions/uselocale.texi.
25400         * doc/posix-functions/vdprintf.texi: Renamed from
25401         doc/glibc-functions/vdprintf.texi.
25402         * doc/posix-functions/wcpcpy.texi:
25403         Renamed from doc/glibc-functions/wcpcpy.texi.
25404         * doc/posix-functions/wcpncpy.texi: Renamed from
25405         doc/glibc-functions/wcpncpy.texi.
25406         * doc/posix-functions/wcscasecmp.texi: Renamed from
25407         doc/glibc-functions/wcscasecmp.texi.
25408         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25409         doc/glibc-functions/wcscasecmp_l.texi.
25410         * doc/posix-functions/wcscoll_l.texi: Renamed from
25411         doc/glibc-functions/wcscoll_l.texi.
25412         * doc/posix-functions/wcsdup.texi: Renamed from
25413         doc/glibc-functions/wcsdup.texi.
25414         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25415         doc/glibc-functions/wcsncasecmp.texi.
25416         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25417         doc/glibc-functions/wcsncasecmp_l.texi.
25418         * doc/posix-functions/wcsnlen.texi: Renamed from
25419         doc/glibc-functions/wcsnlen.texi.
25420         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25421         doc/glibc-functions/wcsnrtombs.texi.
25422         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25423         doc/glibc-functions/wcsxfrm_l.texi.
25424         * doc/posix-functions/wctrans_l.texi: Renamed from
25425         doc/glibc-functions/wctrans_l.texi.
25426         * doc/posix-functions/wctype_l.texi: Renamed from
25427         doc/glibc-functions/wctype_l.texi.
25428         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25429         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25430         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25431         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25432         these subsections.
25433         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25434         Remove sections.
25435
25436 2008-12-14  Bruno Haible  <bruno@clisp.org>
25437
25438         Update doc for POSIX:2008.
25439         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25440
25441 2008-12-14  Bruno Haible  <bruno@clisp.org>
25442
25443         Update doc for POSIX:2008.
25444         * doc/pastposix-functions/bcmp.texi: Renamed from
25445         doc/posix-functions/bcmp.texi.
25446         * doc/pastposix-functions/bcopy.texi: Renamed from
25447         doc/posix-functions/bcopy.texi.
25448         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25449         doc/posix-functions/bsd_signal.texi.
25450         * doc/pastposix-functions/bzero.texi: Renamed from
25451         doc/posix-functions/bzero.texi.
25452         * doc/pastposix-functions/ecvt.texi: Renamed from
25453         doc/posix-functions/ecvt.texi.
25454         * doc/pastposix-functions/fcvt.texi: Renamed from
25455         doc/posix-functions/fcvt.texi.
25456         * doc/pastposix-functions/ftime.texi: Renamed from
25457         doc/posix-functions/ftime.texi.
25458         * doc/pastposix-functions/gcvt.texi: Renamed from
25459         doc/posix-functions/gcvt.texi.
25460         * doc/pastposix-functions/getcontext.texi: Renamed from
25461         doc/posix-functions/getcontext.texi.
25462         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25463         doc/posix-functions/gethostbyaddr.texi.
25464         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25465         doc/posix-functions/gethostbyname.texi.
25466         * doc/pastposix-functions/getwd.texi: Renamed from
25467         doc/posix-functions/getwd.texi.
25468         * doc/pastposix-functions/h_errno.texi: Renamed from
25469         doc/posix-functions/h_errno.texi.
25470         * doc/pastposix-functions/index.texi: Renamed from
25471         doc/posix-functions/index.texi.
25472         * doc/pastposix-functions/makecontext.texi: Renamed from
25473         doc/posix-functions/makecontext.texi.
25474         * doc/pastposix-functions/mktemp.texi: Renamed from
25475         doc/posix-functions/mktemp.texi.
25476         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25477         doc/posix-functions/pthread_attr_getstackaddr.texi.
25478         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25479         doc/posix-functions/pthread_attr_setstackaddr.texi.
25480         * doc/pastposix-functions/rindex.texi: Renamed from
25481         doc/posix-functions/rindex.texi.
25482         * doc/pastposix-functions/scalb.texi: Renamed from
25483         doc/posix-functions/scalb.texi.
25484         * doc/pastposix-functions/setcontext.texi: Renamed from
25485         doc/posix-functions/setcontext.texi.
25486         * doc/pastposix-functions/swapcontext.texi: Renamed from
25487         doc/posix-functions/swapcontext.texi.
25488         * doc/pastposix-functions/ualarm.texi: Renamed from
25489         doc/posix-functions/ualarm.texi.
25490         * doc/pastposix-functions/usleep.texi: Renamed from
25491         doc/posix-functions/usleep.texi.
25492         * doc/pastposix-functions/vfork.texi: Renamed from
25493         doc/posix-functions/vfork.texi.
25494         * doc/pastposix-functions/wcswcs.texi: Renamed from
25495         doc/posix-functions/wcswcs.texi.
25496         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25497         (Function Substitutes): Update.
25498
25499 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25500
25501         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25502         m4/strerror.m4.
25503
25504 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25505             Bruno Haible  <bruno@clisp.org>
25506
25507         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25508
25509 2008-12-13  Bruno Haible  <bruno@clisp.org>
25510
25511         * modules/strtoull (Depends-on): Remove unistd.
25512
25513 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25514
25515         * modules/strtoull (Depends-on): Add stdlib.
25516
25517 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25518
25519         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25520
25521 2008-12-10  Jim Meyering  <meyering@redhat.com>
25522
25523         gl_ASSERT: don't say assertions are disabled when they're not
25524         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25525         "checking whether to enable assertions... no", when they are in
25526         fact enabled.  This is solely a bug in the output of configure.
25527         In spite of saying "no", NDEBUG was not defined in that case.
25528         Also, as noted by Eric Blake, leave assertions enabled upon
25529         --enable-assert=INVALID.
25530
25531 2008-12-10  Bruno Haible  <bruno@clisp.org>
25532
25533         Change MODULES.html to refer to POSIX:2008 where possible.
25534         * MODULES.html.sh (POSIX2008_URL): New variable.
25535         (posix_headers): Remove sys/timeb, ucontext.
25536         (posix2001_headers): New variable.
25537         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25538         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25539         index, makecontext, mktemp, pthread_attr_getstackaddr,
25540         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25541         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25542         (posix2001_functions): New variable.
25543         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25544         otherwise.
25545
25546 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25547
25548         add missing include to parse-duration.c
25549         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25550         * modules/parse-duration (Depends-on): Add xalloc.
25551
25552         fix sed script reading maint.mk
25553         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25554         (syntax-check-rules): Use it.
25555
25556 2008-12-09  Bruno Haible  <bruno@clisp.org>
25557
25558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25559         MacOS X 10.4/PowerPC.
25560         Reported by Simon Josefsson.
25561
25562 2008-12-08  Jim Meyering  <meyering@redhat.com>
25563
25564         work around mingw's lack of some S_IF definitions
25565         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25566         Reported by Simon Josefsson.
25567
25568 2008-12-08  Bruno Haible  <bruno@clisp.org>
25569
25570         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25571         applied to variables. Needed on MacOS X 10.4/PowerPC.
25572         Reported by Simon Josefsson.
25573
25574 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25575         and Eric Blake  <ebb9@byu.net>
25576
25577         assert: honor --enable-assert
25578         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25579         order to honor --enable-assert, rather than treating it as a
25580         synonym for --disable-assert.
25581
25582 2008-12-08  Jim Meyering  <meyering@redhat.com>
25583
25584         * lib/posixtm.c: Remove now-useless declaration of mktime.
25585
25586         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25587
25588 2008-12-07  Bruno Haible  <bruno@clisp.org>
25589
25590         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25591         test_once): Mark functions as static.
25592         * tests/test-tls.c (test_tls): Likewise.
25593
25594 2008-12-07  Bruno Haible  <bruno@clisp.org>
25595
25596         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25597         iconv_register_autodetect.
25598
25599 2008-12-07  Jim Meyering  <meyering@redhat.com>
25600
25601         posixtm.c: avoid a warning
25602         * lib/posixtm.c (posixtime): Don't initialize tm0.
25603         It's no longer needed to placate gcc4's -Wuninitialized,
25604         and the attempt to placate would elicit a new warning.
25605
25606         unicodeio.c: mark unused parameters
25607         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25608         (fallback_failure_callback): Likewise.
25609
25610 2008-12-07  Bruno Haible  <bruno@clisp.org>
25611
25612         * gnulib-tool (func_create_testdir): When building the tests
25613         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25614         Reported by Simon Josefsson.
25615
25616 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25617
25618         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25619
25620 2008-12-06  Bruno Haible  <bruno@clisp.org>
25621
25622         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25623         Suggested by Eric Blake.
25624
25625 2008-12-06  Bruno Haible  <bruno@clisp.org>
25626
25627         Fix a c-stack test failure on MacOS X.
25628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25629         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25630         handler for SIGBUS as well.
25631         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25632         install a signal handler for SIGBUS as well.
25633         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25634
25635 2008-12-06  Bruno Haible  <bruno@clisp.org>
25636
25637         Advocacy documentation.
25638         * doc/gnulib-intro.texi (Benefits): New section.
25639         * doc/gnulib.texi: Update.
25640
25641 2008-12-06  Bruno Haible  <bruno@clisp.org>
25642
25643         Document the 'manywarnings' module.
25644         * doc/manywarnings.texi: New file.
25645         * doc/gnulib.texi: Include it.
25646
25647 2008-12-05  Eric Blake  <ebb9@byu.net>
25648
25649         tests: silence some gcc warnings
25650         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25651         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25652         type mismatches.
25653
25654 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25655             Bruno Haible  <bruno@clisp.org>
25656
25657         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25658
25659 2008-11-29  Jim Meyering  <meyering@redhat.com>
25660
25661         unicodeio.c: mark unused parameters
25662         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25663         (fallback_failure_callback): Likewise.
25664
25665         fts: fix a thinko
25666         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25667         (set_stat_type): Return S_IF*-valued "type" directly.
25668         Prompted by James Youngman's spotting a related bug.
25669         Confirmed by further testing through find.
25670
25671         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25672         * lib/fts.c (D_TYPE): Define.
25673         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25674         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25675         (s_ifmt_shift_bits): New function.
25676         (set_stat_type): New function.
25677         (fts_build): When not calling fts_stat, call set_stat_type
25678         to propagate dirent.d_type info to fts_read caller.
25679         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25680         fts_statp->st_mode type information may be valid.
25681
25682 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25683
25684         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25685         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25686         <sds@gnu.org>.
25687
25688 2008-11-20  Bruno Haible  <bruno@clisp.org>
25689
25690         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25691         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25692         INCLUDE_NEXT.
25693         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25694         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25695         * modules/math (Makefile.am): Substitute
25696         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25698
25699 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25700             Bruno Haible  <bruno@clisp.org>
25701
25702         * lib/stdint.in.h: Define all type macros so that their expansion is
25703         a single typedef'ed token. Fixes a compilation failure in Boost which
25704         does "using ::int8_t;".
25705
25706 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25707
25708         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25709         gl_MANYWARN_ALL_GCC.
25710         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25711         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25712         * modules/manywarnings: New file.
25713         * MODULES.html.sh: Mention manywarnings module.
25714
25715 2008-11-18  Bruno Haible  <bruno@clisp.org>
25716
25717         * doc/gnulib-tool.texi (Unit tests): New section.
25718
25719 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25720
25721         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25722         paths like 'lib/po/foo.po'.
25723
25724 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25725
25726         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25727         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25728
25729 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25730
25731         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25732         parameter works.
25733
25734 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25735
25736         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25737
25738 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25739
25740         * modules/parse-duration-tests: New file.
25741         * tests/test-parse-duration.sh: New file.
25742         * tests/test-parse-duration.c: New file.
25743
25744         New module 'parse-duration'.
25745         * lib/parse-duration.h: New file.
25746         * lib/parse-duration.c: New file.
25747         * modules/parse-duration: New file.
25748
25749 2008-11-17  Bruno Haible  <bruno@clisp.org>
25750
25751         * tests/test-select-out.sh: Comment out the first pipe test.
25752         Reported by Simon Josefsson.
25753
25754 2008-11-17  Bruno Haible  <bruno@clisp.org>
25755
25756         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25758         gl_HOSTENT.
25759
25760 2008-11-17  Bruno Haible  <bruno@clisp.org>
25761
25762         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25763         -lnetwork and -lnet. Needed for Haiku and BeOS.
25764
25765 2008-11-16  Bruno Haible  <bruno@clisp.org>
25766
25767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25768
25769 2008-11-16  Bruno Haible  <bruno@clisp.org>
25770
25771         Avoid test failure on Haiku.
25772         * tests/test-fsync.c: Include <errno.h>.
25773         (main): Don't require that fsync (0) fails.
25774
25775 2008-11-15  Bruno Haible  <bruno@clisp.org>
25776
25777         New module 'hostent'.
25778         * modules/hostent: New file.
25779         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25780
25781 2008-11-15  Bruno Haible  <bruno@clisp.org>
25782
25783         New module 'servent'.
25784         * modules/servent: New file.
25785         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25786
25787 2008-11-15  Bruno Haible  <bruno@clisp.org>
25788
25789         Avoid generating same test program with two different rules.
25790         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25791         test-frexp to test-frexp-nolibm.
25792         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25793         test-frexpl to test-frexpl-nolibm.
25794
25795 2008-11-15  Bruno Haible  <bruno@clisp.org>
25796
25797         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25798         $(FREXPL_LIBM).
25799
25800 2008-11-15  Bruno Haible  <bruno@clisp.org>
25801
25802         * lib/netdb.in.h: Activate the definitions also when the system's
25803         <netdb.h> has 'struct addrinfo'.
25804         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25805         EAI_OVERFLOW or AI_NUMERICSERV.
25806         * doc/posix-headers/netdb.texi: Document the problem.
25807
25808 2008-11-15  Bruno Haible  <bruno@clisp.org>
25809
25810         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25811
25812         Make the 'sched' module work on platforms where <sched.h> exists but
25813         is incomplete (such as Haiku).
25814         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25815         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25816         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25817         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25818         HAVE_STRUCT_SCHED_PARAM.
25819         * modules/sched (Depends-on): Add include_next.
25820         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25821         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25822         * doc/posix-headers/sched.texi: Document the issue.
25823
25824 2008-11-13  Jim Meyering  <meyering@redhat.com>
25825
25826         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25827         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25828         test would fail due to the difference in the Report bugs to ...
25829         line.  The expected address is empty, "<>", while the actual
25830         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25831
25832 2008-11-12  Bruno Haible  <bruno@clisp.org>
25833
25834         lstat: don't compile lstat.c on systems lacking lstat
25835         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25836         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25837         Reported by Daniel P. Berrange via Jim Meyering.
25838
25839 2008-11-12  Jim Meyering  <meyering@redhat.com>
25840
25841         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25842
25843 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25844
25845         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25846         instead.
25847
25848 2008-11-12  Bruno Haible  <bruno@clisp.org>
25849
25850         * lib/unicodeio.c: Include unistr.h.
25851         (utf8_wctomb): Remove function.
25852         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25853
25854 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25855
25856         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25857         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25858         <bruno@clisp.org>.
25859         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25860
25861 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25862
25863         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25864         * doc/gnulib.texi: Add section for warnings.
25865
25866 2008-11-11  Bruno Haible  <bruno@clisp.org>
25867
25868         * lib/sockets.h: Add a comment.
25869
25870 2008-11-11  Karl Berry  <karl@gnu.org>
25871
25872         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25873
25874 2008-11-11  Eric Blake  <ebb9@byu.net>
25875
25876         fdl.texi: avoid git symlinks
25877         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25878
25879 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25880
25881         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25882
25883 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25884
25885         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25886         (gl_WARN_ADD): Substitute $2 if literal.
25887
25888 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25889
25890         * m4/warning.m4: Remove.
25891
25892 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25893
25894         * m4/warnings.m4: Almost complete rewrite. :-)
25895
25896 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25897
25898         * modules/warnings: New module.
25899         * m4/warnings.m4: New file.
25900         * MODULES.html.sh: Mention warnings module.
25901         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25902         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25903
25904 2008-11-10  Eric Blake  <ebb9@byu.net>
25905
25906         fdl.texi: make a symlink to the latest version
25907         * doc/standards.texi: Revert today's earlier change.
25908         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25909         * doc/fdl.texi: ...and replace this with a symlink to the newer
25910         fdl-1.3.texi.
25911
25912 2008-11-10  Bruno Haible  <bruno@clisp.org>
25913
25914         * tests/test-select-fd.c (main): Accept the result file name as fourth
25915         argument.
25916         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25917         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25918
25919 2008-11-10  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25922         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25923         as autoconf-substituted macros.
25924         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25925         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25926         gl_NETDB_H_DEFAULTS. Set these variables.
25927         * modules/netdb (Makefile.am): Substitute these variables.
25928
25929 2008-11-10  Eric Blake  <ebb9@byu.net>
25930
25931         standards.texi: include correct file for FDL 1.3
25932         * doc/standards.texi (GNU Free Documentation License): Change
25933         include file to pull in FDL 1.3, not 1.2.
25934
25935         fdl.texi: revert accidental change to license
25936         * doc/fdl.texi: This is FDL 1.2, not 1.3.
25937
25938 2008-11-10  Bruno Haible  <bruno@clisp.org>
25939
25940         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
25941         cross-compiling guesses also when the native compile gives no result.
25942
25943 2008-11-10  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/spawni.c (__spawni): Force variable into the stack.
25946
25947 2008-11-10  Bruno Haible  <bruno@clisp.org>
25948
25949         Add support for Haiku.
25950         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
25951         glibc and BeOS, but also on Haiku.
25952         * lib/fpurge.c (fpurge): Likewise.
25953         * lib/freadable.c (freadable): Likewise.
25954         * lib/freadahead.c (freadahead): Likewise.
25955         * lib/freading.c (freading): Likewise.
25956         * lib/freadptr.c (freadptr): Likewise.
25957         * lib/freadseek.c (freadptrinc): Likewise.
25958         * lib/fseeko.c (rpl_fseeko): Likewise.
25959         * lib/fseterr.c (fseterr): Likewise.
25960         * lib/fwritable.c (fwritable): Likewise.
25961         * lib/fwriting.c (fwriting): Likewise.
25962         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
25963
25964 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25965
25966         * lib/config.charset: Treat Haiku like BeOS.
25967
25968 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25969
25970         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
25971         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
25972
25973 2008-11-08  Bruno Haible  <bruno@clisp.org>
25974
25975         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
25976         AC_CACHE_CHECK.
25977
25978 2008-11-08  Bruno Haible  <bruno@clisp.org>
25979
25980         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
25981
25982 2008-11-08  Bruno Haible  <bruno@clisp.org>
25983
25984         * tests/test-select-fd.c: New file.
25985         * tests/test-select-in.sh: New file.
25986         * tests/test-select-out.sh: New file.
25987         * tests/test-select-stdin.c: New file.
25988         * modules/select-tests (Files): Add the new files.
25989         (Depends-on): Add gettimeofday.
25990         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
25991         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
25992         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
25993
25994 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
25995             Bruno Haible  <bruno@clisp.org>
25996
25997         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
25998
25999 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26000
26001         * build-aux/pmccabe2html: Added support for C++ source files.
26002
26003 2008-11-05  Ben Pfaff  <blp@gnu.org>
26004
26005         Fix lib/close.c build on Windows.
26006         * modules/close (Files): Add lib/w32sock.h.
26007
26008 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26009
26010         Accept Bison's NEWS format.
26011         * build-aux/announce-gen (print_news_deltas): Tweak
26012         $re_prefix.
26013
26014 2008-11-04  Bruno Haible  <bruno@clisp.org>
26015
26016         * modules/random_r (Maintainer): Add glibc.
26017
26018 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26019
26020         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26021         by karl@freefriends.org (Karl Berry).
26022         * doc/alloca.texi: Likewise.
26023         * doc/c-ctype.texi: Likewise.
26024         * doc/c-strcase.texi: Likewise.
26025         * doc/c-strcaseeq.texi: Likewise.
26026         * doc/c-strcasestr.texi: Likewise.
26027         * doc/c-strstr.texi: Likewise.
26028         * doc/c-strtod.texi: Likewise.
26029         * doc/c-strtold.texi: Likewise.
26030         * doc/ctime.texi: Likewise.
26031         * doc/error.texi: Likewise.
26032         * doc/fdl.texi: Likewise.
26033         * doc/gcd.texi: Likewise.
26034         * doc/getdate.texi: Likewise.
26035         * doc/gnulib-intro.texi: Likewise.
26036         * doc/gnulib-tool.texi: Likewise.
26037         * doc/gnulib.texi: Likewise.
26038         * doc/inet_ntoa.texi: Likewise.
26039         * doc/maintain.texi: Likewise.
26040         * doc/make-stds.texi: Likewise.
26041         * doc/quote.texi: Likewise.
26042         * doc/regexprops-generic.texi: Likewise.
26043         * doc/standards.texi: Likewise.
26044         * doc/verify.texi: Likewise.
26045         * doc/visibility.texi: Likewise.
26046         * doc/gnulib.texi (GNU Free Documentation License): Include
26047         fdl-1.3.texi instead of fdl.texi.
26048
26049 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26050
26051         * doc/fdl-1.3.texi: New file, from
26052         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26053         * modules/fdl-1.3: Add.
26054         * MODULES.html.sh: Add fdl-1.3.
26055
26056 2008-11-03  Bruno Haible  <bruno@clisp.org>
26057
26058         Make determination of absolute name of header file work with AIX xlc.
26059         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26060         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26061         preprocessing.
26062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26063         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26064
26065 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26066
26067         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26068         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26069         <ludo@gnu.org>.
26070
26071 2008-11-02  Bruno Haible  <bruno@clisp.org>
26072
26073         Mark 'strpbrk' obsolete.
26074         * modules/strpbrk (Status, Notice): New sections.
26075         * modules/strtok_r (Depends-on): Add strpbrk.
26076
26077 2008-11-02  Bruno Haible  <bruno@clisp.org>
26078
26079         Mark 'strdup' obsolete.
26080         * modules/strdup (Status, Notice): New sections.
26081         * modules/findprog (Depends-on): Add strdup.
26082         * modules/getaddrinfo (Depends-on): Likewise.
26083         * modules/localename (Depends-on): Likewise.
26084         * modules/relocatable-lib (Depends-on): Likewise.
26085         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26086         * modules/relocatable-prog (Depends-on): Likewise.
26087         * modules/trim (Depends-on): Likewise.
26088         * modules/unictype/gen-ctype (Depends-on): Likewise.
26089         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26090
26091 2008-11-02  Bruno Haible  <bruno@clisp.org>
26092
26093         Mark 'strcspn' obsolete.
26094         * modules/strcspn (Status, Notice): New sections.
26095
26096 2008-11-02  Bruno Haible  <bruno@clisp.org>
26097
26098         Mark 'rmdir' obsolete.
26099         * modules/rmdir (Status, Notice): New sections.
26100         * modules/clean-temp (Depends-on): Add rmdir.
26101         * modules/openat (Depends-on): Likewise.
26102
26103 2008-11-02  Bruno Haible  <bruno@clisp.org>
26104
26105         Mark 'raise' obsolete.
26106         * modules/raise (Status, Notice): New sections.
26107         (Include): Specify <signal.h>.
26108         * modules/stdio (Depends-on): Add raise.
26109         * modules/write (Depends-on): Likewise.
26110
26111 2008-11-02  Bruno Haible  <bruno@clisp.org>
26112
26113         Mark 'memset' obsolete.
26114         * modules/memset (Status, Notice): New sections.
26115
26116 2008-11-02  Bruno Haible  <bruno@clisp.org>
26117
26118         Mark 'memmove' obsolete.
26119         * modules/memmove (Status, Notice): New sections.
26120         * modules/argp (Depends-on): Add memmove.
26121         * modules/argz (Depends-on): Likewise.
26122         * modules/canonicalize (Depends-on): Likewise.
26123         * modules/canonicalize-lgpl (Depends-on): Likewise.
26124         * modules/fts (Depends-on): Likewise.
26125         * modules/getcwd (Depends-on): Likewise.
26126         * modules/human (Depends-on): Likewise.
26127         * modules/regex (Depends-on): Likewise.
26128         * modules/striconveh (Depends-on): Likewise.
26129         * modules/trim (Depends-on): Likewise.
26130         * modules/unistr/u8-move (Depends-on): Likewise.
26131         * modules/unistr/u16-move (Depends-on): Likewise.
26132         * modules/unistr/u32-move (Depends-on): Likewise.
26133
26134 2008-11-02  Bruno Haible  <bruno@clisp.org>
26135
26136         Mark 'memcpy' obsolete.
26137         * modules/memcpy (Status, Notice): New sections.
26138
26139 2008-11-02  Bruno Haible  <bruno@clisp.org>
26140
26141         Mark 'memcmp' obsolete.
26142         * modules/memcmp (Status, Notice): New sections.
26143         * modules/argmatch (Depends-on): Add memchr.
26144         * modules/backupfile (Depends-on): Likewise.
26145         * modules/c-strcasestr (Depends-on): Likewise.
26146         * modules/crypto/des (Depends-on): Likewise.
26147         * modules/csharpcomp (Depends-on): Likewise.
26148         * modules/fnmatch (Depends-on): Likewise.
26149         * modules/git-merge-changelog (Depends-on): Likewise.
26150         * modules/isnand (Depends-on): Likewise.
26151         * modules/isnand-nolibm (Depends-on): Likewise.
26152         * modules/isnanf (Depends-on): Likewise.
26153         * modules/isnanf-nolibm (Depends-on): Likewise.
26154         * modules/isnanl (Depends-on): Likewise.
26155         * modules/isnanl-nolibm (Depends-on): Likewise.
26156         * modules/mbchar (Depends-on): Likewise.
26157         * modules/memcoll (Depends-on): Likewise.
26158         * modules/quotearg (Depends-on): Likewise.
26159         * modules/regex (Depends-on): Likewise.
26160         * modules/relocatable-prog (Depends-on): Likewise.
26161         * modules/same (Depends-on): Likewise.
26162         * modules/signbit (Depends-on): Likewise.
26163         * modules/strcasestr-simple (Depends-on): Likewise.
26164         * modules/unictype/gen-ctype (Depends-on): Likewise.
26165         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26166         * modules/uniname/uniname (Depends-on): Likewise.
26167         * modules/unistr/u8-cmp (Depends-on): Likewise.
26168
26169 2008-11-02  Bruno Haible  <bruno@clisp.org>
26170
26171         Mark 'memchr' obsolete.
26172         * modules/memchr (Status, Notice): New sections.
26173         * modules/argp (Depends-on): Add memchr.
26174         * modules/base64 (Depends-on): Likewise.
26175         * modules/c-strcasestr (Depends-on): Likewise.
26176         * modules/chdir-long (Depends-on): Likewise.
26177         * modules/fnmatch (Depends-on): Likewise.
26178         * modules/getsubopt (Depends-on): Likewise.
26179         * modules/git-merge-changelog (Depends-on): Likewise.
26180         * modules/glob (Depends-on): Likewise.
26181         * modules/strcasestr-simple (Depends-on): Likewise.
26182         * modules/strnlen (Depends-on): Likewise.
26183
26184 2008-11-02  Bruno Haible  <bruno@clisp.org>
26185
26186         Mark 'atexit' obsolete.
26187         * modules/atexit (Status, Notice): New sections.
26188         * modules/chdir-long (Depends-on): Add atexit.
26189         * modules/wait-process (Depends-on): Likewise.
26190
26191 2008-11-02  Bruno Haible  <bruno@clisp.org>
26192
26193         * gnulib-tool: New option --with-obsolete.
26194         (func_usage): Document it.
26195         (func_modules_transitive_closure): Drop obsolete dependencies if
26196         incobsolete is not true.
26197         (func_import): Read and save the incobsolete variable to the cache.
26198
26199 2008-11-02  Bruno Haible  <bruno@clisp.org>
26200
26201         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26202         * gnulib-tool: New option --extract-status.
26203         (func_usage): Document it.
26204         (sed_extract_prog): Recognize it.
26205         (func_get_status): New function.
26206
26207 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26208
26209         * modules/sockets (License): Change from LGPL to LGPLv2+.
26210
26211 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26212
26213         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26214
26215 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26216
26217         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26218         Mention times and sys_times.
26219         * modules/sys_times, modules/sys_times-tests: New modules.
26220         * modules/times, modules/times-tests: Likewise
26221         * m4/sys_times_h.m4: New file.
26222         * lib/sys_times.in.h: Likewise
26223         * lib/times.c: Likewise.
26224         * tests/test-sys_times.c: Likewise.
26225         * tests/test-times.c: Likewise.
26226         * doc/posix-headers/sys_times.texi: Update.
26227         * doc/posix-functions/times.texi: Update.
26228
26229 2008-10-28  Jim Meyering  <meyering@redhat.com>
26230
26231         * modules/tempname (Depends-on): Add lstat.
26232
26233         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26234
26235 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26236
26237         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26238         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26239         using idiom used elsewhere in gnulib.
26240
26241 2008-10-27  Jim Meyering  <meyering@redhat.com>
26242
26243         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26244
26245 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26246
26247         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26248         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26249         programs.
26250         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26251
26252 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26253
26254         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26255
26256 2008-10-27  Bruno Haible  <bruno@clisp.org>
26257
26258         * tests/test-lstat.c: Include <stdio.h>.
26259
26260 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26261
26262         * modules/lstat-tests: New module.
26263         * tests/test-lstat.c: New file.
26264
26265 2008-10-26  Jim Meyering  <meyering@redhat.com>
26266
26267         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26268
26269 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26270             Bruno Haible  <bruno@clisp.org>
26271
26272         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26273         * modules/configmake (Include): Add a note that the include must come
26274         after all system headers.
26275         * lib/javaversion.c: Include configmake.h after all other includes.
26276
26277 2008-10-26  Bruno Haible  <bruno@clisp.org>
26278
26279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26280         HAVE_STRUCT_RANDOM_DATA to 1.
26281         (gl_STDLIB_H): Simplify.
26282
26283 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26284
26285         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26286         substitute HAVE_STRUCT_RANDOM_DATA.
26287         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26288         random_data.
26289         * modules/stdlib (Makefile.am): Substitute
26290         HAVE_STRUCT_RANDOM_DATA.
26291
26292 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26293
26294         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26295         * doc/gnulib-intro.texi (Copyright): Likewise.
26296
26297 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26298
26299         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26300         findings.
26301
26302 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26303             Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/unistd.in.h: Include <winsock2.h>.
26306         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26307         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26308         Provide dummy declarations.
26309         (gethostname): Override.
26310         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26312         gl_PREREQ_SYS_H_WINSOCK2.
26313         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26314         * doc/posix-functions/gethostname.texi: More details.
26315
26316 2008-10-25  Bruno Haible  <bruno@clisp.org>
26317
26318         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26319         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26320         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26321
26322         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26323         here ...
26324         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26326         gl_UNISTD_H_DEFAULTS.
26327
26328 2008-10-25  Eric Blake  <ebb9@byu.net>
26329
26330         signbit: avoid spurious compiler failure
26331         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26332         declarations inside function.
26333
26334 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26335             Bruno Haible  <bruno@clisp.org>
26336
26337         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26338         * modules/random_r (Depends-on): Add stdint.
26339
26340 2008-10-24  Bruno Haible  <bruno@clisp.org>
26341
26342         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26343         Eggert.
26344         * modules/strerror (License): Likewise.
26345
26346 2008-10-24  Jim Meyering  <meyering@redhat.com>
26347
26348         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26349         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26350
26351 2008-10-24  Eric Blake  <ebb9@byu.net>
26352
26353         getgroups: fix compilation when getgroups is available
26354         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26355         but with <config.h> override of getgroups disabled.
26356
26357 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26358
26359         * doc/gnulib.texi (Header files): Add note about C++ problems.
26360         Explained by Bruno Haible <bruno@clisp.org>.
26361
26362 2008-10-23  Bruno Haible  <bruno@clisp.org>
26363
26364         Define a dummy SA_NODEFER macro on Interix.
26365         * lib/signal.in.h (SA_NODEFER): Define fallback.
26366         Reported by Aleksey Cheusov <cheusov@tut.by> via
26367         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26368
26369 2008-10-23  Bruno Haible  <bruno@clisp.org>
26370
26371         * modules/freadahead (License): Change to LGPLv2+.
26372         Suggested by Simon Josefsson.
26373
26374 2008-10-23  Jim Meyering  <meyering@redhat.com>
26375
26376         random_r: new module
26377         * modules/random_r: New file.
26378         * m4/random_r.m4: New file.
26379         * lib/random_r.c: New file, from glibc.
26380         * modules/random_r-tests: New file.
26381         * tests/test-random_r.c: New file.
26382         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26383          Declare.
26384         (RAND_MAX): Define.
26385         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26386         * modules/stdlib: Substitute them, too.
26387         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26388         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26389         * doc/glibc-functions/random_r.texi: Likewise.
26390         * doc/glibc-functions/setstate_r.texi: Likewise.
26391         * doc/glibc-functions/srandom_r.texi: Likewise.
26392         * config/srclist.txt: Mention it.
26393
26394 2008-10-23  David Lutterkort  <lutter@redhat.com>
26395
26396         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26397         link requirement
26398
26399 2008-10-23  Jim Meyering  <meyering@redhat.com>
26400
26401         selinux-h: mark parameters of stub functions as intentionally unused
26402         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26403         * lib/se-context.in.h: Likewise.
26404
26405 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26406
26407         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26408
26409 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26410
26411         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26412
26413 2008-10-22  Eric Blake  <ebb9@byu.net>
26414
26415         glthread/thread: avoid compiler warning
26416         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26417         Add unreachable abort to silence compiler.
26418
26419 2008-10-22  Eric Blake  <ebb9@byu.net>
26420
26421         netdb: also supply struct addrinfo for cygwin 1.5.x
26422         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26423         older cygwin.
26424         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26425         cygwin.
26426         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26427
26428 2008-10-22  Bruno Haible  <bruno@clisp.org>
26429
26430         * users.txt: Update entry about pspp.
26431
26432 2008-10-21  Bruno Haible  <bruno@clisp.org>
26433
26434         Simplification.
26435         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26436         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26437
26438         Simplification.
26439         * lib/ioctl.c (ioctl): Don't undefine.
26440         * lib/socket.c (socket): Don't undefine.
26441
26442         Remove unused module indicator macros.
26443         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26444         GNULIB_$1 as a C macro.
26445
26446         * doc/posix-functions/close.texi: Undo last change.
26447         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26448         Windows platforms.
26449
26450 2008-10-21  Bruno Haible  <bruno@clisp.org>
26451
26452         Add gethostname() declaration to <unistd.h>.
26453         * lib/unistd.in.h (gethostname): New declaration.
26454         * lib/gethostname.c: Include <unistd.h>.
26455         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26456         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26458         and HAVE_GETHOSTNAME.
26459         * modules/gethostname (Depends-on): Add unistd.
26460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26461         (Include): Specify <unistd.h>.
26462         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26463         HAVE_GETHOSTNAME.
26464         * tests/test-gethostname.c: Include <unistd.h> first.
26465
26466 2008-10-21  Bruno Haible  <bruno@clisp.org>
26467
26468         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26469         * modules/select-tests (Depends-on): Likewise.
26470         Reported by Simon Josefsson.
26471
26472 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26473
26474         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26475         * lib/accept.c: New file, based on winsock.c.
26476         * lib/bind.c: New file, based on winsock.c.
26477         * lib/connect.c: New file, based on winsock.c.
26478         * lib/getpeername.c: New file, based on winsock.c.
26479         * lib/getsockname.c: New file, based on winsock.c.
26480         * lib/getsockopt.c: New file, based on winsock.c.
26481         * lib/ioctl.c: New file, based on winsock.c.
26482         * lib/listen.c: New file, based on winsock.c.
26483         * lib/recv.c: New file, based on winsock.c.
26484         * lib/recvfrom.c: New file, based on winsock.c.
26485         * lib/send.c: New file, based on winsock.c.
26486         * lib/sendto.c: New file, based on winsock.c.
26487         * lib/setsockopt.c: New file, based on winsock.c.
26488         * lib/shutdown.c: New file, based on winsock.c.
26489         * lib/socket.c: New file, based on winsock.c.
26490         * lib/w32sock.h: New file, based on winsock.c.
26491         * lib/winsock.c: Remove file.
26492         * modules/accept: Likewise.
26493         * modules/bind: Likewise.
26494         * modules/connect: Likewise.
26495         * modules/getpeername: Likewise.
26496         * modules/getsockname: Likewise.
26497         * modules/getsockopt: Likewise.
26498         * modules/ioctl: Likewise.
26499         * modules/listen: Likewise.
26500         * modules/recv: Likewise.
26501         * modules/recvfrom: Likewise.
26502         * modules/send: Likewise.
26503         * modules/sendto: Likewise.
26504         * modules/setsockopt: Likewise.
26505         * modules/shutdown: Likewise.
26506         * modules/socket: Use socket.c instead of winsock.c.
26507         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26508         * doc/posix-functions/accept.texi: Doc fix.
26509         * doc/posix-functions/bind.texi: Doc fix.
26510         * doc/posix-functions/close.texi: Doc fix.
26511         * doc/posix-functions/connect.texi: Doc fix.
26512         * doc/posix-functions/getpeername.texi: Doc fix.
26513         * doc/posix-functions/getsockname.texi: Doc fix.
26514         * doc/posix-functions/getsockopt.texi: Doc fix.
26515         * doc/posix-functions/ioctl.texi: Doc fix.
26516         * doc/posix-functions/listen.texi: Doc fix.
26517         * doc/posix-functions/recv.texi: Doc fix.
26518         * doc/posix-functions/recvfrom.texi: Doc fix.
26519         * doc/posix-functions/send.texi: Doc fix.
26520         * doc/posix-functions/sendto.texi: Doc fix.
26521         * doc/posix-functions/setsockopt.texi: Doc fix.
26522         * doc/posix-functions/shutdown.texi: Doc fix.
26523         * doc/posix-functions/socket.texi: Doc fix.
26524
26525 2008-10-20  Bruno Haible  <bruno@clisp.org>
26526
26527         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26528         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26529         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26530         as an alias for SIGABRT.
26531         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26532         (sigaction): Map it to SIGABRT.
26533         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26534
26535 2008-10-20  Bruno Haible  <bruno@clisp.org>
26536
26537         * lib/fts.c: Don't include lstat.h.
26538         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26539
26540         Move the lstat() declaration to <sys/stat.h>.
26541         * lib/lstat.h: Remove file.
26542         * lib/sys_stat.in.h: Add special invocation convention.
26543         (lstat): New declaration.
26544         * lib/lstat.c (orig_lstat): New function.
26545         (rpl_lstat): Use orig_lstat instead of lstat.
26546         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26547         AC_C_INLINE. Set REPLACE_LSTAT.
26548         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26549         and REPLACE_LSTAT.
26550         * modules/lstat (Files): Remove lib/lstat.h.
26551         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26552         (Include): Specify <sys/stat.h> instead of lstat.h.
26553         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26554         REPLACE_LSTAT.
26555         * NEWS: Mention the change.
26556
26557 2008-10-20  Bruno Haible  <bruno@clisp.org>
26558
26559         * modules/posix_spawn-tests: New file.
26560         * tests/test-posix_spawn3.c: New file.
26561
26562 2008-10-20  Bruno Haible  <bruno@clisp.org>
26563
26564         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26565         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26566         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26567         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26568         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26569
26570 2008-10-20  Bruno Haible  <bruno@clisp.org>
26571
26572         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26573         of posix_spawn on AIX 5.3.
26574
26575 2008-10-20  Bruno Haible  <bruno@clisp.org>
26576
26577         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26578
26579 2008-10-20  Bruno Haible  <bruno@clisp.org>
26580
26581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26582         of AC_LANG_PROGRAM.
26583
26584 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26585
26586         * lib/netdb.in.h: Don't define GNU specific constants until they
26587         are supported or needed.  Reported by Bruno Haible
26588         <bruno@clisp.org>.
26589
26590 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26591
26592         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26593
26594 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26595
26596         * lib/getaddrinfo.h: Remove file.
26597         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26598         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26599         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26600         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26601         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26602         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26603         * tests/test-getaddrinfo.c: Likewise.
26604         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26605         * NEWS: Mention change.
26606
26607 2008-10-19  Bruno Haible  <bruno@clisp.org>
26608
26609         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26610
26611 2008-10-19  Bruno Haible  <bruno@clisp.org>
26612
26613         * lib/wait-process.c: Include simply <sys/wait.h>.
26614         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26615         WIFSTOPPED): Remove fallback definitions.
26616         * modules/wait-process (Depends-on): Add sys_wait.
26617
26618         New module 'sys_wait'.
26619         * modules/sys_wait: New file.
26620         * lib/sys_wait.in.h: New file, partially copied from
26621         lib/wait-process.c.
26622         * m4/sys_wait_h.m4: New file.
26623         * doc/posix-headers/sys_wait.texi: Mention the new module.
26624
26625 2008-10-19  Bruno Haible  <bruno@clisp.org>
26626
26627         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26628
26629 2008-10-19  Bruno Haible  <bruno@clisp.org>
26630
26631         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26632         * lib/wait-process.c (WAIT_T): Remove type.
26633         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26634         (wait_subprocess): Update.
26635
26636 2008-10-19  Bruno Haible  <bruno@clisp.org>
26637
26638         New module 'atoll'.
26639         * modules/atoll: New file.
26640         * lib/stdlib.in.h (atoll): New declaration.
26641         * lib/atoll.c: New file, from glibc with modifications.
26642         * m4/atoll.m4: New file.
26643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26644         HAVE_ATOLL.
26645         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26646         * doc/posix-functions/atoll.texi: Mention the new module.
26647
26648 2008-10-19  Bruno Haible  <bruno@clisp.org>
26649
26650         Add strtoull() declaration to <stdlib.h>.
26651         * lib/stdlib.in.h (strtoull): New declaration.
26652         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26653         Set HAVE_STRTOULL.
26654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26655         HAVE_STRTOULL.
26656         * modules/strtoull (Depends-on): Add stdlib.
26657         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26658         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26659         HAVE_STRTOULL.
26660
26661 2008-10-19  Bruno Haible  <bruno@clisp.org>
26662
26663         Add strtoll() declaration to <stdlib.h>.
26664         * lib/stdlib.in.h (strtoll): New declaration.
26665         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26666         Set HAVE_STRTOLL.
26667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26668         HAVE_STRTOLL.
26669         * modules/strtoll (Depends-on): Add stdlib.
26670         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26671         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26672
26673 2008-10-19  Bruno Haible  <bruno@clisp.org>
26674
26675         * modules/bcopy (Depends-on): Add strings.
26676         (Include): Specify <strings.h>.
26677
26678 2008-10-19  Bruno Haible  <bruno@clisp.org>
26679
26680         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26681
26682 2008-10-19  Bruno Haible  <bruno@clisp.org>
26683
26684         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26685         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26686         mingw.
26687
26688 2008-10-19  Bruno Haible  <bruno@clisp.org>
26689
26690         * lib/atanl.c: Don't include isnanl.h.
26691         * lib/cosl.c: Likewise.
26692         * lib/ldexpl.c: Likewise.
26693         * lib/logl.c: Likewise.
26694         * lib/sinl.c: Likewise.
26695         * lib/sqrtl.c: Likewise.
26696         * lib/tanl.c: Likewise.
26697
26698         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26699         * lib/isnanf.h: Remove file.
26700         * lib/isnand.h: Remove file.
26701         * lib/isnanl.h: Remove file.
26702         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26703         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26704         macros.
26705         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26706         HAVE_ISNANF, don't define it as a C macro.
26707         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26708         HAVE_ISNAND, don't define it as a C macro.
26709         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26710         HAVE_ISNANL, don't define it as a C macro.
26711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26712         HAVE_ISNAN[FDL].
26713         * modules/isnanf (Files): Remove lib/isnanf.h.
26714         (Depends-on): Add math.
26715         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26716         (Include): Specify <math.h> instead of isnanf.h.
26717         * modules/isnand (Files): Remove lib/isnand.h.
26718         (Depends-on): Add math.
26719         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26720         (Include): Specify <math.h> instead of isnand.h.
26721         * modules/isnanl (Files): Remove lib/isnanl.h.
26722         (Depends-on): Add math.
26723         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26724         (Include): Specify <math.h> instead of isnanl.h.
26725         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26726         HAVE_ISNAN[FDL].
26727         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26728         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26729         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26730         * NEWS: Mention the change.
26731
26732 2008-10-18  Bruno Haible  <bruno@clisp.org>
26733
26734         Add getusershell(), setusershell(), endusershell() declarations to
26735         <unistd.h>.
26736         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26737         declarations.
26738         * lib/getusershell.c: Include unistd.h.
26739         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26740         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26741         HAVE_GETUSERSHELL.
26742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26743         and HAVE_GETUSERSHELL.
26744         * modules/getusershell (Depends-on): Add unistd, extensions.
26745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26746         (Include): Specify <unistd.h>.
26747         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26748         HAVE_GETUSERSHELL.
26749
26750 2008-10-18  Bruno Haible  <bruno@clisp.org>
26751
26752         Add a getloadavg() declaration to <stdlib.h>.
26753         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26754         getloadavg declaration.
26755         (getloadavg): New declaration.
26756         * lib/getloadavg.c: Include <stdlib.h> first.
26757         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26758         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26759         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26761         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26762         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26763         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26764         (Include): Specify <stdlib.h>.
26765         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26766         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26767
26768 2008-10-18  Bruno Haible  <bruno@clisp.org>
26769
26770         * lib/dirchownmod.c: Don't include lchmod.h.
26771
26772         Move the lchmod() declaration to <sys/stat.h>.
26773         * lib/lchmod.h: Remove file.
26774         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26775         (lchmod): New declaration, moved here from lib/lchown.h.
26776         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26777         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26779         and HAVE_LCHMOD.
26780         * modules/lchmod (Files): Remove lib/lchmod.h.
26781         (Depends-on): Add sys_stat, extensions.
26782         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26783         (Include): Specify <sys/stat.h> instead of lchmod.h.
26784         * modules/sys_stat (Depends-on): Add link-warning.
26785         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26786         definition of GL_LINK_WARNING.
26787         * NEWS: Mention the change.
26788
26789 2008-10-18  Bruno Haible  <bruno@clisp.org>
26790
26791         * lib/fchdir.c: Don't include dirfd.h.
26792         * lib/fts.c: Likewise.
26793         * lib/getcwd.c: Likewise.
26794         * lib/glob.c: Likewise.
26795
26796         Move the dirfd() declaration to <dirent.h>.
26797         * lib/dirfd.h: Remove file.
26798         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26799         (dirfd): New declaration.
26800         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26801         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26802         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26803         HAVE_DECL_DIRFD.
26804         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26805         HAVE_DECL_DIRFD.
26806         * modules/dirfd (Files): Remove lib/dirfd.h.
26807         (Depends-on): Add dirent, extensions.
26808         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26809         (Include): Specify <dirent.h> instead of dirfd.h.
26810         * modules/dirent (Depends-on): Add link-warning.
26811         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26812         definition of GL_LINK_WARNING.
26813         * NEWS: Mention the change.
26814
26815 2008-10-18  Bruno Haible  <bruno@clisp.org>
26816
26817         Move the euidaccess() declaration to <unistd.h>.
26818         * lib/euidaccess.h: Remove file.
26819         * lib/unistd.in.h (euidaccess): New declaration.
26820         * lib/euidaccess.c: Don't include euidaccess.h.
26821         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26822         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26824         and HAVE_EUIDACCESS.
26825         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26826         (Depends-on): Add unistd.
26827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26828         (Include): Specify <unistd.h> instead of euidaccess.h.
26829         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26830         HAVE_EUIDACCESS.
26831         * NEWS: Mention the change.
26832
26833 2008-10-18  Bruno Haible  <bruno@clisp.org>
26834
26835         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26836
26837         Move the getdomainname() declaration to <unistd.h>.
26838         * lib/getdomainname.h: Remove file.
26839         * lib/unistd.in.h (getdomainname): New declaration.
26840         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26841         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26842         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26843         HAVE_GETDOMAINNAME.
26844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26845         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26846         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26847         (Depends-on): Add unistd, extensions.
26848         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26849         (Includes): Specify <unistd.h> instead of getdomainname.h.
26850         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26851         HAVE_GETDOMAINNAME.
26852         * NEWS: Mention the change.
26853
26854 2008-10-18  Bruno Haible  <bruno@clisp.org>
26855
26856         * modules/dirent: New file.
26857         * m4/dirent_h.m4: New file.
26858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26859         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26860         * modules/fchdir (Files): Remove lib/dirent.in.h.
26861         (Depends-on): Add dirent.
26862         (Makefile.am): Move rules to modules/dirent.
26863         * doc/posix-headers/dirent.texi: Mention the new module.
26864
26865 2008-10-18  Bruno Haible  <bruno@clisp.org>
26866
26867         Avoid -Wunused-parameter warnings in public gnulib header files.
26868         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26869         macro.
26870         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26871
26872 2008-10-18  Bruno Haible  <bruno@clisp.org>
26873
26874         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26875         * doc/glibc-functions/error.texi: Mention the module 'error'.
26876         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26877         * doc/glibc-functions/getdomainname.texi: Mention the module
26878         'getdomainname'.
26879         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26880         * doc/glibc-functions/getpagesize.texi: Mention the module
26881         'getpagesize'.
26882         * doc/glibc-functions/getusershell.texi: Mention the module
26883         'getusershell'.
26884         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26885         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26886         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26887         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26888         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26889         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26890         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26891         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26892         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26893         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26894         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26895         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26896         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26897         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26898
26899 2008-10-17  Bruno Haible  <bruno@clisp.org>
26900
26901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26902         HP-UX and IRIX, use -0.0L.
26903         * tests/test-ceill.c (minus_zero): Likewise.
26904         * tests/test-floorl.c (minus_zero): Likewise.
26905         * tests/test-frexpl.c (minus_zero): Likewise.
26906         * tests/test-isnan.c (minus_zerol): Likewise.
26907         * tests/test-isnanl.h (minus_zero): Likewise.
26908         * tests/test-ldexpl.c (minus_zero): Likewise.
26909         * tests/test-roundl.c (minus_zero): Likewise.
26910         * tests/test-signbit.c (minus_zerol): Likewise.
26911         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26912         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26913         * tests/test-truncl.c (minus_zero): Likewise.
26914         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26915         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26916         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26917         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26918
26919 2008-10-17  Bruno Haible  <bruno@clisp.org>
26920
26921         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26922         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26923         that it gets activated only for gcc >= 3.0.
26924         * lib/dirent.in.h: Likewise.
26925         * lib/errno.in.h: Likewise.
26926         * lib/fcntl.in.h: Likewise.
26927         * lib/float.in.h: Likewise.
26928         * lib/iconv.in.h: Likewise.
26929         * lib/inttypes.in.h: Likewise.
26930         * lib/locale.in.h: Likewise.
26931         * lib/math.in.h: Likewise.
26932         * lib/netdb.in.h: Likewise.
26933         * lib/netinet_in.in.h: Likewise.
26934         * lib/search.in.h: Likewise.
26935         * lib/signal.in.h: Likewise.
26936         * lib/spawn.in.h: Likewise.
26937         * lib/stdarg.in.h: Likewise.
26938         * lib/stdint.in.h: Likewise.
26939         * lib/stdio.in.h: Likewise.
26940         * lib/stdlib.in.h: Likewise.
26941         * lib/string.in.h: Likewise.
26942         * lib/strings.in.h: Likewise.
26943         * lib/sys_file.in.h: Likewise.
26944         * lib/sys_ioctl.in.h: Likewise.
26945         * lib/sys_select.in.h: Likewise.
26946         * lib/sys_socket.in.h: Likewise.
26947         * lib/sys_stat.in.h: Likewise.
26948         * lib/sys_time.in.h: Likewise.
26949         * lib/sysexits.in.h: Likewise.
26950         * lib/time.in.h: Likewise.
26951         * lib/unistd.in.h: Likewise.
26952         * lib/wchar.in.h: Likewise.
26953         * lib/wctype.in.h: Likewise.
26954         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26955
26956 2008-10-17  Jim Meyering  <meyering@redhat.com>
26957
26958         ignore-value: don't depend on inline module
26959         * modules/ignore-value (Depends-on): Remove 'inline'.
26960         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
26961         Suggestion from Bruno Haible.
26962
26963 2008-10-17  Bruno Haible  <bruno@clisp.org>
26964
26965         New implementation of condition variables for Win32.
26966         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
26967         (gl_linked_waitqueue_t): New type.
26968         (gl_cond_t): Use it.
26969         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
26970         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
26971         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
26972         (glthread_cond_init_func, glthread_cond_wait_func,
26973         glthread_cond_timedwait_func, glthread_cond_signal_func,
26974         glthread_cond_broadcast_func, glthread_cond_destroy_func):
26975         Reimplemented on the basis of gl_linked_waitqueue_t.
26976         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
26977         gl_waitqueue_t.
26978         (gl_rwlock_t): Update.
26979         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
26980
26981 2008-10-17  Simon Josefsson  <simon@josefsson.org>
26982
26983         * modules/recvfrom (Depends-on): Add dependency on getpeername.
26984         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26985
26986 2008-10-17  Jim Meyering  <meyering@redhat.com>
26987
26988         ignore-value: new module
26989         * modules/ignore-value: New file.
26990         * lib/ignore-value.h: New file.
26991         * MODULES.html.sh (Compiler warning management): New section,
26992         just for this module.  More to come.
26993
26994 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26995
26996         open-safer.c: avoid 'signed and unsigned in conditional...' warning
26997         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
26998         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
26999
27000 2008-10-16  Jim Meyering  <meyering@redhat.com>
27001
27002         openat-die.c: avoid 'no previous prototype' warning
27003         * lib/openat-die.c: Include "openat.h".
27004         Reported by Reuben Thomas <rrt@sc3d.org>.
27005
27006 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27007
27008         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27009         * lib/netdb.in.h: Fix typo.
27010         Reported by Bruno Haible  <bruno@clisp.org>
27011
27012         * lib/netdb.in.h: Include sys/socket.h for platforms without
27013         netdb.h, to get structures like hostent on MinGW.
27014         * modules/netdb (Depends-on): Add sys_socket.
27015
27016 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27017
27018         * modules/netdb, modules/netdb-tests: New file.
27019         * m4/netdb_h.m4: New file.
27020         * lib/netdb.in.h: Add, currently just an empty file pending
27021         definitions.
27022         * tests/test-netdb.c: New file.
27023         * doc/posix-headers/netdb.texi: Mention that we replace it if
27024         needed.
27025         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27026         netdb.
27027
27028 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27029
27030         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27031         with code.
27032
27033 2008-10-13  Bruno Haible  <bruno@clisp.org>
27034
27035         * lib/glthread/cond.c (glthread_cond_wait_func,
27036         glthread_cond_timedwait_func): Add a comment.
27037
27038 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27039
27040         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27041         * tests/test-select.c: Likewise,
27042
27043 2008-10-13  Bruno Haible  <bruno@clisp.org>
27044
27045         * lib/glthread/cond.c (glthread_cond_wait_func,
27046         glthread_cond_timedwait_func): Fix variable name.
27047         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27048
27049 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27050
27051         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27052         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27053         struct sockaddr.sa_len.
27054         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27055
27056 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27057
27058         * build-aux/pmccabe2html: Add css and css_url parameters.
27059
27060 2008-10-12  Bruno Haible  <bruno@clisp.org>
27061
27062         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27063         calling aclx_get.
27064         Reported by Rainer Tammer <tammer@tammer.net>.
27065
27066 2008-10-12  Bruno Haible  <bruno@clisp.org>
27067
27068         Use msvcrt aware primitives for creation/termination of Win32 threads.
27069         * lib/glthread/thread.c: Include <process.h>.
27070         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27071         (wrapper_func): Update signature.
27072         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27073
27074 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27075             Bruno Haible  <bruno@clisp.org>
27076
27077         Provide a Win32 implementation of the 'cond' module.
27078         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27079         * lib/glthread/cond.c (glthread_cond_init_func,
27080         glthread_cond_wait_func, glthread_cond_timedwait_func,
27081         glthread_cond_signal_func, glthread_cond_broadcast_func,
27082         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27083         * modules/cond (Dependencies): Add gettimeofday.
27084
27085 2008-10-11  Bruno Haible  <bruno@clisp.org>
27086
27087         Make sleep work on older versions of mingw.
27088         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27089         only whether it exists.
27090         * doc/posix-functions/sleep.texi: Mention the problem with older
27091         versions of mingw.
27092
27093 2008-10-11  Bruno Haible  <bruno@clisp.org>
27094
27095         New module 'shutdown'.
27096         * modules/shutdown: New file.
27097         * lib/sys_socket.in.h (shutdown): New declaration.
27098         * lib/winsock.c (shutdown): New function.
27099         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27100         GNULIB_SHUTDOWN.
27101         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27102         * doc/posix-functions/shutdown.texi: Document the new module.
27103
27104 2008-10-11  Jim Meyering  <meyering@redhat.com>
27105
27106         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27107
27108 2008-10-11  Bruno Haible  <bruno@clisp.org>
27109
27110         New module 'fclose'.
27111         * modules/fclose: New file.
27112         * lib/stdio.in.h (fclose): New declaration.
27113         * lib/fclose.c: New file.
27114         * m4/fclose.m4: New file.
27115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27116         REPLACE_FCLOSE.
27117         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27118         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27119         REPLACE_FCLOSE.
27120         * modules/close (Depends-on): fclose.
27121         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27122
27123 2008-10-11  Bruno Haible  <bruno@clisp.org>
27124
27125         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27126         set errno and don't call _close.
27127
27128 2008-10-10  Bruno Haible  <bruno@clisp.org>
27129
27130         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27131         ACL, not afterwards. Fixes test failure on Cygwin.
27132
27133 2008-10-09  Ben Pfaff  <blp@gnu.org>
27134
27135         * build-aux/announce-gen: Fix gnulib version related part of usage
27136         message.  Die with a useful error message if no tarballs are
27137         found.
27138
27139 2008-10-10  Jim Meyering  <meyering@redhat.com>
27140
27141         bootstrap: use git's --depth=N option only if it's supported
27142         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27143         recognize the --depth option.  Reported by Pádraig Brady.
27144
27145 2008-10-09  Bruno Haible  <bruno@clisp.org>
27146
27147         New module 'ioctl'.
27148         * modules/ioctl: New file.
27149         * lib/sys_socket.in.h (ioctl): Remove declaration.
27150         * lib/winsock.c: Include <sys/ioctl.h>.
27151         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27152         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27153         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27154         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27155         * doc/posix-functions/ioctl.texi: Mention the new module.
27156
27157 2008-10-09  Bruno Haible  <bruno@clisp.org>
27158
27159         New module 'sys_ioctl'.
27160         * lib/sys_ioctl.in.h: New file.
27161         * m4/sys_ioctl_h.m4: New file.
27162         * modules/sys_ioctl: New file.
27163         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27164
27165 2008-10-09  Bruno Haible  <bruno@clisp.org>
27166
27167         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27168         * lib/winsock.c: Include <stdarg.h>.
27169         (rpl_ioctl): Change to second argument 'int' and then varargs.
27170
27171 2008-10-09  Bruno Haible  <bruno@clisp.org>
27172
27173         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27174         when the sys_socket module is present and the system has <winsock2.h>.
27175
27176 2008-10-09  Bruno Haible  <bruno@clisp.org>
27177
27178         * doc/posix-functions/close.texi: Mention module 'close' instead of
27179         module 'sys_socket'.
27180
27181 2008-10-09  Bruno Haible  <bruno@clisp.org>
27182
27183         * doc/glibc-headers/sys_ioctl.texi: New file.
27184         * doc/gnulib.texi: Include it.
27185
27186 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27187             Bruno Haible  <bruno@clisp.org>
27188
27189         Combine the two replacements of 'close'.
27190         * lib/sys_socket.in.h (close): Define to a reminder to include
27191         <unistd.h>.
27192         (_gl_close_fd_maybe_socket): New declaration.
27193         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27194         * lib/winsock.c (close): Remove undefinition.
27195         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27196         needed for the gnulib module 'close'.
27197         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27198         define to an error symbol or to a warning, if suitable.
27199         * lib/close.c: Include <sys/socket.h>.
27200         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27201         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27202         UNISTD_H_HAVE_WINSOCK2_H.
27203         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27205         UNISTD_H_HAVE_WINSOCK2_H.
27206         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27207         (configure.ac): Set a module indicator.
27208         (Makefile.am): Substitute GNULIB_CLOSE.
27209         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27210         * modules/poll-tests (Depends-on): Add close.
27211         * modules/select-tests (Depends-on): Likewise.
27212
27213 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27214             Bruno Haible  <bruno@clisp.org>
27215
27216         New module 'close'.
27217         * modules/close: New file.
27218         * lib/unistd.in.h (close): Move declaration out of the
27219         FCHDIR_REPLACEMENT scope.
27220         (_gl_unregister_fd): New declaration.
27221         * lib/close.c: New file.
27222         * lib/fchdir.c (rpl_close): Remove function.
27223         * m4/close.m4: New file.
27224         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27225         close.
27226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27227         REPLACE_CLOSE.
27228         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27229         REPLACE_CLOSE.
27230         * modules/fchdir (Depends-on): Add close.
27231
27232 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27233             Bruno Haible  <bruno@clisp.org>
27234
27235         * lib/fcntl.in.h (open): Simplify conditionals.
27236         (_gl_register_fd): New declaration.
27237         * lib/fchdir.c (rpl_open): Remove function.
27238         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27239         also.
27240         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27242         open.
27243
27244 2008-10-09  Jim Meyering  <meyering@redhat.com>
27245
27246         GNUmakefile: use the more name-space-friendly "_version"
27247         * top/GNUmakefile (_dummy): Update.
27248         (_version): Rename from "version".
27249
27250 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27251             Bruno Haible  <bruno@clisp.org>
27252
27253         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27254         rpl_close.
27255         (_gl_register_fd): New function, extracted from rpl_open.
27256         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27257         (rpl_open, rpl_opendir): Use _gl_register_fd.
27258
27259 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27260
27261         Fix organization of 'open' replacement.
27262         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27263         (gl_FUNC_OPEN): Use it.
27264         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27265
27266 2008-10-08  Bruno Haible  <bruno@clisp.org>
27267
27268         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27269
27270 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27271
27272         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27273         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27274         listen).
27275
27276 2008-10-08  Eric Blake  <ebb9@byu.net>
27277
27278         GNUmakefile: add 'make version' target
27279         * top/GNUmakefile (_curr-ver): Split version update rules...
27280         (version): ...into a target.
27281
27282 2008-10-07  Bruno Haible  <bruno@clisp.org>
27283
27284         Use a more portable replacement expression for -0.0L.
27285         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27286         instead of -0.0L. Fix m4 quotation.
27287
27288         * tests/test-signbit.c: Include <float.h>.
27289         (minus_zero): New variable.
27290         (test_signbitl): Use minus_zero instead of -zero.
27291         * modules/signbit-tests (Depends-on): Add float.
27292
27293         * tests/test-ceill.c: Include <float.h>.
27294         (zero): Remove variable.
27295         (minus_zero): New variable.
27296         (main): Use minus_zero instead of -zero.
27297         * modules/ceill-tests (Depends-on): Add float.
27298
27299         * tests/test-floorl.c: Include <float.h>.
27300         (zero): Remove variable.
27301         (minus_zero): New variable.
27302         (main): Use minus_zero instead of -zero.
27303         * modules/floorl-tests (Depends-on): Add float.
27304
27305         * tests/test-roundl.c: Include <float.h>.
27306         (zero): Remove variable.
27307         (minus_zero): New variable.
27308         (main): Use minus_zero instead of -zero.
27309         * modules/roundl-tests (Depends-on): Add float.
27310
27311         * tests/test-truncl.c: Include <float.h>.
27312         (zero): Remove variable.
27313         (minus_zero): New variable.
27314         (main): Use minus_zero instead of -zero.
27315         * modules/truncl-tests (Depends-on): Add float.
27316
27317         * tests/test-frexpl.c (zero): Remove variable.
27318         (minus_zero): New variable.
27319         (main): Use minus_zero instead of -zero.
27320         * modules/frexpl-tests (Depends-on): Add float.
27321
27322         * tests/test-isnan.c (zerol): Remove variable.
27323         (minus_zerol): New variable.
27324         (test_long_double): Use minus_zerol instead of -zerol.
27325         * modules/isnan-tests (Depends-on): Add float.
27326
27327         * tests/test-isnanl.h (zero): Remove variable.
27328         (minus_zero): New variable.
27329         (main): Use minus_zero instead of -zero.
27330         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27331         * modules/isnanl-tests (Depends-on): Add float.
27332
27333         * tests/test-ldexpl.c (zero): Remove variable.
27334         (minus_zero): New variable.
27335         (main): Use minus_zero instead of -zero.
27336         * modules/ldexpl-tests (Depends-on): Add float.
27337
27338         * tests/test-snprintf-posix.h (zerol): Remove variable.
27339         (minus_zerol): New variable.
27340         (test_function): Use minus_zerol instead of -zerol.
27341         * modules/snprintf-posix-tests (Depends-on): Add float.
27342         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27343
27344         * tests/test-sprintf-posix.h (zerol): Remove variable.
27345         (minus_zerol): New variable.
27346         (test_function): Use minus_zerol instead of -zerol.
27347         * modules/sprintf-posix-tests (Depends-on): Add float.
27348         * modules/vsprintf-posix-tests (Depends-on): Add float.
27349
27350         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27351         (minus_zerol): New variable.
27352         (test_function): Use minus_zerol instead of -zerol.
27353         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27354
27355         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27356         (minus_zerol): New variable.
27357         (test_function): Use minus_zerol instead of -zerol.
27358         * modules/vasprintf-posix-tests (Depends-on): Add float.
27359
27360 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27361
27362         * MODULES.html.sh (Support for building documentation): Mention
27363         pmccabe2html.  Sort entries.
27364
27365         Add pmccabe2html module, from gnupdf.
27366         * build-aux/pmccabe.css: New file.
27367         * build-aux/pmccabe2html: New file.
27368         * m4/pmccabe2html.m4: New file.
27369         * modules/pmccabe2html: New file.
27370
27371 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27372
27373         flock: new module
27374         * MODULES.html.sh: Add to list of modules.
27375         * lib/flock.c: flock implementation for Windows and Unix systems
27376         which have fcntl.
27377         * doc/glibc-functions/flock.texi: Update documentation.
27378         * lib/sys_file.in.h: <sys/file.h> header file.
27379         * m4/flock.m4: M4 macros.
27380         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27381         * modules/flock: flock module.
27382         * modules/flock-tests: flock tests module.
27383         * modules/sys_file: sys/file.h module.
27384         * tests/test-flock.c: test suite for flock.
27385
27386 2008-10-06  Jim Meyering  <meyering@redhat.com>
27387
27388         bootstrap: check for LT_INIT more portably still ;-)
27389         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27390         Spotted by Bruno Haible.
27391
27392 2008-10-06  Eric Blake  <ebb9@byu.net>
27393
27394         test-signbit: avoid tripping Irix cc bug on -0.0L
27395         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27396         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27397         entire testsuite consistent and avoids an Irix 6.2 bug.
27398
27399 2008-10-05  Bruno Haible  <bruno@clisp.org>
27400             Jim Meyering  <jim@meyering.net>
27401
27402         Add an option for ignoring EPIPE during close_stdout.
27403         * lib/closeout.h: Include <stdbool.h>.
27404         (close_stdout_set_ignore_EPIPE): New declaration.
27405         * lib/closeout.c: Include <stdbool.h>.
27406         (ignore_EPIPE): New variable.
27407         (close_stdout_set_ignore_EPIPE): New function.
27408         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27409         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27410         failure.
27411         * modules/closeout (Depends-on): Add stdbool.
27412
27413 2008-10-05  Bruno Haible  <bruno@clisp.org>
27414
27415         * modules/accept: New file.
27416         * modules/bind: New file.
27417         * modules/connect: New file.
27418         * modules/getpeername: New file.
27419         * modules/getsockname: New file.
27420         * modules/getsockopt: New file.
27421         * modules/listen: New file.
27422         * modules/recv: New file.
27423         * modules/recvfrom: New file.
27424         * modules/send: New file.
27425         * modules/sendto: New file.
27426         * modules/setsockopt: New file.
27427         * modules/socket: New file.
27428         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27429         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27430         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27431         the particular module is requested. Add a link warning when the
27432         particular module is not requested.
27433         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27434         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27435         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27436         the particular module is requested.
27437         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27438         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27439         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27440         * modules/sys_socket (Depends-on): Add link-warning.
27441         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27442         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27443         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27444         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27445         GL_LINK_WARNING.
27446         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27447         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27448         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27449         * doc/posix-functions/getpeername.texi: Mention the new module
27450         'getpeername'.
27451         * doc/posix-functions/getsockname.texi: Mention the new module
27452         'getsockname'.
27453         * doc/posix-functions/getsockopt.texi: Mention the new module
27454         'getsockopt'.
27455         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27456         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27457         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27458         * doc/posix-functions/send.texi: Mention the new module 'send'.
27459         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27460         * doc/posix-functions/setsockopt.texi: Mention the new module
27461         'setsockopt'.
27462         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27463         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27464         listen, connect, accept.
27465         * modules/select-tests (Depends-on): Likewise.
27466
27467 2008-10-05  Bruno Haible  <bruno@clisp.org>
27468
27469         * lib/winsock.c (strerror): Remove unused #undef.
27470         (rpl_close): Remove unused local variable.
27471
27472         * modules/sys_socket (Depends-on); Add errno.
27473
27474 2008-10-05  Bruno Haible  <bruno@clisp.org>
27475
27476         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27477         (select): Add a link warning when the 'select' module is not used.
27478         * modules/sys_select (Depends-on): Add link-warning.
27479         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27480         Suggested by Paolo Bonzini.
27481
27482 2008-10-05  Jim Meyering  <meyering@redhat.com>
27483
27484         bootstrap: check for LT_INIT more portably
27485         * build-aux/bootstrap: Avoid using grep -E, since it's not
27486         portable enough.  Suggestion from Bruno Haible.
27487
27488 2008-10-05  Bruno Haible  <bruno@clisp.org>
27489
27490         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27491         as being fixed by gnulib.
27492
27493 2008-10-05  Bruno Haible  <bruno@clisp.org>
27494
27495         * modules/select-tests: New file, mostly copied from
27496         modules/sys_select-tests.
27497         * tests/test-select.c: New file, mostly copied from
27498         tests/test-sys_select.c.
27499         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27500         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27501         (Makefile.am): Remove test_sys_select_LDADD.
27502
27503         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27504         to an undefined symbol, for an error message.
27505         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27506         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27507         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27508         winsock-select.c here.
27509         * modules/sys_select (Files): Remove lib/winsock-select.c.
27510         (Depends-on): Remove alloca.
27511         (Makefile.am): Substitute GNULIB_SELECT.
27512         * modules/select: New file.
27513         * doc/posix-functions/select.texi: Update.
27514
27515 2008-10-05  Bruno Haible  <bruno@clisp.org>
27516
27517         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27518         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27519         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27520         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27521         getdtablesize.
27522         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27523         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27524
27525 2008-10-05  Bruno Haible  <bruno@clisp.org>
27526
27527         * modules/getdtablesize-tests: New file.
27528         * tests/test-getdtablesize.c: New file.
27529
27530         New module 'getdtablesize'.
27531         * lib/unistd.in.h (getdtablesize): New declaration.
27532         * lib/getdtablesize.c: New file.
27533         * m4/getdtablesize.m4: New file.
27534         * modules/getdtablesize: New file.
27535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27536         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27537         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27538         HAVE_GETDTABLESIZE.
27539         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27540
27541 2008-10-05  Bruno Haible  <bruno@clisp.org>
27542
27543         * modules/sched (Makefile.am): Fix typo.
27544         Reported by Simon Josefsson.
27545
27546 2008-10-05  Jim Meyering  <meyering@redhat.com>
27547
27548         bootstrap: check for LT_INIT, too
27549         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27550         are deprecated.  Suggestion from Ralf Wildenhues.
27551
27552 2008-10-05  Bruno Haible  <bruno@clisp.org>
27553
27554         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27555         overriding them by ours.
27556         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27557
27558 2008-10-05  Jim Meyering  <meyering@redhat.com>
27559
27560         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27561         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27562         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27563
27564 2008-10-04  Bruno Haible  <bruno@clisp.org>
27565
27566         * modules/dup2 (License): Change to LGPLv2+.
27567         * modules/sleep (License): Likewise.
27568         * modules/perror (License): Likewise.
27569         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27570         Blake.
27571         * modules/signal (License): Likewise.
27572         * modules/sigprocmask (License): Likewise.
27573         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27574         Meyering.
27575
27576 2008-10-04  Bruno Haible  <bruno@clisp.org>
27577
27578         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27579         Reported by Rainer Tammer <tammer@tammer.net>.
27580
27581 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27582             Bruno Haible  <bruno@clisp.org>
27583
27584         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27585         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27586         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27587
27588 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27589
27590         filevercmp: new module
27591         * lib/filevercmp.h: New function filevercmp comparing version strings.
27592         * lib/filevercmp.c: Implementation of filevercmp function.
27593         * modules/filevercmp: Module metadata.
27594         * tests/test-filevercmp.c: Unit test for new module.
27595         * modules/filevercmp-tests: Unit test metadata.
27596         * MODULES.html.sh: Add filevercmp module.
27597
27598 2008-10-03  Bruno Haible  <bruno@clisp.org>
27599
27600         * lib/c-ctype.h: Add comment.
27601         Reported by Jim Meyering.
27602
27603 2008-10-02  Bruno Haible  <bruno@clisp.org>
27604
27605         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27606
27607 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27608
27609         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27610         name of bootstrap.conf accordingly.
27611
27612 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27613
27614         * build-aux/bootstrap: Install git-merge-changelog configuration
27615         items into .gitconfig if needed.
27616
27617 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27618
27619         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27620         git repository, and initialize/update it accordingly.
27621
27622 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27623
27624         * modules/fsync-tests: New file.
27625         * tests/test-fsync.c: New file.
27626
27627         New module 'fsync'.
27628         * lib/fsync.c: New file.
27629         * m4/fsync.m4: New file.
27630         * modules/fsync: New file.
27631         * lib/unistd.in.h (fsync): New declaration.
27632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27633         GNULIB_FSYNC and HAVE_FSYNC.
27634         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27635         * MODULES.html.sh (posix_functions): Add fsync.
27636         * doc/posix-functions/fsync.texi: Mention the new module.
27637
27638 2008-10-02  Jim Meyering  <meyering@redhat.com>
27639
27640         fts.c: sync with similar code from coreutils' remove.c
27641         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27642         Guard also with "#if defined __linux__", since for now at least,
27643         this code is Linux-kernel-specific.
27644
27645 2008-10-02  Jim Meyering  <meyering@redhat.com>
27646
27647         fts: bug fixes
27648         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27649         Include <sys/vfs.h>, not <sys/statfs.h>.
27650
27651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27652         Include <sys/vfs.h>, not <sys/statfs.h>.
27653
27654 2008-10-01  Bruno Haible  <bruno@clisp.org>
27655
27656         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27658         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27659         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27660         * doc/posix-functions/posix_spawnp.texi: Likewise.
27661         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27662         whether posix_spawn actually works.
27663         * m4/pipe.m4 (gl_PIPE): Likewise.
27664         * modules/execute (Files): Add m4/posix_spawn.m4.
27665         * modules/pipe (Files): Add m4/posix_spawn.m4.
27666         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27667
27668 2008-10-01  Jim Meyering  <meyering@redhat.com>
27669
27670         remove trailing spaces
27671         * NEWS: Likewise.
27672         * lib/poll.c (poll): Likewise.
27673         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27674         * lib/winsock.c (rpl_close): Likewise.
27675         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27676         * modules/yield: Likewise.
27677         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27678         * tests/test-sys_select.c (connect_to_socket): Likewise.
27679
27680         fts.c: adjust a new interface to be more generally useful
27681         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27682         (fts_build): Adjust caller.
27683
27684 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27685
27686         * modules/cond-tests: New file.
27687         * tests/test-cond.c: New file.
27688
27689 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27690             Bruno Haible  <bruno@clisp.org>
27691
27692         * modules/cond (Dependencies): Add errno, time.
27693         * lib/glthread/cond.h: Include <time.h>.
27694         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27695         across platforms.
27696
27697 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27698             Bruno Haible  <bruno@clisp.org>
27699
27700         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27701
27702 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27703             Bruno Haible  <bruno@clisp.org>
27704
27705         * modules/tls-tests (Depends-on): Add thread, yield.
27706         (configure.ac): Remove all checks.
27707         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27708         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27709         gl_thread_self): Remove definitions. Include glthread/thread.h and
27710         glthread/yield.h instead.
27711         (test_tls): Pass an additional NULL argument to gl_thread_join.
27712
27713 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27714             Bruno Haible  <bruno@clisp.org>
27715
27716         * modules/lock-tests (Depends-on): Add thread, yield.
27717         (configure.ac): Remove all checks.
27718         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27719         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27720         gl_thread_self): Remove definitions. Include glthread/thread.h and
27721         glthread/yield.h instead.
27722         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27723         additional NULL argument to gl_thread_join.
27724
27725 2008-09-30  Bruno Haible  <bruno@clisp.org>
27726
27727         Fix the Win32 implementation of the 'thread' module.
27728         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27729         pointer type.
27730         (gl_thread_self): Invoke gl_thread_self_func.
27731         (gl_thread_self_func): New declaration.
27732         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27733         (do_init_self_key, init_self_key): New functions.
27734         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27735         Remove some fields.
27736         (running_threads, running_lock): Remove variables.
27737         (get_current_thread_handle): New function.
27738         (gl_thread_self_func, wrapper_func, glthread_create_func,
27739         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27740         simplified.
27741
27742 2008-09-30  Bruno Haible  <bruno@clisp.org>
27743
27744         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27745         files.
27746
27747 2008-09-30  Jim Meyering  <meyering@redhat.com>
27748
27749         fts.m4: correct the test for statfs.f_type
27750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27751         when checking for statfs.f_type.
27752
27753 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27754
27755         tests: avoid some compiler warnings
27756         * tests/test-memchr.c (main): Pass NULL indirectly.
27757         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27758
27759 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27760
27761         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27762         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27763         exactly specified dayshifts.
27764         (dayshift): New rule.
27765         (rel): Add dayshift.
27766         (relative_time_table) [tomorrow, yesterday, today, now]:
27767         Use tDAY_SHIFT in place of tDAY_UNIT.
27768         * tests/test-getdate.c: Add tests for now-disallowed countable
27769         dayshifts, e.g., "4 yesterday ago".
27770
27771 2008-09-29  Bruno Haible  <bruno@clisp.org>
27772
27773         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27774         * tests/test-posix_spawn1.in.sh: Renamed from
27775         tests/test-posix_spawn.in.sh.
27776         * tests/test-posix_spawn2.c: New file.
27777         * tests/test-posix_spawn2.in.sh: New file.
27778         * modules/posix_spawnp-tests (Files): Update.
27779         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27780
27781 2008-09-29  Bruno Haible  <bruno@clisp.org>
27782
27783         Propagate effects of putenv/setenv/unsetenv to child processes.
27784         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27785         * lib/pipe.c (create_pipe): Likewise.
27786
27787 2008-09-29  Bruno Haible  <bruno@clisp.org>
27788
27789         Enable use of shell scripts as executables in mingw.
27790         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27791         run the program as a shell script.
27792         * lib/pipe.c (create_pipe): Likewise.
27793         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27794         resulting array.
27795
27796 2008-09-29  Eric Blake  <ebb9@byu.net>
27797
27798         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27799
27800 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27801
27802         * doc/posix-functions/accept.texi: Update mingw problems.
27803         * doc/posix-functions/bind.texi: Update mingw problems.
27804         * doc/posix-functions/close.texi: Update mingw problems.
27805         * doc/posix-functions/connect.texi: Update mingw problems.
27806         * doc/posix-functions/getpeername.texi: Update mingw problems.
27807         * doc/posix-functions/getsockname.texi: Update mingw problems.
27808         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27809         * doc/posix-functions/ioctl.texi: Update mingw problems.
27810         * doc/posix-functions/listen.texi: Update mingw problems.
27811         * doc/posix-functions/recv.texi: Update mingw problems.
27812         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27813         * doc/posix-functions/select.texi: Update mingw problems.
27814         * doc/posix-functions/send.texi: Update mingw problems.
27815         * doc/posix-functions/sendto.texi: Update mingw problems.
27816         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27817         * doc/posix-functions/socket.texi: Update mingw problems.
27818
27819 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27820             Bruno Haible  <bruno@clisp.org>
27821
27822         * lib/sys_select.in.h: Include sys/time.h.
27823         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27824         * modules/sys_select: Depend on sys_time.
27825         * tests/test-sys_select.c: Test that sys/select.h defines struct
27826         timeval fully.
27827
27828 2008-09-29  Bruno Haible  <bruno@clisp.org>
27829
27830         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27831         * lib/sys_select.in.h: Likewise.
27832
27833 2008-09-29  Bruno Haible  <bruno@clisp.org>
27834
27835         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27836
27837 2008-09-29  Bruno Haible  <bruno@clisp.org>
27838
27839         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27840         Set LIBSOCKET instead of augmenting LIBS.
27841         * modules/sockets (Link): New section.
27842         * modules/sockets-tests (test_sockets_LDADD): New variable.
27843         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27844         * modules/poll-tests (test_poll_LDADD): New variable.
27845         * NEWS: Document the change.
27846
27847 2008-09-29  Bruno Haible  <bruno@clisp.org>
27848
27849         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27850         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27851         ARPA_INET_H directly.
27852         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27853
27854 2008-09-28  Bruno Haible  <bruno@clisp.org>
27855
27856         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27857         from gl_HEADER_SYS_SOCKET.
27858         (gl_HEADER_SYS_SOCKET): Invoke it.
27859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27860
27861 2008-09-28  Bruno Haible  <bruno@clisp.org>
27862
27863         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27864         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27865         Needed on OSF/1 4.0.
27866
27867 2008-09-28  Bruno Haible  <bruno@clisp.org>
27868
27869         Override open more carefully.
27870         * lib/open.c (orig_open): New function.
27871         (rpl_open): Use orig_open instead of open.
27872         * lib/fcntl.in.h: Add special invocation convention.
27873         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27874         (gl_FUNC_OPEN): Invoke it.
27875
27876         Override freopen more carefully.
27877         * lib/freopen.c (orig_freopen): New function.
27878         (rpl_freopen): Use orig_freopen instead of freopen.
27879         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27880         (gl_FUNC_FREOPEN): Invoke it.
27881
27882         Override fopen more carefully.
27883         * lib/fopen.c (orig_fopen): New function.
27884         (rpl_fopen): Use orig_fopen instead of fopen.
27885         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27886         (gl_FUNC_FOPEN): Invoke it.
27887         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27888
27889 2008-09-28  Bruno Haible  <bruno@clisp.org>
27890
27891         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27892         SIGPIPE.
27893
27894 2008-09-28  Bruno Haible  <bruno@clisp.org>
27895
27896         * tests/test-sigaction.c (handler, main): Disable the check whether
27897         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27898         glibc systems with LinuxThreads.
27899
27900 2008-09-28  Bruno Haible  <bruno@clisp.org>
27901
27902         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27903
27904         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27905         with AIX xlc.
27906         * lib/fcntl.in.h (open): Likewise.
27907         Reported by Rainer Tammer <tammer@tammer.net>.
27908
27909 2008-09-28  Bruno Haible  <bruno@clisp.org>
27910
27911         * modules/posix_spawnp-tests: New file.
27912         * tests/test-posix_spawn.c: New file.
27913         * tests/test-posix_spawn.in.sh: New file.
27914
27915         New module 'posix_spawnp'.
27916         * modules/posix_spawnp: New file.
27917         * lib/spawnp.c: New file, from GNU libc with modifications.
27918         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27919
27920         New module 'posix_spawn'.
27921         * modules/posix_spawn: New file.
27922         * lib/spawn.c: New file, from GNU libc with modifications.
27923         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27924
27925         New module 'posix_spawnattr_destroy'.
27926         * modules/posix_spawnattr_destroy: New file.
27927         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27928         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27929         module.
27930
27931         New module 'posix_spawnattr_setsigmask'.
27932         * modules/posix_spawnattr_setsigmask: New file.
27933         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27934         modifications.
27935         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
27936         new module.
27937
27938         New module 'posix_spawnattr_getsigmask'.
27939         * modules/posix_spawnattr_getsigmask: New file.
27940         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
27941         modifications.
27942         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
27943         new module.
27944
27945         New module 'posix_spawnattr_setsigdefault'.
27946         * modules/posix_spawnattr_setsigdefault: New file.
27947         * lib/spawnattr_setdefault.c: New file, from GNU libc with
27948         modifications.
27949         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
27950         new module.
27951
27952         New module 'posix_spawnattr_getsigdefault'.
27953         * modules/posix_spawnattr_getsigdefault: New file.
27954         * lib/spawnattr_getdefault.c: New file, from GNU libc with
27955         modifications.
27956         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
27957         new module.
27958
27959         New module 'posix_spawnattr_setschedpolicy'.
27960         * modules/posix_spawnattr_setschedpolicy: New file.
27961         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
27962         modifications.
27963         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
27964         new module.
27965
27966         New module 'posix_spawnattr_getschedpolicy'.
27967         * modules/posix_spawnattr_getschedpolicy: New file.
27968         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
27969         modifications.
27970         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
27971         new module.
27972
27973         New module 'posix_spawnattr_setschedparam'.
27974         * modules/posix_spawnattr_setschedparam: New file.
27975         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
27976         modifications.
27977         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
27978         new module.
27979
27980         New module 'posix_spawnattr_getschedparam'.
27981         * modules/posix_spawnattr_getschedparam: New file.
27982         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
27983         modifications.
27984         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
27985         new module.
27986
27987         New module 'posix_spawnattr_setpgroup'.
27988         * modules/posix_spawnattr_setpgroup: New file.
27989         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
27990         modifications.
27991         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
27992         module.
27993
27994         New module 'posix_spawnattr_getpgroup'.
27995         * modules/posix_spawnattr_getpgroup: New file.
27996         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27997         modifications.
27998         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
27999         module.
28000
28001         New module 'posix_spawnattr_setflags'.
28002         * modules/posix_spawnattr_setflags: New file.
28003         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28004         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28005         module.
28006
28007         New module 'posix_spawnattr_getflags'.
28008         * modules/posix_spawnattr_getflags: New file.
28009         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28010         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28011         module.
28012
28013         New module 'posix_spawnattr_init'.
28014         * modules/posix_spawnattr_init: New file.
28015         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28016         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28017         module.
28018
28019         New module 'posix_spawn_file_actions_destroy'.
28020         * modules/posix_spawn_file_actions_destroy: New file.
28021         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28022         modifications.
28023         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28024         the new module.
28025
28026         New module 'posix_spawn_file_actions_addopen'.
28027         * modules/posix_spawn_file_actions_addopen: New file.
28028         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28029         modifications.
28030         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28031         the new module.
28032
28033         New module 'posix_spawn_file_actions_adddup2'.
28034         * modules/posix_spawn_file_actions_adddup2: New file.
28035         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28036         modifications.
28037         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28038         the new module.
28039
28040         New module 'posix_spawn_file_actions_addclose'.
28041         * modules/posix_spawn_file_actions_addclose: New file.
28042         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28043         modifications.
28044         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28045         the new module.
28046
28047         New module 'posix_spawn_file_actions_init'.
28048         * modules/posix_spawn_file_actions_init: New file.
28049         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28050         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28051         new module.
28052
28053         New module 'posix_spawn-internal'.
28054         * modules/posix_spawn-internal: New file.
28055         * lib/spawn_int.h: New file, from GNU libc with modifications.
28056         * lib/spawni.c: New file, from GNU libc with modifications.
28057         * m4/posix_spawn.m4: New file.
28058
28059         New module 'spawn'.
28060         * modules/spawn: New file.
28061         * lib/spawn.in.h: New file, from GNU libc with modifications.
28062         * m4/spawn_h.m4: New file.
28063         * doc/posix-headers/spawn.texi: Mention the new module.
28064
28065 2008-09-28  Bruno Haible  <bruno@clisp.org>
28066
28067         * modules/sched-tests: New file.
28068         * tests/test-sched.c: New file.
28069
28070         New module 'sched'.
28071         * modules/sched: New file.
28072         * lib/sched.in.h: New file.
28073         * m4/sched_h.m4: New file.
28074         * doc/posix-headers/sched.texi: Mention the new module.
28075
28076 2008-09-27  Eric Blake  <ebb9@byu.net>
28077
28078         Fix previous patch, and tweak references to $0.
28079         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28080         (func_version, func_gnulib_dir): Don't call this program
28081         gnulib-tool.
28082         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28083         with using $0 in function.
28084         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28085         (func_fatal_error): Reuse the name the user invoked us with.
28086
28087 2008-09-27  Bruno Haible  <bruno@clisp.org>
28088
28089         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28090         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28091         (gl_ICONV_H): Not here.
28092         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28093         instead of assigning ICONV_H directly.
28094
28095         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28097         WCHAR_H directly.
28098
28099 2008-09-27  Bruno Haible  <bruno@clisp.org>
28100
28101         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28102         * modules/arpa_inet (Depends-on): Add link-warning.
28103         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28104         * modules/unistd (Makefile.am): Likewise.
28105
28106 2008-09-26  Bruno Haible  <bruno@clisp.org>
28107
28108         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28109         variables.
28110         (func_version): Essentially copied from gnulib-tool.
28111         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28112         func_readlink): Copied from gnulib-tool.
28113
28114 2008-09-26  Bruno Haible  <bruno@clisp.org>
28115
28116         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28117         invoking git-version-gen.
28118
28119 2008-09-26  Bruno Haible  <bruno@clisp.org>
28120
28121         * posix-modules: Update to directory names changed on 2008-01-19.
28122         Remove commas in output before splitting into words. No more need to
28123         avoid 'ftruncate' since 2007-02-19.
28124
28125 2008-09-26  Bruno Haible  <bruno@clisp.org>
28126
28127         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28128
28129 2008-09-26  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28132         * modules/fwriteerror (Depends-on): Add errno.
28133
28134 2008-09-26  Bruno Haible  <bruno@clisp.org>
28135
28136         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28137         * tests/test-vc-list-files-cvs.sh: Likewise.
28138
28139 2008-09-26  Bruno Haible  <bruno@clisp.org>
28140
28141         * doc/posix-headers/sys_resource.texi: Reorder items.
28142
28143 2008-09-26  Jim Meyering  <meyering@redhat.com>
28144
28145         fts: tweak inode comparison function
28146         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28147         inode numbers, as documented.
28148
28149         fts: sort dirent entries on inode number before traversing
28150         This avoids a quadratic, seek-related performance penalty when
28151         operating on a directory containing many entries (measurable at 10k;
28152         3.5 hours at 2 million entries with a cold cache) on certain types
28153         of file systems, including ext3 and ext4, but not tmpfs.
28154         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28155         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28156         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28157         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28158         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28159         (fts_build): Set the stat.st_ino member from D_INO.
28160         If it is likely to be useful, sort dirent entries on inode number.
28161
28162         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28163         and the struct statfs.f_type member.
28164         * modules/fts (Depends-on): Add d-ino.
28165
28166 2008-09-26  Bruno Haible  <bruno@clisp.org>
28167
28168         * modules/sigpipe-die (Depends-on): Add sigpipe.
28169
28170         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28171         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28172         and GNULIB_STDIO_H_SIGPIPE are set.
28173         * lib/stdio-write.c: New file.
28174         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28175         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28176         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28177         REPLACE_STDIO_WRITE_FUNCS.
28178         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28179         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28180         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28181         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28182         * modules/stdio (Files): Add lib/stdio-write.c.
28183         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28184         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28185         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28186         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28187         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28188         REPLACE_FPRINTF_POSIX.
28189         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28190         REPLACE_PRINTF_POSIX.
28191         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28192         REPLACE_VFPRINTF_POSIX.
28193         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28194         REPLACE_VPRINTF_POSIX.
28195         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28196         SIGPIPE issue.
28197         * doc/posix-functions/fputc.texi: Likewise.
28198         * doc/posix-functions/fputs.texi: Likewise.
28199         * doc/posix-functions/fwrite.texi: Likewise.
28200         * doc/posix-functions/printf.texi: Likewise.
28201         * doc/posix-functions/putc.texi: Likewise.
28202         * doc/posix-functions/putchar.texi: Likewise.
28203         * doc/posix-functions/puts.texi: Likewise.
28204         * doc/posix-functions/vfprintf.texi: Likewise.
28205         * doc/posix-functions/vprintf.texi: Likewise.
28206
28207         * modules/safe-write (Depends-on): Add write.
28208
28209         * modules/sigpipe-tests: New file.
28210         * tests/test-sigpipe.c: New file.
28211         * tests/test-sigpipe.sh: New file.
28212
28213         * modules/write: New file.
28214         * lib/unistd.in.h: Include <sys/types.h>.
28215         (write): New declaration.
28216         * lib/write.c: New file.
28217         * m4/write.m4: New file.
28218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28219         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28220         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28221         GNULIB_WRITE, REPLACE_WRITE.
28222         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28223         and the SIGPIPE issue.
28224
28225         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28226         (raise): New declaration.
28227         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28228         (ext_signal): New function.
28229         (rpl_raise): New function.
28230         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28231         GNULIB_SIGNAL_H_SIGPIPE.
28232         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28233         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28234
28235         * modules/sigpipe: New file.
28236         * m4/sigpipe.m4: New file.
28237
28238 2008-09-25  Derek Price  <derek@ximbiot.com>
28239             Bruno Haible  <bruno@clisp.org>
28240
28241         * gnulib-tool (func_import): Report all license incompatibilities, not
28242         just the first one.
28243
28244 2008-09-25  Bruno Haible  <bruno@clisp.org>
28245
28246         * gnulib-tool (func_import): When computing the edits, consider not
28247         only the Makefile.ams that exist but also those that will be generated.
28248
28249 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28250
28251         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28252         fixes gnulib-tool --test warning about duplicate dependency.
28253
28254 2008-09-25  Bruno Haible  <bruno@clisp.org>
28255
28256         * gnulib-tool: Don't ask the user to perform edits in the generated
28257         Makefile.ams.
28258         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28259         apply to the Makefile.am being generated.
28260         (func_emit_tests_Makefile_am): Execute edits that apply to the
28261         Makefile.am being generated.
28262         (func_import): Setup list of Makefile.am edits before emitting the
28263         Makefile.ams, not at the end.
28264         (func_create_testdir): Update.
28265         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28266
28267 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28268
28269         * gnulib-tool (func_import): Store the --tests-base option in the
28270         comment in gnulib-cache.m4.
28271
28272 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28273
28274         * NEWS: Document increased portability that sys_select now provides.
28275
28276         * lib/sys_select.in.h: Install select wrapper.
28277         * lib/sys_socket.in.h: Use more descriptive name when there is no
28278         select wrapper.
28279         * lib/winsock-select.c: New.
28280         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28281         Require gl_HEADER_SYS_SOCKET.
28282         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28283         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28284         * tests/test-sys_select.c: Add functional tests.
28285
28286 2008-09-24  Eric Blake  <ebb9@byu.net>
28287
28288         open, fopen: close fd leak in last patch
28289         * lib/open.c (rpl_open): Close fd before returning error.
28290         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28291         * doc/posix-functions/open.texi (open): Document that Irix also
28292         has the bug.
28293         * doc/posix-functions/fopen.texi (fopen): Likewise.
28294         Reported by Paolo Bonzini.
28295
28296 2008-09-24  Bruno Haible  <bruno@clisp.org>
28297
28298         Ensure that a filename ending in a slash cannot be used to access a
28299         non-directory.
28300         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28301         to check whether it's really a directory.
28302         * lib/fopen.c: Include fcntl.h, unistd.h.
28303         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28304         and fdopen().
28305         * modules/fopen (Depends-on): Add unistd.
28306         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28307         * tests/test-fopen.c (main): Likewise.
28308         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28309         * doc/posix-functions/fopen.texi: Likewise.
28310         Reported by Eric Blake.
28311
28312 2008-09-23  Eric Blake  <ebb9@byu.net>
28313
28314         c-stack: avoid compiler optimizations when provoking overflow
28315         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28316         recursion harder to optimize, to ensure a stack overflow occurs.
28317         * tests/test-c-stack.c (recurse): Likewise.
28318         Borrowed from libsigsegv.
28319
28320         c-stack: work around Irix sigaltstack bug
28321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28322         whether sigaltstack uses wrong end of stack_t (copied in part from
28323         libsigsegv).
28324         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28325         Irix bug, without requiring an over-allocation.
28326         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28327         bug.
28328
28329         fopen: document mingw bug on directories
28330         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28331         not allowing a stream visiting a directory, even though reading
28332         from such a stream is not portable.
28333
28334 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28335
28336         * lib/poll.c: Rewrite.
28337         * modules/poll: Depend on alloca.
28338
28339 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28340
28341         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28342         instead define prototypes for a full set of wrappers.  Ensure
28343         that Cygwin does not use the compatibility code, which is only
28344         for MinGW.
28345         * lib/winsock.c: New.
28346         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28347         * modules/sys_socket: Add lib/winsock.c.
28348
28349         * modules/poll-tests: Add errno and perror.
28350         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28351
28352 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28353
28354         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28355
28356 2008-09-23  Bruno Haible  <bruno@clisp.org>
28357
28358         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28359         * doc/glibc-functions/*: Likewise.
28360
28361 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28362
28363         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28364         success.
28365
28366 2008-09-22  Eric Blake  <ebb9@byu.net>
28367             Bruno Haible  <bruno@clisp.org>
28368
28369         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28370         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28371         supply %A but mishandle pseudo-NaN.
28372         Reported by Simon Josefsson.
28373
28374 2008-09-21  Bruno Haible  <bruno@clisp.org>
28375
28376         * tests/test-lock.c (main): Tweak skip message.
28377         * tests/test-tls.c (main): Likewise.
28378
28379 2008-09-21  Bruno Haible  <bruno@clisp.org>
28380
28381         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28382         whether 'struct sigaction' has sa_sigaction here...
28383         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28384         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28385
28386 2008-09-21  Bruno Haible  <bruno@clisp.org>
28387
28388         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28389         section.
28390         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28391         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28392         the new section.
28393         (Support for obsolete systems lacking POSIX:2001): New section.
28394         (String handling <string.h>): Move strdup to the new section.
28395         Suggested by Simon Josefsson and Paolo Bonzini.
28396
28397 2008-09-21  Bruno Haible  <bruno@clisp.org>
28398
28399         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28400         exponents in %e and %g results on 'long double'. Needed for mingw's
28401         improved *printf functions.
28402         * tests/test-vasprintf-posix.c (test_function): Likewise.
28403         * tests/test-snprintf-posix.h (test_function): Likewise.
28404         * tests/test-sprintf-posix.h (test_function): Likewise.
28405         Reported by Eric Blake.
28406
28407 2008-09-21  Bruno Haible  <bruno@clisp.org>
28408
28409         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28410         * tests/test-sprintf-posix.h (test_function): Likewise.
28411
28412 2008-09-21  Bruno Haible  <bruno@clisp.org>
28413
28414         * modules/getpass (Depends-on): Add strdup-posix.
28415
28416         New module 'strdup-posix'.
28417         * modules/strdup-posix: New file.
28418         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28419         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28421         REPLACE_STRDUP.
28422         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28423         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28425         strdup-posix.
28426
28427         * modules/strdup (Depends-on): Remove malloc-posix.
28428
28429 2008-09-20  Bruno Haible  <bruno@clisp.org>
28430
28431         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28432         Wildenhues.
28433
28434 2008-09-20  Bruno Haible  <bruno@clisp.org>
28435
28436         Ensure that wint_t gets defined on IRIX 5.3.
28437         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28438         * lib/wctype.in.h (wint_t): Likewise.
28439         (__wctype_wint_t): Remove type.
28440         (isw*): Use wint_t instead of __wctype_wint_t.
28441         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28442         * modules/wchar (Files): Add m4/wint_t.m4.
28443         (Makefile.am): Substitute HAVE_WINT_T.
28444         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28445         * tests/test-wctype.c: Check that wint_t is defined.
28446         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28447         * doc/posix-headers/wctype.texi: Likewise.
28448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28449
28450 2008-09-18  Bruno Haible  <bruno@clisp.org>
28451
28452         * gnulib-tool (func_exit): Update comment.
28453
28454 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28455
28456         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28457         assumes strdup exists and does not depend on strdup to return
28458         ENOMEM on out of memory conditions.
28459
28460 2008-09-18  Bruno Haible  <bruno@clisp.org>
28461
28462         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28463         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28464         digits for the exponent.
28465
28466 2008-09-18  Jim Meyering  <meyering@redhat.com>
28467             Bruno Haible  <bruno@clisp.org>
28468
28469         * lib/vasnprintf.c (decimal_point_char): Define also if
28470         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28471
28472 2008-09-16  Bruno Haible  <bruno@clisp.org>
28473         and Eric Blake  <ebb9@byu.net>
28474
28475         vasnprintf: support Irix 5.3
28476         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28477         that mishandle long double infinity.
28478         Reported by Tom G. Christensen.
28479
28480 2008-09-16  Bruno Haible  <bruno@clisp.org>
28481
28482         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28483         Solaris 9.
28484         * doc/glibc-functions/alphasort.texi: Likewise.
28485         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28486
28487 2008-09-16  Jim Meyering  <meyering@redhat.com>
28488
28489         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28490         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28491         a umask modification leak out of a subshell.  Otherwise, the
28492         opensolaris /bin/sh would be accepted and thus cause unwarranted
28493         failures in the coreutils test suite.
28494
28495 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28496
28497         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28498         to succeed.
28499
28500 2008-09-16  Jim Meyering  <meyering@redhat.com>
28501
28502         avoid spurious test failure when library is built without ACL support
28503         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28504         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28505         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28506         * tests/test-copy-acl.sh: Likewise.
28507
28508 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28509
28510         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28511         based on character occurrence counts.
28512
28513 2008-09-15  Eric Blake  <ebb9@byu.net>
28514
28515         tests: avoid some compiler warnings
28516         * tests/test-memchr.c (main): Pass NULL indirectly.
28517         * tests/test-closein.c (main): Avoid unused variable.
28518
28519 2008-09-15  Bruno Haible  <bruno@clisp.org>
28520
28521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28522         are missing on OpenBSD 4.0 individually.
28523         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28524
28525 2008-09-15  Bruno Haible  <bruno@clisp.org>
28526
28527         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28528         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28529         * doc/posix-functions/perror.texi: Likewise.
28530         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28531         is missing.
28532         Reported by Eric Blake.
28533
28534         * lib/errno.in.h: Use replacement values >= 2000.
28535         Reported by Eric Blake.
28536
28537 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28538
28539         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28540         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28541         limit.
28542         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28543         compareseq was aborted.
28544
28545 2008-09-14  Bruno Haible  <bruno@clisp.org>
28546
28547         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28548         yvec_edit_count.
28549         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28550         (fstrcmp_bounded): Simplify result computation accordingly.
28551
28552 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28553
28554         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28555         (fstrcmp): Define in terms of fstrcmp_bounded.
28556         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28557         lower_bound argument.
28558         Return quickly if the result is certainly < lower_bound.
28559         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28560
28561 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28562
28563         * lib/diffseq.h (EARLY_ABORT): New macro.
28564         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28565         evaluates to true.
28566
28567 2008-09-14  Bruno Haible  <bruno@clisp.org>
28568
28569         * modules/perror-tests: New file.
28570         * tests/test-perror.sh: New file.
28571         * tests/test-perror.c: New file.
28572
28573         New module 'perror'.
28574         * lib/stdio.in.h (perror): New declaration.
28575         * lib/perror.c: New file.
28576         * m4/perror.m4: New file.
28577         * modules/perror: New file.
28578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28579         * doc/posix-functions/perror.texi: Mention the perror module.
28580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28581         REPLACE_PERROR.
28582         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28583         REPLACE_PERROR.
28584
28585 2008-09-14  Bruno Haible  <bruno@clisp.org>
28586
28587         * modules/stdio (Makefile.am): Reorder to match the order in
28588         lib/stdio.in.h.
28589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28590
28591 2008-09-13  Bruno Haible  <bruno@clisp.org>
28592
28593         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28594
28595 2008-09-13  Bruno Haible  <bruno@clisp.org>
28596
28597         Extend strerror to cover the added errno values.
28598         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28599         (rpl_strerror): Provide error messages for the added errno values and
28600         for the WSA* values.
28601         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28602         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28603         strerror.
28604         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28605         * modules/strerror (Depends-on): Add errno.
28606         * doc/posix-functions/strerror.texi: Document the change.
28607         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28608         and EOVERFLOW.
28609
28610 2008-09-13  Bruno Haible  <bruno@clisp.org>
28611
28612         * modules/EOVERFLOW: Remove file.
28613         * m4/eoverflow.m4: Remove file.
28614         * modules/EOVERFLOW-tests: Remove file.
28615         * tests/test-EOVERFLOW.c: Remove file.
28616         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28617         * modules/ftell (Depends-on): Likewise.
28618         * modules/getdelim (Depends-on): Likewise.
28619         * modules/getugroups (Depends-on): Likewise.
28620         * modules/poll (Depends-on): Likewise.
28621         * modules/snprintf (Depends-on): Likewise.
28622         * modules/sprintf-posix (Depends-on): Likewise.
28623         * modules/vasnprintf (Depends-on): Likewise.
28624         * modules/vasprintf (Depends-on): Likewise.
28625         * modules/vfprintf-posix (Depends-on): Likewise.
28626         * modules/vsnprintf (Depends-on): Likewise.
28627         * modules/vsprintf-posix (Depends-on): Likewise.
28628         * modules/xvasprintf (Depends-on): Likewise.
28629         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28630         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28631         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28632         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28633         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28634         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28635         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28636         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28637         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28638         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28639         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28640         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28641         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28642         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28643         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28644         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28645         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28646         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28647         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28648         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28649         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28650         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28651         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28652         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28653         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28654         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28655         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28656         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28657         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28658         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28659         * MODULES.html.sh: Remove EOVERFLOW.
28660         * NEWS: Mention the change.
28661
28662 2008-09-13  Bruno Haible  <bruno@clisp.org>
28663
28664         * modules/errno-tests: New file.
28665         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28666
28667         * lib/errno.in.h: New file.
28668         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28669         * modules/errno: New file.
28670         * doc/posix-headers/errno.texi: Update documentation.
28671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28672
28673 2008-09-13  Bruno Haible  <bruno@clisp.org>
28674
28675         * tests/test-poll.c: Use #if for native Windows, rather than testing
28676         __MSVCRT__.
28677
28678 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28679             Bruno Haible  <bruno@clisp.org>
28680
28681         * lib/glob.c: Don't include <pwd.h> on native Windows.
28682         (WINDOWS32): New macro.
28683         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28684
28685 2008-09-13  Bruno Haible  <bruno@clisp.org>
28686
28687         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28688         (ETIMEDOUT): Remove macro.
28689         (glthread_cond_timedwait_multithreaded): New declaration.
28690         (glthread_cond_timedwait): Use it.
28691         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28692         (glthread_cond_timedwait_multithreaded): New function.
28693
28694 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28695
28696         * modules/poll-tests: Do not check for io.h.
28697         * tests/test-poll.c: Check for __MSVCRT__ instead.
28698
28699 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28700
28701         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28702         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28703         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28704
28705 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28706
28707         * modules/poll-tests: New.
28708         * tests/test-poll.c: New.
28709
28710 2008-09-12  Eric Blake  <ebb9@byu.net>
28711
28712         frexp: test for NetBSD failure on -0.0
28713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28714         not all, bugs from NetBSD 3.0 have been fixed.
28715         * doc/posix-functions/frexp.texi (frexp): Document bug.
28716         Reported by Thomas Klausner.
28717
28718         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28719         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28720         literal -0.0.
28721         Reported by Jonathan C. Patschke <jp@centtech.com>.
28722
28723 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28724
28725         * lib/glthread/cond.h: Use dummy implementation also if
28726         USE_WIN32_THREADS.
28727
28728 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28729
28730         * modules/fnmatch-posix (License): Change to LGPLv2+.
28731         * modules/fnmatch-gnu (License): Likewise.
28732
28733 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28734
28735         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28736
28737 2008-09-11  Jim Meyering  <meyering@redhat.com>
28738
28739         * users.txt: Add gtk-vnc.
28740
28741 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28742
28743         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28744         rotate amounts.
28745
28746         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28747         required for 16-bit and 8-bit rotates.
28748         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28749         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28750         UINT8_MAX instead of hard-coded constants.
28751         Suggested by Paul Eggert.
28752
28753 2008-09-07  Bruno Haible  <bruno@clisp.org>
28754
28755         * tests/test-striconveh.c (main): Check behaviour when converting from
28756         UTF-7.
28757
28758         Make striconveh work better with stateful encodings.
28759         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28760         that iconv does not increment the inptr when returning -1/EINVAL.
28761
28762 2008-09-07  Bruno Haible  <bruno@clisp.org>
28763
28764         * build-aux/config.rpath: Update according to libtool-2.2.6.
28765         * build-aux/config.libpath: Likewise.
28766
28767 2008-09-06  Bruno Haible  <bruno@clisp.org>
28768
28769         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28770         * lib/freadptr.c (freadptr): Likewise.
28771         * lib/freadseek.c (freadptrinc): Likewise.
28772         Reported by Simon Josefsson.
28773
28774 2008-09-06  Bruno Haible  <bruno@clisp.org>
28775
28776         * modules/freadptr (License): Change to LGPLv2+.
28777         * modules/freadseek (License): Likewise.
28778         Suggested by Eric Blake.
28779
28780         * modules/memchr2 (License): Change to LGPLv2+.
28781         Approved by Eric Blake.
28782
28783 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28784             Bruno Haible  <bruno@clisp.org>
28785
28786         Make gnulib-tool work with native 'sed' on AIX.
28787         * gnulib-tool (sed_noop): New variable.
28788         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28789         func_add_or_update, func_create_testdir): Use it to initialize sed
28790         script variables.
28791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28792
28793 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28794             Bruno Haible  <bruno@clisp.org>
28795
28796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28797         also works after #include directives.
28798
28799 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28800
28801         getdate.y: reject an out-of-range timezone value
28802         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28803         the range [-24...+24].  When specified with only one or two digits,
28804         * tests/test-getdate.c: Tests for the fix.
28805         * doc/getdate.texi: Document this change.
28806
28807 2008-09-03  Bruno Haible  <bruno@clisp.org>
28808
28809         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28810
28811 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28812
28813         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28814         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28815         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28816         Blake <ebb9@byu.net>.
28817
28818         * tests/test-bitrotate.c: Add more test vectors.
28819
28820 2008-09-02  Eric Blake  <ebb9@byu.net>
28821
28822         vasnprintf-posix: handle large precision via %.*d
28823         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28824         when handling it ourselves.
28825         * tests/test-vasnprintf-posix.c (test_function): Add test.
28826         * tests/test-snprintf-posix.h (test_function): Likewise.
28827         * tests/test-sprintf-posix.h (test_function): Likewise.
28828         * tests/test-vasprintf-posix.c (test_function): Likewise.
28829         Reported by Alain Guibert.
28830
28831 2008-09-01  Eric Blake  <ebb9@byu.net>
28832
28833         c-stack: make configure-time check more robust
28834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28835         successful sigaction call.
28836         Reported by Tom G. Christensen.
28837
28838 2008-09-01  Bruno Haible  <bruno@clisp.org>
28839
28840         New module 'findprog-lgpl'.
28841         * modules/findprog-lgpl: New file.
28842         * lib/findprog-lgpl.c: New file.
28843         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28844         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28845         to decide whether to use strdup or xstrdup, concatenated_filename or
28846         xconcatenated_filename.
28847
28848 2008-09-01  Bruno Haible  <bruno@clisp.org>
28849
28850         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28851         'xconcat-filename' (GPL).
28852         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28853         (License): Change to LGPLv2+.
28854         * modules/xconcat-filename: New file.
28855         * lib/concat-filename.h (concatenated_filename): Change specification.
28856         (xconcatenated_filename): New declaration.
28857         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28858         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28859         memory situations.
28860         * lib/xconcat-filename.c: New file.
28861         * NEWS: Mention the change.
28862         * lib/findprog.c: Include concat-filename.h, not filename.h.
28863         (find_in_path): Use xconcatenated_filename instead of
28864         concatenated_filename.
28865         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28866         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28867         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28868         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28869         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28870         instead of concatenated_filename.
28871         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28872         (execute_java_class): Use xconcatenated_filename instead of
28873         concatenated_filename.
28874         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28875         * modules/javacomp (Depends-on): Likewise.
28876         * modules/javaexec (Depends-on): Likewise.
28877
28878 2008-09-01  Bruno Haible  <bruno@clisp.org>
28879
28880         Split module 'filename' into 'filename' and 'concat-filename'.
28881         * modules/filename: Keep only lib/filename.h.
28882         (License): Change to LGPLv2+.
28883         * modules/concat-filename: New file, extracted from modules/filename.
28884         * lib/filename.h (concatenated_filename): Remove declaration.
28885         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28886         * lib/concat-filename.c: Include concat-filename.h.
28887         * NEWS: Mention the change.
28888
28889 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28890
28891         * lib/bitrotate.h (rotl8, rotr8): Add.
28892
28893         * modules/bitrotate (configure.ac): Need
28894         AC_REQUIRE([AC_C_INLINE]).
28895         (Description): Mention stdint.h.  Reported by Bruno Haible
28896         <bruno@clisp.org>.
28897
28898         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28899         Paolo Bonzini <bonzini@gnu.org>.
28900
28901 2008-08-31  Bruno Haible  <bruno@clisp.org>
28902
28903         Assume Solaris specific bi-arch conventions on Solaris systems.
28904         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28905         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28906         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28907         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28908         like acl_libdirstem.
28909         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28910         acl_libdirstem.
28911         * NEWS: Mention the change.
28912         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28913
28914 2008-08-31  Jim Meyering  <meyering@redhat.com>
28915
28916         * lib/strftime.h: Add comments describing the two added arguments.
28917
28918         remove duplicate #include directives
28919         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28920         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28921
28922 2008-08-31  Bruno Haible  <bruno@clisp.org>
28923
28924         New module 'sigpipe-die'.
28925         * modules/sigpipe-die: New file.
28926         * lib/sigpipe-die.h: New file.
28927         * lib/sigpipe-die.c: New file.
28928         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28929
28930 2008-08-31  Bruno Haible  <bruno@clisp.org>
28931
28932         Don't override previously installed signal handlers.
28933         * lib/fatal-signal.c (saved_sigactions): New variable.
28934         (uninstall_handlers): Reset the signal to the saved handler, not
28935         to SIG_DFL (except when ignored).
28936         (install_handlers): Save the previous handlers.
28937
28938 2008-08-30  Bruno Haible  <bruno@clisp.org>
28939
28940         * gnulib-tool (func_reset_sigpipe): New function.
28941         (func_get_automake_snippet, func_modules_transitive_closure,
28942         func_import): Invoke it before a join command that reads from stdin,
28943         to avoid "echo: write error: Broken pipe" error messages on stderr.
28944         Reported by Sam Steingold <sds@gnu.org>.
28945
28946 2008-08-30  Bruno Haible  <bruno@clisp.org>
28947
28948         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
28949         Code copied from m4/open.m4.
28950         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
28951         access and the filename ends in a slash. Code copied from lib/open.c.
28952         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
28953         * tests/test-fopen.c (main): Check against bug with trailing slash.
28954
28955 2008-08-29  Bruno Haible  <bruno@clisp.org>
28956
28957         Avoid some "gcc -pedantic" warnings.
28958         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
28959         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
28960         * lib/dirent.in.h: Likewise.
28961         * lib/fcntl.in.h: Likewise.
28962         * lib/float.in.h: Likewise.
28963         * lib/iconv.in.h: Likewise.
28964         * lib/inttypes.in.h: Likewise.
28965         * lib/locale.in.h: Likewise.
28966         * lib/math.in.h: Likewise.
28967         * lib/netinet_in.in.h: Likewise.
28968         * lib/search.in.h: Likewise.
28969         * lib/signal.in.h: Likewise.
28970         * lib/stdarg.in.h: Likewise.
28971         * lib/stdint.in.h: Likewise.
28972         * lib/stdio.in.h: Likewise.
28973         * lib/stdlib.in.h: Likewise.
28974         * lib/string.in.h: Likewise.
28975         * lib/strings.in.h: Likewise.
28976         * lib/sys_select.in.h: Likewise.
28977         * lib/sys_socket.in.h: Likewise.
28978         * lib/sys_stat.in.h: Likewise.
28979         * lib/sys_time.in.h: Likewise.
28980         * lib/sysexits.in.h: Likewise.
28981         * lib/time.in.h: Likewise.
28982         * lib/unistd.in.h: Likewise.
28983         * lib/wchar.in.h: Likewise.
28984         * lib/wctype.in.h: Likewise.
28985         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
28986         * modules/fchdir (Makefile.am): Likewise.
28987         * modules/fcntl (Makefile.am): Likewise.
28988         * modules/float (Makefile.am): Likewise.
28989         * modules/iconv_open (Makefile.am): Likewise.
28990         * modules/inttypes (Makefile.am): Likewise.
28991         * modules/locale (Makefile.am): Likewise.
28992         * modules/math (Makefile.am): Likewise.
28993         * modules/netinet_in (Makefile.am): Likewise.
28994         * modules/search (Makefile.am): Likewise.
28995         * modules/signal (Makefile.am): Likewise.
28996         * modules/stdarg (Makefile.am): Likewise.
28997         * modules/stdint (Makefile.am): Likewise.
28998         * modules/stdio (Makefile.am): Likewise.
28999         * modules/stdlib (Makefile.am): Likewise.
29000         * modules/string (Makefile.am): Likewise.
29001         * modules/strings (Makefile.am): Likewise.
29002         * modules/sys_select (Makefile.am): Likewise.
29003         * modules/sys_socket (Makefile.am): Likewise.
29004         * modules/sys_stat (Makefile.am): Likewise.
29005         * modules/sys_time (Makefile.am): Likewise.
29006         * modules/sysexits (Makefile.am): Likewise.
29007         * modules/time (Makefile.am): Likewise.
29008         * modules/unistd (Makefile.am): Likewise.
29009         * modules/wchar (Makefile.am): Likewise.
29010         * modules/wctype (Makefile.am): Likewise.
29011         Reported by Reuben Thomas <rrt@sc3d.org>.
29012
29013 2008-08-29  Bruno Haible  <bruno@clisp.org>
29014
29015         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29016         any more.
29017
29018 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29019
29020         * MODULES.html.sh (Misc): Add bitrotate.
29021
29022         * modules/bitrotate: New file.
29023
29024         * lib/bitrotate.h: New file.
29025
29026         * modules/bitrotate-tests: New file.
29027
29028         * tests/test-bitrotate.c: New file.
29029
29030         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29031         on the bitrotate module.
29032
29033         * lib/arctwo.c: Use new bitrotate module.
29034
29035 2008-08-29  Jim Meyering  <meyering@redhat.com>
29036
29037         bootstrap: merge changes from coreutils
29038         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29039         of copied files.  Remove a kludge, now that this is fixed.
29040         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29041         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29042         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29043
29044 2008-08-29  Bruno Haible  <bruno@clisp.org>
29045
29046         * MODULES.html.sh: Remove --cvs-urls option.
29047
29048 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29049
29050         maint.mk: adjust to file name change
29051         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29052
29053 2008-08-28  Jim Meyering  <meyering@redhat.com>
29054
29055         * modules/getndelim2 (License): Relicense to LGPLv2+.
29056         Approved by Richard Stallman for the version of 1995, and by
29057         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29058
29059 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29060
29061         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29062         dummy if one is not available.  Do not touch them if
29063         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29064         (getc_maybe_unlocked): New.
29065         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29066
29067 2008-08-26  Eric Blake  <ebb9@byu.net>
29068
29069         doc/INSTALL: resync from autoconf
29070         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29071         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29072         moving...
29073         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29074         * INSTALL: Regenerate.
29075         * INSTALL.ISO: New file.
29076         * INSTALL.UTF-8: Likewise.
29077
29078 2008-08-26  Jim Meyering  <meyering@redhat.com>
29079
29080         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29081         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29082         these definitions conditional, so that they may be overridden, too.
29083
29084 2008-08-26  Bruno Haible  <bruno@clisp.org>
29085
29086         Generate INSTALL file variants with prettier quotes.
29087         * doc/Makefile (INSTALL_PRELUDE): New macro.
29088         (INSTALL): Use it.
29089         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29090
29091 2008-08-26  Bruno Haible  <bruno@clisp.org>
29092
29093         Run makeinfo in an English locale.
29094         * doc/Makefile (MAKEINFO): New variable.
29095
29096 2008-08-26  Bruno Haible  <bruno@clisp.org>
29097
29098         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29099         Suggested by Eric Blake.
29100
29101 2008-08-25  Bruno Haible  <bruno@clisp.org>
29102
29103         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29104
29105 2008-08-25  Eric Blake  <ebb9@byu.net>
29106
29107         c-stack: test that stack overflow can be caught
29108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29109         that platform allows handling stack overflow; at least OS/2 EMX
29110         has sigaltstack, but crashes before transferring control to
29111         handler on stack overflow.
29112         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29113         check for HAVE_STACK_OVERFLOW_HANDLING.
29114         Reported by Elbert Pol.
29115
29116 2008-08-25  Bruno Haible  <bruno@clisp.org>
29117
29118         * doc/posix-functions/strftime.texi: Fix description of strftime
29119         module.
29120
29121 2008-08-24  Bruno Haible  <bruno@clisp.org>
29122
29123         * tests/uniwidth/test-uc_width2.c: New file.
29124         * tests/uniwidth/test-uc_width2.sh: New file.
29125         * modules/uniwidth/width-tests (Files): Add the new files.
29126         (TESTS): Add uniwidth/test-uc_width2.sh.
29127         (TESTS_ENVIRONMENT): New variable.
29128         (check_PROGRAMS): Add test-uc_width2.
29129         (test_uc_width2_SOURCES): New variable.
29130
29131         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29132         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29133         not 0x00AB.
29134         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29135
29136 2008-08-22  Eric Blake  <ebb9@byu.net>
29137
29138         test-lock, test-tls: mention why a test is skipped
29139         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29140         skipped.
29141         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29142
29143         count-one-bits: relax license
29144         * modules/count-one-bits (License): Relicense to LGPLv2+.
29145         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29146
29147 2008-08-22  Andreas Schwab  <schwab@suse.de>
29148
29149         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29150         Remove spurious space in assignment.
29151
29152 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29153
29154         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29155         Paul Eggert <eggert@CS.UCLA.EDU>.
29156
29157 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29158
29159         * modules/gettext: Add m4/threadlib.m4.
29160
29161 2008-08-19  Eric Blake  <ebb9@byu.net>
29162
29163         test-c-stack: fix compilation failure on FreeBSD 5.0
29164         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29165         headers before <sys/resource.h>.
29166         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29167         the bug.
29168         Reported by Nelson H. F. Beebe.
29169
29170         strverscmp: migrate from "strverscmp.h" to <string.h>
29171         * modules/string (Makefile.am): Add new hooks.
29172         * modules/strverscmp (Files): Remove strverscmp.h.
29173         (Depends-on): Add string.
29174         (configure.ac): Add indicator.
29175         (Include): Mention new header.
29176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29177         defaults.
29178         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29179         results.
29180         * lib/strverscmp.h: Delete.
29181         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29182         * tests/test-strverscmp.c (includes): Adjust client.
29183         * lib/check-version.c (includes): Likewise.
29184         * NEWS: Document the change.
29185
29186         strverscmp: add unit test
29187         * modules/strverscmp-tests: New file.
29188         * tests/test-strverscmp.c: Likewise.
29189
29190 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29191
29192         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29193         regarding Windows crypto stuff, from Mono.
29194
29195 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29196
29197         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29198         if present, for intel RND.  Return error on failures.
29199
29200 2008-08-18  Ben Pfaff  <blp@gnu.org>
29201
29202         gitlog-to-changelog: give better diagnostic for failed pipe-open
29203         * build-aux/gitlog-to-changelog: Improve error message: suggest
29204         that the version of Git may be too old.
29205
29206 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29207
29208         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29209         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29210
29211 2008-08-18  Bruno Haible  <bruno@clisp.org>
29212
29213         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29214         pthread_in_use().
29215
29216 2008-08-18  Bruno Haible  <bruno@clisp.org>
29217
29218         * lib/glthread/threadlib.c: Include <pthread.h>.
29219
29220 2008-08-18  Bruno Haible  <bruno@clisp.org>
29221
29222         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29223         glthread_recursive_lock_* macros.
29224         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29225         Fix syntax error.
29226
29227 2008-08-18  Bruno Haible  <bruno@clisp.org>
29228
29229         * lib/glthread/thread.c: Avoid forcing a context switch right after
29230         thread creation.
29231
29232 2008-08-17  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29235         * lib/glthread/thread.h: Provide Win32 specific implementation.
29236         * modules/thread (Files): Add lib/glthread/thread.c.
29237         (Depends-on): Add lock.
29238         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29239
29240 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29241
29242         New module 'yield'.
29243         * modules/yield: New file.
29244         * lib/glthread/yield.h: New file.
29245         * m4/yield.m4: New file.
29246         * MODULES.html.sh (Multithreading): Add yield.
29247
29248 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29249
29250         New module 'thread'.
29251         * modules/thread: New file.
29252         * lib/glthread/thread.h: New file.
29253         * m4/thread.m4: New file.
29254         * MODULES.html.sh (Multithreading): Add thread.
29255
29256 2008-08-17  Bruno Haible  <bruno@clisp.org>
29257
29258         * lib/glthread/lock.h: Include <stdlib.h> always.
29259         * lib/glthread/tls.h: Likewise.
29260         * lib/glthread/cond.h: Likewise.
29261
29262 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29263
29264         New module 'cond'.
29265         * modules/cond: New file.
29266         * lib/glthread/cond.h: New file.
29267         * lib/glthread/cond.c: New file.
29268         * m4/cond.m4: New file.
29269         * MODULES.html.sh (Multithreading): Add cond.
29270
29271 2008-08-16  Eric Blake  <ebb9@byu.net>
29272
29273         c-stack: fix regression on Irix 5.3 from 2008-06-21
29274         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29275         sa_sigaction...
29276         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29277         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29279         * modules/signal (Makefile.am): Use the value.
29280         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29281         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29282         * doc/posix-headers/signal.texi (signal.h): Document this
29283         portability issue.
29284         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29285         Reported by Tom G. Christensen.
29286
29287 2008-08-17  Bruno Haible  <bruno@clisp.org>
29288
29289         New module 'threadlib'.
29290         * modules/threadlib: New file.
29291         * lib/glthread/threadlib.c: New file, extracted from
29292         lib/glthread/lock.c.
29293         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29294         functions.
29295         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29296         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29297         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29298         macros.
29299         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29300         (gl_DISABLE_THREADS): Remove macro.
29301         * modules/lock (Files): Remove build-aux/config.rpath.
29302         (Depends-on): Remove havelib. Add threadlib.
29303         (configure.ac-early): Remove section.
29304         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29305         * modules/tls (Depends-on): Remove lock. Add threadlib.
29306         (Link): New section, copied from threadlib.
29307         * MODULES.html.sh (Multithreading): Add threadlib.
29308
29309 2008-08-14  Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29312         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29313         glthread_rwlock_unlock, glthread_rwlock_destroy,
29314         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29315         glthread_recursive_lock_destroy): Define as macros always.
29316         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29317         glthread_lock_lock.
29318         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29319         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29320         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29321         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29322         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29323         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29324         (glthread_recursive_lock_lock_func): Renamed from
29325         glthread_recursive_lock_lock.
29326         (glthread_recursive_lock_unlock_func): Renamed from
29327         glthread_recursive_lock_unlock.
29328         (glthread_recursive_lock_destroy_func): Renamed from
29329         glthread_recursive_lock_destroy.
29330
29331 2008-08-14  Bruno Haible  <bruno@clisp.org>
29332
29333         * lib/glthread/lock.h: Renamed from lib/lock.h.
29334         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29335         * lib/glthread/tls.h: Renamed from lib/tls.h.
29336         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29337         * lib/fstrcmp.c: Update includes.
29338         * lib/strsignal.c: Update includes.
29339         * modules/lock (Files, Makefile.am): Update.
29340         (Include): Change to "glthread/lock.h".
29341         * modules/tls (Files, Makefile.am): Update.
29342         (Include): Change to "glthread/tls.h".
29343         * tests/test-lock.c: Update includes.
29344         * tests/test-tls.c: Update includes.
29345         * NEWS: Mention the renamed header files.
29346
29347 2008-08-11  Jim Meyering  <meyering@redhat.com>
29348
29349         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29350
29351 2008-08-11  Eric Blake  <ebb9@byu.net>
29352
29353         test-c-stack: avoid C99-ism
29354         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29355         before statement.
29356         Reported by Alain Guibert.
29357
29358 2008-08-10  Jim Meyering  <meyering@redhat.com>
29359
29360         ensure that return value of uinttostr et al are not ignored
29361         * lib/inttostr.h (__GNUC_PREREQ): Define.
29362         (__attribute_warn_unused_result__): Define.
29363         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29364
29365 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29366
29367         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29368         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29369
29370 2008-08-07  Jim Meyering  <meyering@redhat.com>
29371
29372         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29373
29374         * modules/mkstemp (License): Relicense under LGPLv2+.
29375         * modules/tempname (License): Likewise.
29376
29377 2008-08-06  Bruno Haible  <bruno@clisp.org>
29378
29379         * lib/poll.c (poll): Further micro-optimization.
29380
29381 2008-08-06  Jim Meyering  <meyering@redhat.com>
29382
29383         inet_pton.c: use locale-independent tolower
29384         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29385         (inet_pton6): Use c_tolower rather than tolower.
29386         * modules/inet_pton (Depends-on): Add c-ctype.
29387
29388 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29389
29390         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29391         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29392
29393 2008-08-06  Jim Meyering  <meyering@redhat.com>
29394
29395         * modules/inet_pton (License): Relicense under LGPLv2+.
29396
29397 2008-08-03  Bruno Haible  <bruno@clisp.org>
29398
29399         Additional non-aborting API for lock and tls.
29400         * lib/lock.h: Include <errno.h>.
29401         (glthread_lock_init): New macro/function.
29402         (gl_lock_init): Define as wrapper around glthread_lock_init.
29403         (glthread_lock_lock): New macro/function.
29404         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29405         (glthread_lock_unlock): New macro/function.
29406         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29407         (glthread_lock_destroy): New macro/function.
29408         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29409         (glthread_rwlock_init): New macro/function.
29410         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29411         (glthread_rwlock_rdlock): New macro/function.
29412         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29413         (glthread_rwlock_wrlock): New macro/function.
29414         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29415         (glthread_rwlock_unlock): New macro/function.
29416         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29417         (glthread_rwlock_destroy): New macro/function.
29418         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29419         (glthread_recursive_lock_init): New macro/function.
29420         (gl_recursive_lock_init): Define as wrapper around
29421         glthread_recursive_lock_init.
29422         (glthread_recursive_lock_lock): New macro/function.
29423         (gl_recursive_lock_lock): Define as wrapper around
29424         glthread_recursive_lock_lock.
29425         (glthread_recursive_lock_unlock): New macro/function.
29426         (gl_recursive_lock_unlock): Define as wrapper around
29427         glthread_recursive_lock_unlock.
29428         (glthread_recursive_lock_destroy): New macro/function.
29429         (gl_recursive_lock_destroy): Define as wrapper around
29430         glthread_recursive_lock_destroy.
29431         (glthread_once): New macro/function.
29432         (gl_once): Define as wrapper around glthread_once.
29433         Update function declarations.
29434         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29435         glthread_rwlock_init. Return error code.
29436         (glthread_rwlock_rdlock_multithreaded): Renamed from
29437         glthread_rwlock_rdlock. Return error code.
29438         (glthread_rwlock_wrlock_multithreaded): Renamed from
29439         glthread_rwlock_wrlock. Return error code.
29440         (glthread_rwlock_unlock_multithreaded): Renamed from
29441         glthread_rwlock_unlock. Return error code.
29442         (glthread_rwlock_destroy_multithreaded): Renamed from
29443         glthread_rwlock_destroy. Return error code.
29444         (glthread_recursive_lock_init_multithreaded): Renamed from
29445         glthread_recursive_lock_init. Return error code.
29446         (glthread_recursive_lock_lock_multithreaded): Renamed from
29447         glthread_recursive_lock_lock. Return error code.
29448         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29449         glthread_recursive_lock_unlock. Return error code.
29450         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29451         glthread_recursive_lock_destroy. Return error code.
29452         (glthread_once_call): Make static.
29453         (glthread_once_multithreaded): Renamed from glthread_once.
29454         * lib/tls.h: Include <errno.h>.
29455         (glthread_tls_key_init): New macro/function.
29456         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29457         (glthread_tls_set): New macro/function.
29458         (gl_tls_set): Define as wrapper around glthread_tls_set.
29459         (glthread_tls_key_destroy): New macro/function.
29460         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29461         Update function declarations.
29462         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29463         glthread_tls_get.
29464         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29465
29466 2008-08-04  Eric Blake  <ebb9@byu.net>
29467
29468         gnumakefile: use space, not TAB, outside of targets
29469         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29470
29471 2008-08-02  Jim Meyering  <meyering@redhat.com>
29472
29473         getdate.y: avoid locale-dependent date parsing failure
29474         In Turkish locales, getdate would fail to recognize keywords
29475         containing a lowercase "i".  The solution is not to rely on
29476         locale-sensitive case-conversion.
29477         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29478         (lookup_word): Use c_toupper in place of toupper.
29479         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29480         Reported by Vefa Bicakci <bicave@superonline.com> in
29481         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29482         * modules/getdate (Depends-on): Add c-ctype.
29483
29484 2008-08-02  Bruno Haible  <bruno@clisp.org>
29485
29486         * gnulib-tool (func_import): When updating or creating a .gitignore
29487         file, prepend each added line with a slash, and ignore leading slashes
29488         from the existing lines.
29489         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29490
29491 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29492
29493         Portability fix for GNU make 3.79.1.
29494         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29495         versions do not understand.
29496
29497 2008-08-01  Bruno Haible  <bruno@clisp.org>
29498
29499         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29500         * tests/test-isnanf.h (zero): New variable.
29501         (main): Avoid literal -0.0f.
29502         * tests/test-isnand.h (zero): New variable.
29503         (main): Avoid literal -0.0.
29504         * tests/test-isnanl.h (zero): New variable.
29505         (main): Avoid literal -0.0L.
29506         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29507         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29508         -0.0, -0.0L.
29509         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29510         (test_signbitd): Avoid literal -0.0.
29511         (test_signbitl): Avoid literal -0.0L.
29512         * tests/test-ceilf1.c (zero): New variable.
29513         (main): Avoid literal -0.0f.
29514         * tests/test-ceill.c (zero): New variable.
29515         (main): Avoid literal -0.0L.
29516         * tests/test-floorf1.c (zero): New variable.
29517         (main): Avoid literal -0.0f.
29518         * tests/test-floorl.c (zero): New variable.
29519         (main): Avoid literal -0.0L.
29520         * tests/test-roundf1.c (zero): New variable.
29521         (main): Avoid literal -0.0f.
29522         * tests/test-round1.c (zero): New variable.
29523         (main): Avoid literal -0.0.
29524         * tests/test-roundl.c (zero): New variable.
29525         (main): Avoid literal -0.0L.
29526         * tests/test-truncf1.c (zero): New variable.
29527         (main): Avoid literal -0.0f.
29528         * tests/test-trunc1.c (zero): New variable.
29529         (main): Avoid literal -0.0.
29530         * tests/test-truncl.c (zero): New variable.
29531         (main): Avoid literal -0.0L.
29532         * tests/test-frexp.c (zero): New variable.
29533         (main): Avoid literal -0.0.
29534         * tests/test-frexpl.c (zero): New variable.
29535         (main): Avoid literal -0.0L.
29536         * tests/test-ldexpl.c (zero): New variable.
29537         (main): Avoid literal -0.0L.
29538         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29539         (zerod, zerol): New variables.
29540         (test_function): Avoid literals -0.0, -0.0L.
29541         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29542         (zerod, zerol): New variables.
29543         (test_function): Avoid literals -0.0, -0.0L.
29544         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29545         (zerod, zerol): New variables.
29546         (test_function): Avoid literals -0.0, -0.0L.
29547         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29548         (zerod, zerol): New variables.
29549         (test_function): Avoid literals -0.0, -0.0L.
29550         * tests/test-strtod.c (zero): New variable.
29551         (main): Avoid literal -0.0.
29552         Reported by Jonathan C. Patschke <jp@centtech.com>.
29553
29554 2008-07-31  Jim Meyering  <meyering@redhat.com>
29555
29556         sha256.h: correct definition of SHA224_DIGEST_SIZE
29557         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29558         Reported by Paulie Pena IV <paulie4@gmail.com>.
29559         Define as 224 / 8, rather than as a literal.
29560         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29561         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29562         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29563
29564 2008-07-31  Bruno Haible  <bruno@clisp.org>
29565
29566         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29567         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29568         Reported by Jonathan Patschke <jp@centtech.com>.
29569
29570 2008-07-31  Bruno Haible  <bruno@clisp.org>
29571
29572         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29573         Reported by Paolo Bonzini <bonzini@gnu.org>.
29574
29575 2008-07-30  Eric Blake  <ebb9@byu.net>
29576
29577         test-strtod: allow compilation without -lm
29578         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29579         Reported by Dennis Clarke <blastwave@gmail.com>.
29580
29581 2008-07-28  Jim Meyering  <meyering@redhat.com>
29582
29583         bootstrap: work also when there are no .po files in po/
29584         * build-aux/bootstrap (update_po_files): Complete the change
29585         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29586
29587 2008-07-27  Jim Meyering  <meyering@redhat.com>
29588
29589         * users.txt: Add zile.
29590
29591 2008-07-26  Ben Pfaff  <blp@gnu.org>
29592
29593         Add missing dependencies on new m4/exponent[fdl].m4 files.
29594         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29595         * modules/isnand-nolibm: Add m4/exponentd.m4.
29596         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29597         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29598         m4/isnan[fdl].m4, because the macros actually used moved.
29599         Reported by Jim Meyering.
29600
29601 2008-07-14  Ben Pfaff  <blp@gnu.org>
29602
29603         Add isinf module.
29604         * lib/isinf.c: New file.
29605         * lib/math.in.h: Define isinf macro if we have decided to replace
29606         it.
29607         * m4/isinf.m4: New file.
29608         * m4/math_h.m4: Initialize and substitute variables for isinf
29609         module.
29610         * modules/isinf: New file.
29611         * modules/isinf-tests: New file.
29612         * modules/math: Add substitutions for new module.
29613         * tests/test-isinf.c: New file.
29614         * doc/posix-functions/isinf.texi: Mention new module.
29615         * MODULES.html.sh: Mention new module.
29616
29617 2008-07-14  Ben Pfaff  <blp@gnu.org>
29618
29619         Factor out some macros for use by additional modules.
29620         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29621         exponentf.m4.
29622         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29623         exponentd.m4.
29624         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29625         file exponentl.m4.
29626         * m4/exponentf.m4: New file.
29627         * m4/exponentd.m4: New file.
29628         * m4/exponentl.m4: New file.
29629         * modules/isnanf: Use new file m4/exponentf.m4.
29630         * modules/isnand: Use new file m4/exponentd.m4.
29631         * modules/isnanl: Use new file m4/exponentl.m4.
29632
29633 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29634
29635         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29636         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29637         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29638         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29639
29640         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29641         readlink on platforms without PATH_MAX.
29642
29643 2008-07-21  Eric Blake  <ebb9@byu.net>
29644
29645         Warn, not fail, on stale version.
29646         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29647
29648         Don't allow installation with stale devel version number.
29649         * top/GNUmakefile (_is-install-target): New macro.
29650         (_curr-ver): Forbid installation with stale version number.
29651
29652 2008-07-20  Bruno Haible  <bruno@clisp.org>
29653
29654         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29655         TESTS_ENVIRONMENT.
29656         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29657
29658 2008-07-20  Bruno Haible  <bruno@clisp.org>
29659
29660         * lib/c-stack.h (c_stack_action): Add documentation.
29661         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29662
29663 2008-07-20  Bruno Haible  <bruno@clisp.org>
29664
29665         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29666         * modules/readlink (License): Likewise.
29667
29668 2008-07-17  Eric Blake  <ebb9@byu.net>
29669
29670         * modules/c-stack (Link): Fix typo.
29671
29672         Make c-stack use libsigsegv, when available.
29673         * modules/c-stack (Depends-on): Add libsigsegv.
29674         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29675         needed.
29676         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29677         (segv_handler, overflow_handler, c_stack_action)
29678         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29679         implementation when libsigsegv is available, but only when using
29680         the library is necessary.
29681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29682         comment, explaining why XSI check fails on Linux.
29683         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29684         * tests/test-c-stack2.sh: Tweak skip message.
29685         * NEWS: Document new link-time requirements.
29686
29687 2008-07-16  Eric Blake  <ebb9@byu.net>
29688
29689         c-stack: Expose false positives when not using libsigsegv.
29690         * modules/c-stack-tests (Files): Expand test.
29691         * tests/test-c-stack.c (main): Add means to conditionally trigger
29692         non-overflow SIGSEGV.
29693         * tests/test-c-stack2.sh: New file.
29694
29695 2008-07-14  Bruno Haible  <bruno@clisp.org>
29696
29697         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29698         Reported by Eric Blake.
29699
29700 2008-07-14  Sam Steingold  <sds@gnu.org>
29701             Bruno Haible  <bruno@clisp.org>
29702
29703         New module libsigsegv.
29704         * modules/libsigsegv: New file.
29705         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29706         modifications.
29707         * MODULES.html.sh (Signal handling): New section.
29708
29709 2008-07-14  Bruno Haible  <bruno@clisp.org>
29710
29711         * modules/unictype/ctype-* (Description): Add the word "function".
29712         Improves the resulting doc in MODULES.html.
29713
29714 2008-07-12  Ben Pfaff  <blp@gnu.org>
29715
29716         Add longlong module.
29717         * modules/longlong: New file.
29718
29719 2008-07-12  Bruno Haible  <bruno@clisp.org>
29720
29721         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29722         to empty.
29723
29724 2008-07-10  Ben Pfaff  <blp@gnu.org>
29725
29726         Add isnan module.
29727         * doc/posix-functions/isnan.texi: Mention new module.
29728         * lib/math.in.h: Define isnan macro if we have decided to replace
29729         it.
29730         * m4/isnan.m4: New file.
29731         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29732         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29733         also.
29734         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29735         redundancy.
29736         * m4/math_h.m4: Initialize and substitute variables for isnan
29737         module.
29738         * modules/isnan: New file.
29739         * modules/isnan-tests: New file.
29740         * modules/math: Add substitutions for new module.
29741         * tests/test-isnan.c: New file.
29742         * MODULES.html.sh: Mention new module.
29743
29744 2008-07-10  Ben Pfaff  <blp@gnu.org>
29745
29746         Add isnanf module.
29747         * lib/isnanf.m4: New file.
29748         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29749         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29750         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29751         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29752         * modules/isnanf: New file.
29753         * modules/isnanf-tests: New file.
29754         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29755         files.
29756         * tests/test-isnanf-nolibm.c: factored most of its contents into
29757         new file tests/test-isnanf.h.
29758         * tests/test-isnanf.h: New file.
29759         * tests/test-isnanf.c: New file.
29760         * MODULES.html.sh: Mention new module.
29761         * doc/glibc-functions/isnanf.texi: Mention new module.
29762
29763 2008-07-10  Ben Pfaff  <blp@gnu.org>
29764
29765         Add isnand module.
29766         * lib/isnand.h: New file.
29767         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29768         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29769         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29770         functionality also.
29771         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29772         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29773         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29774         * modules/isnand: New file.
29775         * modules/isnand-tests: New file.
29776         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29777         files.
29778         * tests/test-isnand-nolibm.c: factored most of its contents into
29779         new file tests/test-isnand.h.
29780         * tests/test-isnand.h: New file.
29781         * tests/test-isnand.c: New file.
29782         * MODULES.html.sh: Mention new module.
29783
29784 2008-07-10  Ben Pfaff  <blp@gnu.org>
29785
29786         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29787         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29788         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29789         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29790         * modules/isnanf-nolibm: Update references to renamed files.
29791         * modules/isnand-nolibm: Likewise.
29792         * modules/isnanf-nolibm-tests: Likewise.
29793         * modules/isnand-nolibm-tests: Likewise.
29794         * lib/frexp.c: Likewise.
29795         * lib/isfinite.c: Likewise.
29796         * lib/signbitd.c: Likewise.
29797         * lib/signbitf.c: Likewise.
29798         * lib/vasnprintf.c: Likewise.
29799         * tests/test-ceilf1.c: Likewise.
29800         * tests/test-ceilf2.c: Likewise.
29801         * tests/test-floorf1.c: Likewise.
29802         * tests/test-floorf2.c: Likewise.
29803         * tests/test-frexp.c: Likewise.
29804         * tests/test-round1.c: Likewise.
29805         * tests/test-round2.c: Likewise.
29806         * tests/test-roundf1.c: Likewise.
29807         * tests/test-strtod.c: Likewise.
29808         * tests/test-trunc1.c: Likewise.
29809         * tests/test-trunc2.c: Likewise.
29810         * tests/test-truncf1.c: Likewise.
29811         * tests/test-truncf2.c: Likewise.
29812         * NEWS: Mention the renamed header files.
29813
29814 2008-07-11  Jim Meyering  <meyering@redhat.com>
29815
29816         vc-list-files: make the last-resort awk code more portable
29817         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29818         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29819         does not support it.
29820
29821 2008-07-10  Eric Blake  <ebb9@byu.net>
29822
29823         Work with tar's bootstrap.
29824         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29825         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29826         an m4 comment.
29827
29828 2008-07-09  Jim Meyering  <meyering@redhat.com>
29829
29830         posix-shell.m4: fix typo that made this test malfunction
29831         * m4/posix-shell.m4: Remove capitalization in variable name.
29832
29833 2008-07-08  Bruno Haible  <bruno@clisp.org>
29834
29835         * m4/onceonly.m4: Update comments.
29836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29837
29838 2008-07-04  Jim Meyering  <meyering@redhat.com>
29839
29840         * users.txt: Add vc-dwim.
29841         (bison, coreutils): Use the gitweb URL.
29842
29843 2008-07-03  Jim Meyering  <meyering@redhat.com>
29844
29845         * users.txt: Add libffcall.  From Sam Steingold.
29846
29847 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29848
29849         getdate.y: do not ignore TZ with relative day, month or year offset
29850         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29851         relative-date-handling, since otherwise, the latter would clobber the
29852         sole output (an updated Start value) of the tz-handling block.
29853         * tests/test-getdate.c: Tests for the fix
29854
29855 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29856
29857         Recognize 'foo_LIBRARIES += libgnu.a'.
29858         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29859         makefile snippet has already specified an installation location,
29860         also using '+='.
29861
29862 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
29863
29864         getdate.y: factor out common actions
29865         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29866         Use them in place of open-coded actions.
29867
29868 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29869
29870         Add self-test for getdate module.
29871         * modules/getdate-tests: New file.
29872         * tests/test-getdate.c: New file.
29873
29874 2008-06-29  Bruno Haible  <bruno@clisp.org>
29875
29876         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29877         .gitignore.
29878         Reported by Sylvain Beucler <beuc@beuc.net>.
29879
29880 2008-06-29  Bruno Haible  <bruno@clisp.org>
29881
29882         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29883         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29884
29885 2008-06-29  Bruno Haible  <bruno@clisp.org>
29886
29887         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29888         EXTRA_DIST.
29889         Reported by Sylvain Beucler <beuc@beuc.net>.
29890
29891 2008-06-26  Jim Meyering  <meyering@redhat.com>
29892
29893         make several modules depend on the "open" module
29894         This provides slightly increased consistency when opening-for-write
29895         the name of a non-directory spelled with a trailing slash.
29896         * modules/chdir-safer: Likewise.
29897         * modules/chown: Likewise.
29898         * modules/clean-temp: Likewise.
29899         * modules/copy-file: Likewise.
29900         * modules/fchdir: Likewise.
29901         * modules/fcntl-safer: Likewise.
29902         * modules/pipe: Likewise.
29903         * modules/utime: Likewise.
29904         Prompted by Eric Blake and Bruno Haible.
29905
29906 2008-06-24  Andreas Schwab  <schwab@suse.de>
29907
29908         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29909         literals can be used as initializers for global variables.
29910
29911 2008-06-23  Eric Blake  <ebb9@byu.net>
29912
29913         Make gnulib-cache.m4 easier to diff.
29914         * gnulib-tool (func_import): Allow newlines when reading cached
29915         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29916
29917 2008-06-23  Bruno Haible  <bruno@clisp.org>
29918
29919         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29920         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29921         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29922         m4/signalblocking.m4.
29923         (gl_PREREQ_SIGACTION): Don't invoke it.
29924         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29925         gl_PREREQ_SIG_HANDLER_H.
29926         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29927         Don't check for sigaction here.
29928
29929 2008-06-23  Bruno Haible  <bruno@clisp.org>
29930
29931         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29932         (install_handlers): Don't set the SA_RESETHAND flag.
29933
29934 2008-06-23  Bruno Haible  <bruno@clisp.org>
29935
29936         * m4/sigaction.m4: Comment fixes.
29937         * lib/signal.in.h: Likewise.
29938
29939 2008-06-23  Eric Blake  <ebb9@byu.net>
29940
29941         Fix typo.
29942         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
29943
29944         Avoid SA_ namespace.
29945         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
29946         Reported by Ralf Wildenhues.
29947
29948         Avoid test failure due to SA_RESTORER.
29949         * tests/test-sigaction.c (SA_MASK): New macro.
29950         (main): Avoid failing due to extension flags being set.
29951         Reported by Jim Meyering.
29952
29953         Revert use of sig-handler.h in sigprocmask.c.
29954         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
29955         it requires the existence of struct sigaction.
29956         * lib/sigprocmask.c (handler_t): Restore typedef.
29957         (rpl_signal, old_handlers): Use local type.
29958
29959 2008-06-22  Bruno Haible  <bruno@clisp.org>
29960
29961         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
29962         conditionally.
29963         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29964
29965 2008-06-22  Bruno Haible  <bruno@clisp.org>
29966
29967         * doc/posix-functions/siginterrupt.texi: Move note.
29968
29969         * lib/signal.in.h (SA_RESTART): New macro.
29970         * lib/sigaction.c: Update comment.
29971
29972         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
29973
29974         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
29975         (gl_PREREQ_SIGPROCMASK): Invoke it.
29976         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
29977
29978         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
29979
29980         * lib/sigprocmask.c: Update a comment.
29981
29982 2008-06-21  Eric Blake  <ebb9@byu.net>
29983
29984         Use sigaction module rather than signal().
29985         * modules/c-stack (Depends-on): Add sigaction.
29986         * modules/fatal-signal (Depends-on): Likewise.
29987         * modules/nanosleep (Depends-on): Likewise.
29988         * modules/sigprocmask (Files): Add sig-handler.h.
29989         * modules/sigaction (Files): Likewise.
29990         * lib/sig-handler.h (get_handler): New file, suggested by Paul
29991         Eggert.
29992         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
29993         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
29994         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
29995         (init_fatal_signals): Likewise.
29996         * lib/nanosleep.c (rpl_nanosleep): Likewise.
29997         (siginterrupt): Delete fallback.
29998         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
29999         instead.
30000         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30001         siginterrupt.
30002
30003         New module sigaction, for mingw.
30004         * modules/sigaction: New module...
30005         * modules/sigaction-tests: ...and its test.
30006         * m4/sigaction.m4: New file.
30007         * lib/sigaction.c: Likewise.
30008         * tests/test-sigaction.c: Likewise.
30009         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30010         * modules/signal (Makefile.am): Likewise.
30011         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30012         needed.
30013         * doc/posix-headers/signal.texi (signal.h): Mention provided
30014         types.
30015         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30016         that sigaction is preferable.
30017         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30018         module.
30019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30020         sigaction.
30021
30022         Improve robustness of sigprocmask by overriding signal.
30023         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30024         is in use.
30025         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30026         (SIGKILL, SIGSTOP): Provide fallbacks.
30027         (rpl_signal): Implement.
30028         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30029         signal can be called inside handlers.
30030
30031         Fix nanosleep module on mingw.
30032         * modules/nanosleep (Depends-on): Add sys_select.
30033         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30034
30035         Fix licensing of sigprocmask.
30036         * modules/raise (License): Relicense as LGPL.
30037
30038 2008-06-21  Bruno Haible  <bruno@clisp.org>
30039
30040         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30041         result if it contains question marks.
30042         Reported by Michael Geng <linux@michaelgeng.de>.
30043
30044 2008-06-19  Bruno Haible  <bruno@clisp.org>
30045
30046         Fix CVS-ism.
30047         * doc/gnulib.texi: Include updated-stamp.texi.
30048         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30049         (updated-stamp.texi): New rule.
30050         (gnulib.info): Depend on it.
30051         * doc/.gitignore: Add updated-stamp.texi.
30052         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30053
30054 2008-06-19  Bruno Haible  <bruno@clisp.org>
30055
30056         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30057         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30058
30059 2008-06-19  Eric Blake  <ebb9@byu.net>
30060
30061         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30062         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30063         Reported by Stepan Kasal.
30064
30065 2008-06-18  Bruno Haible  <bruno@clisp.org>
30066
30067         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30068         Reported by Eric Blake.
30069
30070 2008-06-18  Eric Blake  <ebb9@byu.net>
30071
30072         Work around cygwin 1.5.25 strsignal bug.
30073         * tests/test-strsignal.c: Allow for const char *.
30074         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30075
30076 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30077
30078         * users.txt: Update URL to article and add author/date
30079         information.
30080
30081 2008-06-17  Bruno Haible  <bruno@clisp.org>
30082
30083         New macro gl_DISABLE_THREADS.
30084         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30085         if the user did not pass --enable-threads or --disable-threads option.
30086         (gl_DISABLE_THREADS): New macro.
30087         Reported by Eric Blake <ebb9@byu.net>.
30088
30089 2008-06-17  Bruno Haible  <bruno@clisp.org>
30090
30091         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30092         when the macro ignores it.
30093         Based on a patch by Eric Blake <ebb9@byu.net>.
30094
30095 2008-06-17  Bruno Haible  <bruno@clisp.org>
30096
30097         * modules/tls (License): Change to LGPLv2+.
30098         Reported by Eric Blake.
30099
30100 2008-06-17  Eric Blake  <ebb9@byu.net>
30101
30102         Simplify c-stack prerequisites.
30103         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30105         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30106         check.
30107         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30108         <sys/resource.h>.
30109
30110         Move c-stack test into testsuite.
30111         * modules/c-stack-tests: New file.
30112         * lib/c-stack.c [DEBUG]: Move test program...
30113         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30114         fail test if sigaltstack is lacking.
30115         * tests/test-c-stack.sh: New driver file.
30116
30117 2008-06-16  Eric Blake  <ebb9@byu.net>
30118
30119         Use raise module consistently.
30120         * modules/fatal-signal (Depends-on): Add raise.
30121         * modules/sigprocmask (Depends-on): Likewise.
30122         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30123         * lib/sigprocmask.c (sigprocmask): Likewise.
30124         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30125         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30126
30127         Fix compliance bug in sigpending.
30128         * lib/sigprocmask.c (sigpending): Return pending array via
30129         parameter, not return value.
30130
30131 2008-06-14  Eric Blake  <ebb9@byu.net>
30132
30133         Improve obstack-printf test code.
30134         * tests/test-obstack-printf.c (test_function): Fix comment, and
30135         simplify usage of obstack_* in macros.  Add a test for coverage.
30136         Reported by Bruno Haible.
30137
30138 2008-06-14  Bruno Haible  <bruno@clisp.org>
30139
30140         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30141         array size as a constant, not as a const variable.
30142         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30143         AC_USE_SYSTEM_EXTENSIONS.
30144         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30145         Test whether the obstack_printf function actually exists.
30146         * modules/obstack-printf (Depends-on): Add extensions.
30147         (Include): Remove obstack.h.
30148         * modules/obstack-printf-posix (Depends-on): Add extensions.
30149         (Include): Remove obstack.h.
30150
30151 2008-06-13  Eric Blake  <ebb9@byu.net>
30152
30153         Add obstack-printf and obstack-printf-posix modules.
30154         * modules/obstack-printf: New file.
30155         * modules/obstack-printf-posix: Likewise.
30156         * MODULES.html.sh (Misc): Mention them.
30157         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30158         Likewise.
30159         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30160         Likewise.
30161         * modules/stdio (Makefile.am): Accomodate new modules.
30162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30163         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30164         Declare.
30165         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30166         functions.
30167         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30168         (gl_REPLACE_OBSTACK_PRINTF): New macros
30169         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30170         * tests/test-obstack-printf.c: New file.
30171         * modules/obstack-printf-tests: Likewise.
30172         * modules/obstack-printf-posix-tests: Likewise.
30173
30174 2008-06-11  Bruno Haible  <bruno@clisp.org>
30175
30176         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30177         * lib/open.c: Include errno.h.
30178         (open): Fail when attempting to write to a file that has a trailing
30179         slash.
30180         * tests/test-open.c (main): Test against trailing slash bug.
30181         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30182
30183 2008-06-10  Bruno Haible  <bruno@clisp.org>
30184
30185         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30186         for $? to work inside the trap command, with various /bin/sh-s.
30187         * tests/test-vc-list-files-cvs.sh: Likewise.
30188
30189 2008-06-10  Bruno Haible  <bruno@clisp.org>
30190
30191         * lib/acl-internal.h: Don't include gettext.h here.
30192         * lib/set-mode-acl.c: Include gettext.h here.
30193         * lib/copy-acl.c: Likewise.
30194
30195 2008-06-10  Bruno Haible  <bruno@clisp.org>
30196
30197         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30198         * lib/wait-process.c (wait_subprocess): Likewise.
30199         * lib/execute.h (execute): Add termsigp argument.
30200         * lib/execute.c (execute): Likewise.
30201         * lib/csharpcomp.c (compile_csharp_using_pnet,
30202         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30203         * lib/csharpexec.c (execute_csharp_using_pnet,
30204         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30205         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30206         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30207         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30208         is_jikes_present): Update.
30209         * lib/javaexec.c (execute_java_class): Update.
30210         * lib/javaversion.c (execute_and_read_line): Update.
30211         * NEWS: Document the changes.
30212         Reported by Eric Blake.
30213
30214 2008-06-10  Eric Blake  <ebb9@byu.net>
30215
30216         Add missing include.
30217         * tests/test-strstr.c (includes): Add <signal.h>.
30218         * tests/test-strcasestr.c (includes): Likewise.
30219         * tests/test-memmem.c (includes): Likewise.
30220
30221 2008-06-10  Bruno Haible  <bruno@clisp.org>
30222
30223         * lib/wait-process.c (wait_subprocess): Add an assertion.
30224
30225 2008-06-10  Bruno Haible  <bruno@clisp.org>
30226
30227         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30228
30229 2008-06-10  Bruno Haible  <bruno@clisp.org>
30230
30231         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30232         using alarm().
30233         * tests/test-strcasestr.c (main): Likewise.
30234         * tests/test-strstr.c (main): Likewise.
30235
30236 2008-06-09  Bruno Haible  <bruno@clisp.org>
30237
30238         Work around the Solaris 10 ACE ACLs ABI change.
30239         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30240         declare if ACL_NO_TRIVIAL is present.
30241         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30242         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30243         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30244         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30245         define if ACL_NO_TRIVIAL is present.
30246         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30247         and use the current ABI.
30248         (file_has_acl): Use same #if condition as elsewhere.
30249         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30250         in use, and use the current ABI.
30251         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30252         Reported by Jim Meyering.
30253
30254 2008-06-09  Eric Blake  <ebb9@byu.net>
30255
30256         Work around environments that (stupidly) ignore SIGALRM.
30257         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30258         before using alarm().
30259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30260         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30261         Reported by Ian Beckwith <ianb@erislabs.net>.
30262
30263         Produce autobuild blurb earlier in log.
30264         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30265
30266 2008-06-09  Jim Meyering  <meyering@redhat.com>
30267         and OndÅ™ej Vašík  <ovasik@redhat.com>
30268
30269         utimens.c: correct kernel bug work-around
30270         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30271         failure, not success, and the kernel bug we're trying to work
30272         around affects not just the utimensat call, but also the fallback
30273         futimens call.
30274         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30275         not success.
30276         [HAVE_FUTIMENS]: Use the same work-around, here.
30277
30278 2008-06-09  Jim Meyering  <meyering@redhat.com>
30279
30280         add more guards around definition of ACE_-related code
30281         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30282         ALLOW and ACE_OWNER are also defined.
30283
30284 2008-06-08  Bruno Haible  <bruno@clisp.org>
30285
30286         * lib/acl-internal.h: Add me as co-author.
30287         * lib/file-has-acl.c: Likewise.
30288         * lib/set-mode-acl.c: Likewise.
30289         * lib/copy-acl.c: Likewise.
30290
30291 2008-06-08  Bruno Haible  <bruno@clisp.org>
30292
30293         Add support for AIX ACLs.
30294         * lib/acl-internal.h (acl_nontrivial): New declaration.
30295         * lib/file-has-acl.c (acl_nontrivial): New function.
30296         (file_has_acl): Add implementation using AIX 4 ACL API.
30297         * lib/set-mode-acl.c (qset_acl): Likewise.
30298         * lib/copy-acl.c (qcopy_acl): Likewise.
30299
30300 2008-06-08  Bruno Haible  <bruno@clisp.org>
30301
30302         Add support for HP-UX ACLs.
30303         * lib/acl-internal.h (acl_nontrivial): New declaration.
30304         * lib/file-has-acl.c (acl_nontrivial): New function.
30305         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30306         * lib/set-mode-acl.c (qset_acl): Likewise.
30307         * lib/copy-acl.c (qcopy_acl): Likewise.
30308
30309 2008-06-08  Bruno Haible  <bruno@clisp.org>
30310
30311         Add support for Cygwin ACLs.
30312         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30313         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30314         the chmod_or_fchmod call.
30315         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30316
30317 2008-06-08  Bruno Haible  <bruno@clisp.org>
30318
30319         Fix bug with setuid modes in Solaris 10+ code.
30320         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30321         succeeded, when the mode contains some special bits.
30322
30323 2008-06-08  Bruno Haible  <bruno@clisp.org>
30324
30325         Add support for Solaris 7..10 ACLs.
30326         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30327         declarations.
30328         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30329         functions.
30330         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30331         * lib/set-mode-acl.c (qset_acl): Likewise.
30332         * lib/copy-acl.c (qcopy_acl): Likewise.
30333
30334 2008-06-08  Bruno Haible  <bruno@clisp.org>
30335
30336         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30337         declaration.
30338         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30339         (acl_access_nontrivial): Remove MacOS X case.
30340         (file_has_acl): Use acl_extended_nontrivial.
30341         * lib/copy-acl.c (qcopy_acl): Likewise.
30342
30343 2008-06-08  Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30346
30347 2008-06-08  Jim Meyering  <meyering@redhat.com>
30348
30349         * modules/acl (Maintainer): Add Bruno Haible.
30350
30351 2008-06-07  Bruno Haible  <bruno@clisp.org>
30352
30353         Improve support for Tru64 ACLs.
30354         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30355         ACL on OSF/1.
30356
30357 2008-06-07  Bruno Haible  <bruno@clisp.org>
30358
30359         Add support for MacOS X ACLs.
30360         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30361         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30362         * lib/set-mode-acl.c (qset_acl): Likewise.
30363         * lib/copy-acl.c (qcopy_acl): Likewise.
30364
30365 2008-06-07  Bruno Haible  <bruno@clisp.org>
30366
30367         Fix memory leak introduced on 2008-05-22.
30368         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30369         use.
30370
30371 2008-06-07  Bruno Haible  <bruno@clisp.org>
30372
30373         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30374         to construct an empty ACL.
30375
30376 2008-06-07  Bruno Haible  <bruno@clisp.org>
30377
30378         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30379         precisely.
30380         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30381
30382 2008-06-07  Bruno Haible  <bruno@clisp.org>
30383
30384         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30385         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30386
30387 2008-06-07  Bruno Haible  <bruno@clisp.org>
30388
30389         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30390         regardless of POSIX.
30391         * doc/posix-functions/_longjmp.texi: Likewise.
30392         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30393         SystemV platform in this case.
30394
30395 2008-06-06  Eric Blake  <ebb9@byu.net>
30396
30397         Document abort() bugs.
30398         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30399
30400         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30401         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30402         sigsetjmp.
30403         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30404         siglongjmp, but only as a macro.
30405         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30406         is obsolete.
30407         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30408
30409         Tweak documentation to cover cygwin argz bugs.
30410         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30411         argz bug fix; no code change needed since no cygwin releases
30412         occurred between the last fix and the bug being tested.
30413         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30414         module and recently fixed cygwin bugs.
30415         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30416         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30417         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30418         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30419         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30420         Likewise.
30421         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30422         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30423         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30424         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30425         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30426         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30427         Likewise.
30428
30429         Avoid gcc warning on cygwin.
30430         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30431         !ACL_NO_TRIVIAL]: Avoid unused variable.
30432
30433 2008-06-05  Eric Blake  <ebb9@byu.net>
30434
30435         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30436         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30437         git-version-gen fails to come up with a version.
30438         Reported by Simon Josefsson.
30439
30440 2008-06-05  Jim Meyering  <meyering@redhat.com>
30441             Paul Eggert  <eggert@cs.ucla.edu>
30442
30443         utimens.c: work around a probable Linux kernel bug
30444         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30445         appears to be a kernel bug that causes utimensat to return 280
30446         instead of 0, indicating success.
30447
30448 2008-06-04  Bruno Haible  <bruno@clisp.org>
30449
30450         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30451         2008-06-01 commit.
30452
30453 2008-06-04  Bruno Haible  <bruno@clisp.org>
30454
30455         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30456         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30457         (file_has_acl): Use it. Save errno afterwards.
30458         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30459
30460 2008-06-03  Bruno Haible  <bruno@clisp.org>
30461
30462         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30463         draft code. Simplify #ifs.
30464         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30465         Put Solaris code after POSIX-draft code. Fix comments regarding
30466         Solaris 10, HP-UX. Mention Cygwin.
30467         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30468
30469 2008-06-03  Eric Blake  <ebb9@byu.net>
30470
30471         Provide fallback for older kernels.
30472         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30473         Provide runtime fallback if kernel lacks support.
30474         Reported by Mike Frysinger.
30475
30476 2008-06-02  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30479         it exists.
30480
30481 2008-06-02  Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30484         * lib/copy-acl.c (qcopy_acl): Update comment.
30485
30486 2008-06-02  Bruno Haible  <bruno@clisp.org>
30487
30488         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30489         like ACL APIs.
30490
30491 2008-06-02  Bruno Haible  <bruno@clisp.org>
30492
30493         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30494         * tests/test-set-mode-acl.sh: Likewise.
30495         * tests/test-copy-acl.sh: Likewise.
30496         * tests/test-copy-file.sh: Likewise.
30497
30498 2008-06-02  Bruno Haible  <bruno@clisp.org>
30499
30500         * tests/test-file-has-acl.sh: Remove unused code.
30501
30502 2008-06-01  Bruno Haible  <bruno@clisp.org>
30503
30504         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30505         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30506         messages.
30507         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30508
30509 2008-06-01  Bruno Haible  <bruno@clisp.org>
30510
30511         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30512         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30513         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30514         APIs.
30515         * modules/acl-tests (configure.ac): Remove tests now contained in
30516         m4/acl.m4.
30517
30518 2008-06-02  Jim Meyering  <meyering@redhat.com>
30519
30520         announce-gen: use a better key-server host name
30521         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30522         it may be more consistently reliable.  Suggested by Werner Koch
30523         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30524
30525 2008-06-01  Bruno Haible  <bruno@clisp.org>
30526
30527         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30528         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30529
30530 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30531
30532         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30533
30534 2008-06-01  Bruno Haible  <bruno@clisp.org>
30535
30536         New ACL tests.
30537         * tests/test-file-has-acl.sh: New file.
30538         * tests/test-file-has-acl.c: New file.
30539         * tests/test-set-mode-acl.sh: New file.
30540         * tests/test-set-mode-acl.c: New file.
30541         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30542         * tests/test-copy-acl.c: New file.
30543         * modules/acl-tests: New file, based on modules/copy-file-tests.
30544         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30545         (Depends-on): Add acl-tests.
30546         (configure.ac): Remove checks.
30547         (Makefile.am): Don't create test-sameacls program here any more.
30548
30549 2008-06-01  Bruno Haible  <bruno@clisp.org>
30550
30551         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30552         * tests/test-sameacls.c: Include progname.h.
30553         (main): Invoke set_program_name. Portability fixes for MacOS X,
30554         Solaris, HP-UX.
30555
30556 2008-06-01  Bruno Haible  <bruno@clisp.org>
30557
30558         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30559         function.
30560         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30561
30562 2008-06-01  Bruno Haible  <bruno@clisp.org>
30563
30564         * modules/rpmatch (Depends-on): Add strdup.
30565
30566 2008-06-01  Bruno Haible  <bruno@clisp.org>
30567
30568         * lib/pipe.c: Include unistd-safer.h.
30569         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30570         * modules/pipe (Depends-on): Add unistd-safer.
30571
30572 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30573
30574         * modules/autobuild (configure.ac): Call AB_INIT.
30575
30576 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30577
30578         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30579         Suggested by Bruno Haible <bruno@clisp.org>.
30580
30581 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30582
30583         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30584         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30585         <bruno@clisp.org>.
30586
30587 2008-05-29  Eric Blake  <ebb9@byu.net>
30588
30589         Prefer new POSIX 200x interfaces over futimesat.
30590         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30591         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30592         when available.
30593         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30594
30595 2008-05-28  Bruno Haible  <bruno@clisp.org>
30596
30597         * modules/stpcpy (License): Change to LGPLv2+.
30598         Requested by David Lutterkort <dlutter@redhat.com>.
30599
30600 2008-05-27  Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30603         current mingw.
30604         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30605
30606 2008-05-27  Bruno Haible  <bruno@clisp.org>
30607
30608         * modules/iconv_open (Link): New section, from module 'iconv'.
30609         * modules/striconv (Link): Likewise.
30610         * modules/striconveh (Link): Likewise.
30611         * modules/xstriconv (Link): Likewise.
30612         * modules/unicodeio (Link): Likewise.
30613         * modules/propername (Link): Likewise.
30614         Reported by Jim Meyering.
30615
30616 2008-05-26  Jim Meyering  <meyering@redhat.com>
30617
30618         sha256: do not artificially restrict buffer length to be < 2^32
30619         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30620         uint32_t to size_t.
30621         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30622         to match.
30623
30624         avoid unaligned access errors, e.g., on sparc
30625         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30626         direct access through a possibly-unaligned uint64* pointer.
30627         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30628         direct access through a possibly-unaligned uint32* pointer.
30629         Prompted by this patch from Tom "spot" Callaway:
30630         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30631
30632         sha512.c: fix typo in comment
30633         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30634
30635 2008-05-25  Bruno Haible  <bruno@clisp.org>
30636
30637         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30638         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30639         (Makefile.am): Update lib_SOURCES.
30640
30641 2008-05-25  Bruno Haible  <bruno@clisp.org>
30642
30643         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30644
30645 2008-05-25  Jim Meyering  <meyering@redhat.com>
30646
30647         useless-if-before-free: freed expr may have white-space differences
30648         * build-aux/useless-if-before-free: Recognize cases in which the
30649         freed expression differs from the tested one in embedded white
30650         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30651         $1 was used, so we can't make any regexp shy.  Improved tests now
30652         detect this.
30653
30654         useless-if-before-free: accept white space in the expression.
30655         * build-aux/useless-if-before-free: For now, any white space
30656         in the expression must be identical in the free argument.
30657
30658         useless-if-before-free: efficiency tweak
30659         * build-aux/useless-if-before-free: Make the expression-matching
30660         regexp "shy".
30661         Make the *outer* regexp shy, not the expr-matching one.
30662
30663         update code-in-comment to accept cast of free arg
30664         * build-aux/useless-if-before-free: Update regexp.
30665
30666 2008-05-25  Bruno Haible  <bruno@clisp.org>
30667
30668         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30669         * modules/copy-file-tests (Files, Makefile.am): Update.
30670         * tests/test-copy-file.c (func_test_copy): Update.
30671
30672 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30673
30674         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30675
30676 2008-05-23  Bruno Haible  <bruno@clisp.org>
30677
30678         Improve support for ACLs on OSF/1.
30679         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30680         Remove fallback for unknown flavors of ACLs.
30681
30682 2008-05-22  Bruno Haible  <bruno@clisp.org>
30683
30684         Add support for ACLs on OSF/1.
30685         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30686         replacements.
30687         (acl_free_text): New macro fallback.
30688         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30689         acl_free.
30690         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30691         acl_free_text function. Require AC_C_INLINE.
30692
30693 2008-05-22  Bruno Haible  <bruno@clisp.org>
30694
30695         Make copy_acl work on MacOS X 10.5.
30696         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30697         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30698         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30699         If MODE_INSIDE_ACL, don't assume that every system has the same text
30700         representation for ACLs as FreeBSD.
30701         * lib/copy-acl.c (copy_acl): Add support for platforms with
30702         !MODE_INSIDE_ACL.
30703         * lib/file-has-acl.c (file_has_acl): Likewise.
30704         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30705         FreeBSD, MacOS X, or IRIX, respectively.
30706
30707 2008-05-22  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/acl.h: Don't include <sys/acl.h>.
30710         (GETACLCNT): Move fallback to lib/acl-internal.h.
30711         * lib/acl-internal.h: Include <sys/acl.h> here.
30712         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30713
30714 2008-05-22  Bruno Haible  <bruno@clisp.org>
30715
30716         Split off copy_acl function to separate file.
30717         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30718         * lib/acl.c (copy_acl): Moved function to separate file.
30719         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30720         * modules/acl (Files): Add lib/copy-acl.c.
30721         (Makefiles.am): Augment lib_SOURCES.
30722
30723 2008-05-22  Bruno Haible  <bruno@clisp.org>
30724
30725         * modules/copy-file-tests: New file.
30726         * tests/test-copy-file.sh: New file.
30727         * tests/test-copy-file.c: New file.
30728         * tests/test-copy-file-sameacls.c: New file.
30729
30730 2008-05-22  Eric Blake  <ebb9@byu.net>
30731
30732         Avoid gcc warning.
30733         * tests/test-memcmp.c (main): Pass NULL indirectly.
30734
30735 2008-05-21  Bruno Haible  <bruno@clisp.org>
30736
30737         Add reference doc about ACLs.
30738         * doc/acl-resources.txt: New file.
30739         * doc/acl-cygwin.txt: New file.
30740
30741 2008-05-21  Bruno Haible  <bruno@clisp.org>
30742
30743         Avoid one more warning from gcc.
30744         * lib/vasnprintf.c (IF_LINT): Update comments.
30745         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30746
30747 2008-05-21  Jim Meyering  <meyering@redhat.com>
30748
30749         avoid a warning from gcc
30750         * lib/vasnprintf.c (IF_LINT): Define.
30751         (scale10_round_decimal_long_double):
30752         Use it to avoid a "may be used uninitialized" warning.
30753         (scale10_round_decimal_double): Likewise.
30754
30755 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30756
30757         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30758         declared.
30759
30760 2008-05-20  Bruno Haible  <bruno@clisp.org>
30761
30762         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30763         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30764
30765 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30766
30767         * modules/memcmp-tests: New file.
30768         * tests/test-memcmp.c: New file.
30769
30770 2008-05-19  Bruno Haible  <bruno@clisp.org>
30771
30772         * modules/propername (Notice, configure.ac): Put quoted "..." into
30773         --keyword option.
30774         * lib/propername.h: Update comments accordingly.
30775         Reported by Eric Blake.
30776
30777 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30778
30779         * modules/getpass-gnu (Depends-on): Add fseeko.
30780
30781 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30782
30783         * modules/base64-tests: New file.
30784
30785 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30786
30787         * lib/base64.c (base64_decode_ctx): If a decode context structure
30788         was passed in use it to ignore newlines.  If a context structure
30789         was _not_ passed in, continue to treat newlines as garbage (this
30790         is the historical behavior).  Formerly base64_decode.
30791         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30792         takes a decode context structure.
30793         * lib/base64.h (base64_decode): Macro for four-argument calls.
30794         (base64_decode_alloc): Likewise.
30795         * lib/base64.c (base64_decode_ctx): If a decode context structure
30796         was passed in use it to ignore newlines.  If a context structure
30797         was _not_ passed in, continue to treat newlines as garbage (this
30798         is the historical behavior).  Formerly base64_decode.
30799         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30800         takes a decode context structure.
30801         * lib/base64.h (base64_decode): Macro for four-argument calls.
30802         (base64_decode_alloc): Likewise.
30803
30804 2008-05-19  Jim Meyering  <meyering@redhat.com>
30805
30806         avoid a warning from gcc
30807         * lib/trim.c (IF_LINT): Define.
30808         (trim2): Use it to avoid a "may be used uninitialized" warning.
30809
30810         Fix doc typo.
30811         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30812
30813 2008-05-19  Bruno Haible  <bruno@clisp.org>
30814
30815         * doc/glibc-functions/getpass.texi: Document limits of other
30816         implementations.
30817
30818 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30819             Bruno Haible <bruno@clisp.org>
30820
30821         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30822
30823 2008-05-18  Bruno Haible  <bruno@clisp.org>
30824
30825         * modules/propername: New file, from GNU gettext.
30826         * lib/propername.h: New file, from GNU gettext.
30827         * lib/propername.c: New file, from GNU gettext.
30828         * MODULES.html.sh (Internationalization functions): Add propername.
30829
30830 2008-05-16  Jim Meyering  <meyering@redhat.com>
30831             Bruno Haible  <bruno@clisp.org>
30832
30833         Avoid some warnings from "gcc -Wshadow".
30834         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30835
30836 2008-05-15  Eric Blake  <ebb9@byu.net>
30837
30838         Extend previous patch to cygwin 1.7.0.
30839         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30840         fast implementation in cygwin >= 1.7.0.
30841         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30843
30844 2008-05-15  Bruno Haible  <bruno@clisp.org>
30845
30846         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30847         implementation in glibc >= 2.9.
30848         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30850
30851 2008-05-15  Bruno Haible  <bruno@clisp.org>
30852
30853         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30854         (Unicode string functions): Add unilbrk/*.
30855         Reported by Karl Berry.
30856
30857 2008-05-15  Eric Blake  <ebb9@byu.net>
30858
30859         Fix violation of <stdbool.h> replacement in regex.
30860         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30861         * lib/regexec.c (re_search_internal): Likewise.
30862         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30863
30864 2008-05-15  Jim Meyering  <meyering@redhat.com>
30865
30866         avoid distracting test output when git or cvs is not found
30867         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30868         * tests/test-vc-list-files-git.sh: Likewise.
30869
30870 2008-05-15  Eric Blake  <ebb9@byu.net>
30871
30872         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30873         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30874         glibc version.
30875         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30876         * doc/posix-functions/strstr.texi (strstr): Likewise.
30877         * lib/str-two-way.h (MAX): Sychronize with glibc.
30878
30879 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30880
30881         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30882         opr.ctx_type.
30883         (calc_first): Initialize constraint field.
30884         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30885         Fix grammar.
30886         (duplicate_node): Merge constraint field for all node types.
30887         (calc_eclosure_iter): Look at constraint field for all node types.
30888         * lib/regex_internal.c (create_cd_newstate): Don't look at
30889         opr.ctx_type.
30890
30891 2008-05-14  Bruno Haible  <bruno@clisp.org>
30892
30893         Help GCC to do better code generation.
30894         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30895         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30896         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30897         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30898         Declare with attribute 'malloc' if supported.
30899
30900 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30901
30902         use "echo STR|wc -c" rather than unportable "expr length STR"
30903         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30904         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30905
30906 2008-05-14  Jim Meyering  <meyering@redhat.com>
30907
30908         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30909         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30910         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30911         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30912         via Collin Lasse.
30913
30914 2008-05-14  Eric Blake  <ebb9@byu.net>
30915
30916         Avoid quadratic growth in gl_LIBSOURCES.
30917         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30918         Suggested by Bruno Haible.
30919
30920         Test xmemdup0.
30921         * modules/xmemdup0-tests: New file.
30922         * tests/test-xmemdup0.c: Likewise.
30923
30924 2008-05-13  Eric Blake  <ebb9@byu.net>
30925
30926         Split xmemdup0 into its own module.
30927         * modules/xmemdup0: New file.
30928         * lib/xmemdup0.h: Likewise.
30929         * lib/xmemdup0.c: Likewise.
30930         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30931         * lib/xalloc.h (xmemdup0): Remove.
30932         * lib/xmalloc.c (xmemdup0): Likewise.
30933
30934 2008-05-13  Eric Blake  <ebb9@byu.net>
30935             Bruno Haible  <bruno@clisp.org>
30936
30937         Reduce number of forks required during autoconf.
30938         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
30939         and gl_LIBSOURCES_DIR.
30940         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
30941         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
30942         m4_syscmd per file.
30943         <m4_foreach_w>: Move...
30944         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
30945
30946 2008-05-13  Eric Blake  <ebb9@byu.net>
30947
30948         * gnulib-tool: Fix various comment typos.
30949
30950 2008-05-12  Bruno Haible  <bruno@clisp.org>
30951
30952         Tailor the linebreaking algorithm.
30953         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
30954
30955 2008-05-12  Bruno Haible  <bruno@clisp.org>
30956
30957         Update to Unicode 5.0.0.
30958         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30959         LBP_JV, LBP_JT. Redistribute values.
30960         (unilbrk_table): Change size.
30961         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
30962         Unicode TR#14 rev. 22.
30963         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30964         LBP_JV, LBP_JT. Redistribute values.
30965         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
30966         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
30967         Update.
30968         * lib/unilbrk/lbrkprop1.h: Regenerated.
30969         * lib/unilbrk/lbrkprop2.h: Regenerated.
30970         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
30971         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
30972         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
30973         Likewise.
30974         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
30975         Likewise.
30976         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
30977         result.
30978         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
30979         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
30980         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
30981         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
30982         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
30983         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
30984
30985 2008-05-11  Bruno Haible  <bruno@clisp.org>
30986
30987         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
30988
30989 2008-05-11  Bruno Haible  <bruno@clisp.org>
30990
30991         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
30992         * modules/unilbrk/gen-lbrk: New file.
30993
30994 2008-05-11  Bruno Haible  <bruno@clisp.org>
30995
30996         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
30997         * m4/sha512.m4 (gl_SHA512): Likewise.
30998
30999 2008-05-11  Jim Meyering  <meyering@redhat.com>
31000
31001         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31002         * modules/crypto/sha256: New file.
31003         * modules/crypto/sha512: Likewise.
31004         * lib/sha256.c: Likewise.
31005         * lib/sha256.h: Likewise.
31006         * lib/sha512.c: Likewise.
31007         * lib/sha512.h: Likewise.
31008         * lib/u64.h: Likewise.
31009         * m4/sha256.m4: Likewise.
31010         * m4/sha512.m4: Likewise.
31011         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31012
31013 2008-05-10  Bruno Haible  <bruno@clisp.org>
31014
31015         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31016         (Input/Output <stdio.h>): Add xprintf.
31017         (Signal handling <signal.h>): Add strsignal.
31018         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31019         (Core language properties): Add func.
31020         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31021         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31022         strings.
31023         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31024         (Input/output): New section.
31025         (File system functions): Add openat-die, stat-macros.
31026         (Networking functions): Add sockets.
31027         (Unicode string functions): Add unictype/*.
31028         (Support for building libraries and executables): Add gperf.
31029         (Support for building documentation): Add agpl-3.0.
31030         (Misc): Add nocrash.
31031
31032 2008-05-10  Bruno Haible  <bruno@clisp.org>
31033
31034         * modules/unictype/gen-ctype: New file.
31035
31036 2008-05-10  Jim Meyering  <meyering@redhat.com>
31037
31038         Make chdir-safer.c more efficient on a system with no symlinks.
31039         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31040         also if ELOOP is zero.  Suggested by Bruno Haible.
31041
31042         Make chdir-safer.c slightly safer.
31043         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31044         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31045
31046         Avoid compile failure on systems without ELOOP (like mingw).
31047         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31048         Reported by Bruno Haible.
31049
31050 2008-05-10  Bruno Haible  <bruno@clisp.org>
31051
31052         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31053         (is_utf8_encoding): Use a case-insensitive comparison.
31054         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31055         streq.
31056
31057 2008-05-10  Bruno Haible  <bruno@clisp.org>
31058
31059         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31060         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31061         * lib/unilbrk/ulc-common.h (iconv_string_length,
31062         iconv_string_keeping_offsets): Remove declarations.
31063         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31064         Don't include <iconv.h>, streq.h, xsize.h.
31065         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31066         conversion.
31067         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31068         <iconv.h>, streq.h, xsize.h.
31069         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31070         conversion.
31071         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31072         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31073         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31074         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31075
31076 2008-05-10  Bruno Haible  <bruno@clisp.org>
31077
31078         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31079         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31080
31081         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31082         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31083
31084         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31085         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31086
31087         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31088         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31089
31090         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31091         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31092
31093         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31094         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31095
31096         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31097         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31098
31099         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31100         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31101
31102 2008-05-10  Bruno Haible  <bruno@clisp.org>
31103
31104         Split up 'linebreak' module.
31105         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31106         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31107         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31108         modifications.
31109         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31110         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31111         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31112         lib/linebreak.c.
31113         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31114         lib/linebreak.c.
31115         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31116         lib/linebreak.c.
31117         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31118         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31119         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31120         lib/linebreak.c.
31121         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31122         lib/linebreak.c.
31123         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31124         lib/linebreak.c.
31125         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31126         lib/linebreak.c.
31127         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31128         lib/linebreak.c.
31129         * modules/unilbrk/base: New file.
31130         * modules/unilbrk/tables: New file.
31131         * modules/unilbrk/u8-possible-linebreaks: New file.
31132         * modules/unilbrk/u16-possible-linebreaks: New file.
31133         * modules/unilbrk/u32-possible-linebreaks: New file.
31134         * modules/unilbrk/ulc-common: New file.
31135         * modules/unilbrk/ulc-possible-linebreaks: New file.
31136         * modules/unilbrk/u8-width-linebreaks: New file.
31137         * modules/unilbrk/u16-width-linebreaks: New file.
31138         * modules/unilbrk/u32-width-linebreaks: New file.
31139         * modules/unilbrk/ulc-width-linebreaks: New file.
31140         * lib/linebreak.h: Remove file.
31141         * lib/linebreak.c: Remove file.
31142         * m4/linebreak.m4: Remove file.
31143         * modules/linebreak: Remove file.
31144         * NEWS: Mention the changes.
31145
31146 2008-05-09  Eric Blake  <ebb9@byu.net>
31147
31148         Add xmemdup0.
31149         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31150         implementation.
31151         * lib/xmalloc.c (xmemdup0): New C implementation.
31152
31153 2008-05-08  Bruno Haible  <bruno@clisp.org>
31154
31155         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31156
31157 2008-05-07  Eric Blake  <ebb9@byu.net>
31158
31159         Support cross-compilation of <wctype.h>.
31160         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31161         AC_CACHE_CHECK.
31162
31163 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31164
31165         * build-aux/vc-list-files: Add support for bzr.
31166
31167 2008-05-03  Jim Meyering  <meyering@redhat.com>
31168
31169         avoid failed assertion with tight malloc
31170         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31171
31172 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31173
31174         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31175         are needed from arpa/inet.h.
31176         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31177         Reported by Bruno Haible.
31178
31179 2008-05-02  Jim Meyering  <meyering@redhat.com>
31180
31181         avoid compilation error on FreeBSD 6
31182         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31183
31184 2008-05-01  Jim Meyering  <meyering@redhat.com>
31185
31186         useless-if-before-free: correct --help's exit status description
31187         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31188         for one or more matches, etc.  Reported by Bruno Haible.
31189
31190         vc-list-files: make the stand-alone gnulib test work
31191         * modules/vc-list-files-tests (configure.ac):
31192         Define and AC_SUBST abs_aux_dir.
31193         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31194         $(abs_top_srcdir) to each script and having each of them
31195         duplicate the work of setting PATH, set PATH here, using
31196         the new variable, abs_aux_dir instead.
31197         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31198         * tests/test-vc-list-files-git.sh: Likewise.
31199         Reported by Bruno Haible.
31200
31201 2008-05-01  Bruno Haible  <bruno@clisp.org>
31202
31203         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31204         reallocation. Rename 'done' to 'found_delimiter'.
31205
31206 2008-05-01  Jim Meyering  <meyering@redhat.com>
31207
31208         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31209         * build-aux/vc-list-files: Use `...`, not $(...).
31210
31211 2008-04-30  Jim Meyering  <meyering@redhat.com>
31212
31213         add tests for vc-list-files
31214         * modules/vc-list-files-tests: New module.
31215         * tests/test-vc-list-files-cvs.sh: New file.
31216         * tests/test-vc-list-files-git.sh: New file.
31217
31218         avoid a warning from gcc
31219         * lib/getndelim2.c (IF_LINT): Define.
31220         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31221
31222         vc-list-files: work properly with build-aux/cvsu, too
31223         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31224         to all cvs-based clauses.
31225
31226         vc-list-files: work properly in the CVS+awk case, too
31227         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31228
31229         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31230         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31231         take more than one file argument, so .  Add quotes, just in case $dir
31232         ever contains a shell meta-character.  Prompted by Soren Hansen in
31233         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31234
31235 2008-04-29  Eric Blake  <ebb9@byu.net>
31236
31237         Optimize getndelim2 to use block operations when possible.
31238         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31239         freadseek, and memchr2.
31240         * lib/getndelim2.c (getndelim2): Use them for block reads.
31241
31242 2008-04-29  Bruno Haible  <bruno@clisp.org>
31243
31244         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31245         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31246         * modules/inet_ntop (Depends-on): Add extensions.
31247         * modules/inet_pton (Depends-on): Likewise.
31248         Reported by Simon Josefsson.
31249
31250 2008-04-29  Jim Meyering  <meyering@redhat.com>
31251
31252         When the is more than one match in a block, match all of them.
31253         * build-aux/useless-if-before-free: Iterate through each block
31254         until there are no more matches.
31255
31256         Fix broken useless-if-before-free script.
31257         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31258         the expression to match cast of argument to free-like function.
31259
31260 2008-04-29  Eric Blake  <ebb9@byu.net>
31261
31262         Use new header.
31263         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31264
31265 2008-04-29  Jim Meyering  <meyering@redhat.com>
31266
31267         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31268         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31269         by gnulib to exist and to declare e.g., inet_ntop.
31270         Don't include "inet_ntop.h", now removed.
31271
31272         * m4/arpa_inet_h.m4: Remove trailing blanks.
31273
31274 2008-04-29  Eric Blake  <ebb9@byu.net>
31275
31276         Silence valgrind on safe reads beyond potential array bounds.
31277         * lib/rawmemchr.valgrind: New file.
31278         * lib/strchrnul.valgrind: Likewise.
31279         * modules/rawmemchr (Files): Distribute new file.
31280         * modules/strchrnul (Files): Likewise.
31281         Suggested by Bruno Haible.
31282
31283 2008-04-29  Bruno Haible  <bruno@clisp.org>
31284
31285         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31286         (inet_ntop, inet_pton): Change portability warning's wording.
31287         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31288         Invoke gl_CHECK_NEXT_HEADERS.
31289         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31290         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31291         set ARPA_INET_H.
31292         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31293         * modules/arpa_inet (Description): No longer only for systems that
31294         lack it.
31295         (Depends-on): Add include_next.
31296         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31297         HAVE_ARPA_INET_H.
31298
31299 2008-04-29  Jim Meyering  <meyering@redhat.com>
31300
31301         * modules/mkdir (License): Re-license as LGPLv2+.
31302
31303 2008-04-29  Bruno Haible  <bruno@clisp.org>
31304
31305         * modules/rawmemchr (Maintainer): Set to Eric.
31306         * modules/strchrnul (Maintainer): Likewise.
31307
31308 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31309
31310         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31311         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31312
31313         * modules/arpa_inet (arpa/inet.h): Use them.
31314
31315 2008-04-28  Eric Blake  <ebb9@byu.net>
31316
31317         Test getndelim2.
31318         * modules/getndelim2-tests: New file.
31319         * tests/test-getndelim2.c: Likewise.
31320         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31321         stream.
31322         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31323
31324         * MODULES.html.sh: Document new module.
31325
31326 2008-04-20  Bruno Haible  <bruno@clisp.org>
31327
31328         * lib/c-stack.c (die): Use raise.
31329         * modules/c-stack (Depends-on): Add raise.
31330
31331 2008-04-28  Bruno Haible  <bruno@clisp.org>
31332
31333         Expect rpmatch to be declared.
31334         * lib/yesno.c (rpmatch): Remove declaration.
31335
31336         Declare rpmatch.
31337         * lib/stdlib.in.h (rpmatch): New declaration.
31338         * lib/rpmatch.c: Include <stdlib.h> first.
31339         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31340         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31342         HAVE_RPMATCH.
31343         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31345         (Include): Set to <stdlib.h>.
31346         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31347         HAVE_RPMATCH.
31348         * NEWS: Document the change.
31349
31350 2008-04-28  Bruno Haible  <bruno@clisp.org>
31351
31352         Change rpmatch to use nl_langinfo when appropriate.
31353         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31354         (N_): New macro.
31355         (localized_pattern): New function/macro.
31356         (try): Remove match, nomatch arguments. Copy the pattern into safe
31357         memory before caching it.
31358         (rpmatch): Use localized_pattern. Add translator comments.
31359         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31360         Suggested by Eric Blake.
31361         * modules/rpmatch (Depends-on): Add stdbool.
31362
31363 2008-04-28  Eric Blake  <ebb9@byu.net>
31364
31365         Add rawmemchr module, matching glibc.
31366         * modules/string (Makefile.am): New indicator.
31367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31368         * lib/string.in.h (rawmemchr): Declare when appropriate.
31369         * modules/rawmemchr: New file.
31370         * m4/rawmemchr.m4: Likewise.
31371         * lib/rawmemchr.c: Likewise.
31372         * modules/rawmemchr-tests: Likewise.
31373         * tests/test-rawmemchr.c: Likewise.
31374         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31375         module.
31376         * modules/strchrnul (Depends-on): Add rawmemchr.
31377         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31378
31379         Whitespace cleanup.
31380         * tests/test-strchrnul.c: Reindent.
31381         * lib/strchrnul.c: Likewise.
31382
31383         Optimize and test strchrnul.
31384         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31385         * modules/strchrnul-tests: New file.
31386         * tests/test-strchrnul.c: Likewise.
31387
31388         Remove intprops dependency.
31389         * modules/memchr (Depends-on): Remove intprops.
31390         * modules/memrchr (Depends-on): Likewise.
31391         * modules/memchr2 (Depends-on): Likewise.
31392         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31393         * lib/memrchr.c (__memrchr): Likewise.
31394         * lib/memrchr2.c (memchr2): Likewise.
31395         Reported by Simon Josefsson.
31396
31397 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31398
31399         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31400         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31401
31402 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31403
31404         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31405
31406         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31407
31408         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31409
31410         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31411         declarations.
31412         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31413
31414         * m4/inet_pton.m4: Don't check for header files.
31415
31416         * m4/inet_ntop.m4: Don't check for header files.
31417
31418 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31419
31420         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31421         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31422         trigger for cygwin).
31423         Reported by Bruno Haible  <bruno@clisp.org>.
31424
31425 2008-04-28  Bruno Haible  <bruno@clisp.org>
31426
31427         * doc/posix-functions/strdup.texi: Mention mingw problem.
31428
31429 2008-04-27  Bruno Haible  <bruno@clisp.org>
31430
31431         * modules/stat-time-tests (Depends-on): Add sleep.
31432         * tests/test-stat-time.c (force_unlink): New function.
31433         (cleanup): Use it.
31434         (test_mtime): Remove the ctime related tests.
31435         (test_ctime): New function, containing the ctime related tests.
31436         (main): Call test_ctime, except on native Windows platforms.
31437
31438 2008-04-27  Bruno Haible  <bruno@clisp.org>
31439
31440         * lib/rpmatch.c (rpmatch): Add some comments.
31441         Reported by James Youngman <jay@gnu.org>.
31442
31443 2008-04-27  Bruno Haible  <bruno@clisp.org>
31444
31445         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31446         quiet NaNs.
31447
31448 2008-04-27  Bruno Haible  <bruno@clisp.org>
31449
31450         Make test-yesno.sh work on mingw.
31451         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31452         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31453         (main): Set stdin to binary mode.
31454         * modules/yesno-tests (Depends-on): Add binary-io.
31455
31456 2008-04-27  Bruno Haible  <bruno@clisp.org>
31457
31458         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31459         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31460         argument that lie outside the IEEE 854 domain.
31461         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31462         (gl_ISFINITE): Use it.
31463         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31464
31465 2008-04-27  Bruno Haible  <bruno@clisp.org>
31466
31467         Allow local renaming in config.h.
31468         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31469
31470 2008-04-27  Bruno Haible  <bruno@clisp.org>
31471
31472         * lib/memchr.c (__memchr): Change type of 'i'.
31473         * lib/memchr2.c (memchr2): Likewise.
31474
31475 2008-04-26  Eric Blake  <ebb9@byu.net>
31476         and Bruno Haible  <bruno@clisp.org>
31477
31478         Optimize and test memrchr.
31479         * modules/memrchr (Depends-on): Add intprops.
31480         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31481         * modules/memrchr-tests: New file.
31482         * tests/test-memrchr.c: New file.
31483
31484 2008-04-26  Bruno Haible  <bruno@clisp.org>
31485
31486         Add tentative support for DragonFly BSD.
31487         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31488         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31489         fp.
31490         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31491         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31492         * lib/fpurge.c (fpurge): Likewise.
31493         * lib/freadable.c (freaadable): Likewise.
31494         * lib/freadahead.c (freadahead): Likewise.
31495         * lib/freading.c (freading): Likewise.
31496         * lib/freadptr.c (freadptr): Likewise.
31497         * lib/freadseek.c (freadptrinc): Likewise.
31498         * lib/fseeko.c (fseeko): Likewise.
31499         * lib/fseterr.c (fseterr): Likewise.
31500         * lib/fwritable.c (fwritable): Likewise.
31501         * lib/fwriting.c (fwriting): Likewise.
31502
31503 2008-04-26  Bruno Haible  <bruno@clisp.org>
31504
31505         * lib/stdio-impl.h: New file.
31506         * lib/fbufmode.c: Include stdio-impl.h.
31507         (fbufmode): Use fp_, remove redundant #defines.
31508         * lib/fflush.c: Include stdio-impl.h.
31509         (clear_ungetc_buffer): Remove redundant #defines.
31510         * lib/fpurge.c: Include stdio-impl.h.
31511         (fpurge): Remove redundant #defines.
31512         * lib/freadable.c: Include stdio-impl.h.
31513         (freadable): Remove redundant #defines.
31514         * lib/freadahead.c: Include stdio-impl.h.
31515         (freadahead): Remove redundant #defines.
31516         * lib/freading.c: Include stdio-impl.h.
31517         (freading): Remove redundant #defines.
31518         * lib/freadptr.c: Include stdio-impl.h.
31519         (freadptr): Remove redundant #defines.
31520         * lib/freadseek.c: Include stdio-impl.h.
31521         (freadptrinc): Remove redundant #defines.
31522         * lib/fseeko.c: Include stdio-impl.h.
31523         (rpl_fseeko): Remove redundant #defines.
31524         * lib/fseterr.c: Include stdio-impl.h.
31525         (fseterr): Remove redundant #defines.
31526         * lib/fwritable.c: Include stdio-impl.h.
31527         (fwritable: Remove redundant #defines.
31528         * lib/fwriting.c: Include stdio-impl.h.
31529         (fwriting): Remove redundant #defines.
31530         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31531         * modules/fflush (Files): Likewise.
31532         * modules/fpurge (Files): Likewise.
31533         * modules/freadable (Files): Likewise.
31534         * modules/freadahead (Files): Likewise.
31535         * modules/freading (Files): Likewise.
31536         * modules/freadptr (Files): Likewise.
31537         * modules/freadseek (Files): Likewise.
31538         * modules/fseeko (Files): Likewise.
31539         * modules/fseterr (Files): Likewise.
31540         * modules/fwritable (Files): Likewise.
31541         * modules/fwriting (Files): Likewise.
31542
31543 2008-04-26  Bruno Haible  <bruno@clisp.org>
31544
31545         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31546         restore_seek_optimization, update_fpos_cache): New functions, extracted
31547         from rpl_fflush.
31548         (rpl_fflush): Use them.
31549         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31550         (gl_REPLACE_FFLUSH): Use it.
31551
31552 2008-04-26  Bruno Haible  <bruno@clisp.org>
31553
31554         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31555         on Solaris.
31556         * tests/test-xstrtoimax.sh: Likewise.
31557         * tests/test-xstrtoumax.sh: Likewise.
31558         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31559
31560 2008-04-26  Bruno Haible  <bruno@clisp.org>
31561
31562         * modules/memchr-tests: New file.
31563         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31564
31565 2008-04-26  Eric Blake  <ebb9@byu.net>
31566             Bruno Haible  <bruno@clisp.org>
31567
31568         * lib/memchr.c: Include intprops.h.
31569         (__memchr): Optimize parallel detection of matching bytes. Rename local
31570         variables. Add explanatory comments.
31571
31572 2008-04-26  Bruno Haible  <bruno@clisp.org>
31573
31574         Fix module 'memchr', broken since 2000-10-28.
31575         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31576
31577 2008-04-26  Bruno Haible  <bruno@clisp.org>
31578
31579         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31580         comments.
31581
31582 2008-04-25  Eric Blake  <ebb9@byu.net>
31583
31584         Use native fstatat on cygwin 1.7.0.
31585         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31586         first.
31587
31588 2008-04-23  Eric Blake  <ebb9@byu.net>
31589
31590         Improve memchr2 performance.
31591         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31592         NUL bytes.
31593         * modules/memchr2 (Depends-on): Use intprops.h.
31594
31595 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31596
31597         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31598         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31599         <blp@cs.stanford.edu>.
31600
31601 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31602
31603         * lib/arpa_inet.in.h: New file.
31604
31605         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31606         (Makefile.am): Sed in substitute header file.
31607
31608         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31609         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31610
31611         * modules/inet_ntop (configure.ac): Use
31612         gl_ARPA_INET_MODULE_INDICATOR.
31613
31614         * modules/inet_pton (configure.ac): Use
31615         gl_ARPA_INET_MODULE_INDICATOR.
31616
31617 2008-04-22  Jim Meyering  <meyering@redhat.com>
31618
31619         * modules/verify (License): Re-license as LGPLv2+.
31620
31621 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31622
31623         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31624         parameter to void* as per POSIX standard (MinGW uses char*).
31625
31626 2008-04-21  Bruno Haible  <bruno@clisp.org>
31627
31628         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31629         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31630         Define to replacements if REPLACE_ISWCNTRL is 1.
31631         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31632         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31633         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31634         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31635         what it fixes.
31636         * doc/posix-functions/iswalpha.texi: Likewise.
31637         * doc/posix-functions/iswblank.texi: Likewise.
31638         * doc/posix-functions/iswcntrl.texi: Likewise.
31639         * doc/posix-functions/iswdigit.texi: Likewise.
31640         * doc/posix-functions/iswgraph.texi: Likewise.
31641         * doc/posix-functions/iswlower.texi: Likewise.
31642         * doc/posix-functions/iswprint.texi: Likewise.
31643         * doc/posix-functions/iswpunct.texi: Likewise.
31644         * doc/posix-functions/iswspace.texi: Likewise.
31645         * doc/posix-functions/iswupper.texi: Likewise.
31646         * doc/posix-functions/iswxdigit.texi: Likewise.
31647         Reported by Alain Guibert.
31648
31649 2008-04-21  Bruno Haible  <bruno@clisp.org>
31650
31651         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31652         Patch by Alain Guibert.
31653
31654 2008-04-21  Bruno Haible  <bruno@clisp.org>
31655
31656         Fix test failures on mingw.
31657         * tests/test-xstrtol.c (print_no_progname): New function.
31658         (main): Install it in error_print_progname hook.
31659         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31660         * tests/test-xstrtoimax.sh: Likewise.
31661         * tests/test-xstrtoumax.sh: Likewise.
31662
31663 2008-04-21  Bruno Haible  <bruno@clisp.org>
31664
31665         Fix test failure on mingw.
31666         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31667
31668 2008-04-21  Bruno Haible  <bruno@clisp.org>
31669
31670         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31671         Actually assign a value.
31672
31673 2008-04-20  Bruno Haible  <bruno@clisp.org>
31674
31675         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31676         take 2.
31677         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31678         'canonicalize-lgpl' module is also used.
31679         * lib/canonicalize-lgpl.c: Undo last change.
31680         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31681
31682 2008-04-20  Bruno Haible  <bruno@clisp.org>
31683
31684         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31685         config.h. Provide _mkdir based fallback for mingw.
31686         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31687         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31688         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31689         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31690         rather than defining mkdir in config.h.
31691         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31692         (gl_SYS_STAT_H_DEFAULTS): New macro.
31693         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31694         HAVE_IO_H any more.
31695         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31696         HAVE_DECL_MKDIR and HAVE_IO_H.
31697
31698 2008-04-20  Bruno Haible  <bruno@clisp.org>
31699
31700         * lib/isapipe.c: Port to native Windows platforms.
31701
31702 2008-04-20  Bruno Haible  <bruno@clisp.org>
31703
31704         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31705
31706 2008-04-21  Eric Blake  <ebb9@byu.net>
31707
31708         Work around preprocessors that don't handle UINTMAX_MAX.
31709         * lib/memchr2.c (memchr2): Avoid embedded #if.
31710         Reported by Alain Guibert, fix suggested by Bruno Haible.
31711
31712 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31713
31714         * doc/posix-functions/strftime.texi (strftime): Explain better
31715         Windows incompatibility.  Suggested by Micah Cowan
31716         <micah@cowan.name>.
31717
31718 2008-04-20  Bruno Haible  <bruno@clisp.org>
31719
31720         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31721         unistr/u8-mblen.
31722
31723 2008-04-20  Bruno Haible  <bruno@clisp.org>
31724
31725         Fix test failure on platforms with non-GNU iconv.
31726         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31727         (U_TO_U8): Use it, rather than u16_to_u8.
31728         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31729         units at the end of the input string.
31730         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31731
31732 2008-04-20  Bruno Haible  <bruno@clisp.org>
31733
31734         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31735         when the resulting length is 0.
31736         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31737
31738 2008-04-20  Bruno Haible  <bruno@clisp.org>
31739
31740         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31741         works.
31742         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31743
31744 2008-04-20  Bruno Haible  <bruno@clisp.org>
31745
31746         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31747         * modules/tsearch-tests (configure.ac): Test for initstate function.
31748
31749 2008-04-20  Bruno Haible  <bruno@clisp.org>
31750
31751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31752         for nlink_t if missing.
31753         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31754
31755 2008-04-19  Bruno Haible  <bruno@clisp.org>
31756
31757         Work around snprintf bug on Linux libc5.
31758         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31760         gl_SNPRINTF_SIZE1.
31761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31762         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31763         that test failed.
31764         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31765         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31766         * modules/snprintf (Files): Add m4/printf.m4.
31767         * modules/vsnprintf (Files): Likewise.
31768         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31769         * doc/posix-functions/vsnprintf.texi: Likewise.
31770
31771 2008-04-19  Bruno Haible  <bruno@clisp.org>
31772
31773         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31774         from 0.0058 to less than 10^-7.
31775
31776 2008-04-19  Bruno Haible  <bruno@clisp.org>
31777
31778         Fix rounding when a precision is given.
31779         * lib/vasnprintf.c (is_borderline): New function.
31780         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31781         9...9x.
31782         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31783         %e, %g.
31784         * tests/test-vasprintf-posix.c (test_function): Likewise.
31785         * tests/test-snprintf-posix.h (test_function): Likewise.
31786         * tests/test-sprintf-posix.h (test_function): Likewise.
31787         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31788         * tests/test-printf-posix.h (test_function): Likewise.
31789         * tests/test-printf-posix.output: Update.
31790         Reported by John Darrington <john@darrington.wattle.id.au> via
31791         Ben Pfaff <blp@cs.stanford.edu>.
31792
31793 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31794
31795         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31796         Suggested by Bruno Haible <bruno@clisp.org>.
31797
31798 2008-04-17  Bruno Haible  <bruno@clisp.org>
31799
31800         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31801         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31802         implementation.
31803         Patch by Bruce Merry <bmerry@gmail.com>.
31804
31805 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31806
31807         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31808         doesn't work under Windows.
31809
31810 2008-04-16  Bruno Haible  <bruno@clisp.org>
31811
31812         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31813         New macros.
31814         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31815         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31816         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31817         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31818         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31819         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31820         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31821         macros.
31822         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31823         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31824         Northern Sotho, Uighur.
31825
31826 2008-04-16  Bruno Haible  <bruno@clisp.org>
31827
31828         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31829         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31830         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31831         Reported by Daniel Bergström <daniel@octocode.com>.
31832
31833 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31834             Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31837         function.
31838         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31839         New functions, mostly extracted from gl_locale_name_default.
31840         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31841
31842 2008-04-16  Eric Blake  <ebb9@byu.net>
31843
31844         Adjust strtod detection to catch glibc 2.7 bug.
31845         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31846         Reported by John Gatewood Ham.
31847
31848 2008-04-16  Bruno Haible  <bruno@clisp.org>
31849
31850         Add tentative support for Linux libc5.
31851         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31852         * lib/fpurge.c (fpurge): Likewise.
31853         * lib/freadable.c (freadable): Likewise.
31854         * lib/freadahead.c (freadahead): Likewise.
31855         * lib/freading.c (freading): Likewise.
31856         * lib/freadptr.c (freadptr): Likewise.
31857         * lib/freadseek.c (freadptrinc): Likewise.
31858         * lib/fseeko.c (rpl_fseeko): Likewise.
31859         * lib/fseterr.c (fseterr): Likewise.
31860         * lib/fwritable.c (fwritable): Likewise.
31861         * lib/fwriting.c (fwriting): Likewise.
31862         Reported by Alain Guibert <alguibert+bts@free.fr>.
31863
31864 2008-04-15  Bruno Haible  <bruno@clisp.org>
31865
31866         * modules/mathl (configure.ac): Define module indicator.
31867
31868 2008-04-15  Bruno Haible  <bruno@clisp.org>
31869
31870         * lib/logl.c (logl): Remove unused variables.
31871
31872 2008-04-15  Bruno Haible  <bruno@clisp.org>
31873
31874         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31875         fails.
31876
31877 2008-04-15  Bruno Haible  <bruno@clisp.org>
31878
31879         * lib/trim.c (trim2): Fix argument of isspace() macro.
31880
31881 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31882
31883         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31884         to 0.
31885         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31886
31887 2008-04-14  Bruno Haible  <bruno@clisp.org>
31888
31889         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31890         AC_LANG_PROGRAM argument.
31891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31892         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31894         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31895         * m4/math_h.m4 (gl_MATH_H): Likewise.
31896         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31898         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31899         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31900         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31901         * m4/regex.m4 (gl_REGEX): Likewise.
31902         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31903         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31905         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31906         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31907         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31909         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31910
31911 2008-04-14  Jim Meyering  <meyering@redhat.com>
31912
31913         test-strtod: fix typos: s/abs/fabs/
31914         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31915
31916 2008-04-13  Bruno Haible  <bruno@clisp.org>
31917
31918         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31919         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31920         module is also used and while not building the reloc-wrapper.
31921
31922 2008-04-13  Bruno Haible  <bruno@clisp.org>
31923
31924         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31925
31926 2008-04-13  Bruno Haible  <bruno@clisp.org>
31927
31928         Fix AIX compilation failure introduced on 2008-04-02.
31929         * tests/test-frexp.c (exp): Undefine before redefining.
31930         * tests/test-frexpl.c (exp): Likewise.
31931
31932 2008-04-13  Bruno Haible  <bruno@clisp.org>
31933
31934         Work around a HP-UX stdio bug.
31935         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
31936         * tests/test-ftello.c (main): Likewise.
31937         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
31938         * doc/posix-functions/ftello.texi: Likewise.
31939
31940 2008-04-13  Bruno Haible  <bruno@clisp.org>
31941
31942         Make test-signbit pass on HP-UX/hppa.
31943         * tests/test-signbit.c (minus_zerol): New variable.
31944         (test_signbitl): Use it.
31945
31946 2008-04-13  Bruno Haible  <bruno@clisp.org>
31947
31948         Make truncl work on OSF/1 4.0.
31949         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
31950         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31951         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
31953         HAVE_DECL_TRUNCL.
31954         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
31955         HAVE_DECL_TRUNCL.
31956         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
31957
31958 2008-04-13  Bruno Haible  <bruno@clisp.org>
31959
31960         * lib/unictype.h: Remove trailing comma from enumeration definitions.
31961
31962 2008-04-13  Bruno Haible  <bruno@clisp.org>
31963
31964         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
31965         expression, so as to avoid HP-UX 11 cc compiler bug.
31966
31967 2008-04-13  Bruno Haible  <bruno@clisp.org>
31968
31969         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
31970
31971 2008-04-13  Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/git-merge-changelog.c: Remove empty declaration outside of
31974         functions.
31975
31976 2008-04-13  Bruno Haible  <bruno@clisp.org>
31977
31978         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
31979
31980 2008-04-13  Bruno Haible  <bruno@clisp.org>
31981
31982         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
31983         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
31984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
31985         also if it exists but lacks definitions of the SHUT_* macros.
31986         * modules/sys_socket (Description): Update.
31987         Reported by Elbert Pol <e.pol@chello.nl>.
31988
31989 2008-04-13  Bruno Haible  <bruno@clisp.org>
31990
31991         * lib/localcharset.c (OS2): Don't redefine if already defined.
31992         Reported by Elbert Pol <e.pol@chello.nl>.
31993
31994 2008-04-13  Bruno Haible  <bruno@clisp.org>
31995
31996         * lib/binary-io.h [__EMX__]: Include <io.h>.
31997         Reported by Elbert Pol <e.pol@chello.nl>.
31998
31999 2008-04-12  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/fpucw.h: Enable the definitions also for x86_64.
32002         Needed for NetBSD/x86_64.
32003         Reported by Thomas Klausner <tk@giga.or.at>.
32004
32005 2008-04-12  Bruno Haible  <bruno@clisp.org>
32006
32007         * tests/test-strtod.c: Include isnand.h.
32008         (main): Use isnand instead of isnan.
32009         Reported by Jim Meyering.
32010
32011 2008-04-12  Bruno Haible  <bruno@clisp.org>
32012
32013         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32014         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32015
32016 2008-04-12  Jim Meyering  <meyering@redhat.com>
32017
32018         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32019
32020 2008-04-12  Bruno Haible  <bruno@clisp.org>
32021
32022         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32023         Reported by Elbert Pol <e.pol@chello.nl>.
32024
32025 2008-04-12  Eric Blake  <ebb9@byu.net>
32026
32027         Work around Solaris 10 math.h bug.
32028         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32029         (gl_MATH_H_DEFAULTS): Set up default.
32030         * modules/math (Makefile.am): Replace new indicators.
32031         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32032         * tests/test-math.c (main): Test this.
32033         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32034         * doc/posix-headers/math.texi (math.h): Mention bug.
32035         Reported by Nelson H. F. Beebe and Jim Meyering.
32036
32037 2008-04-11  Bruno Haible  <bruno@clisp.org>
32038
32039         Adapt to future versions of Apple GCC.
32040         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32041         Reported by Peter O'Gorman <peter@pogma.com>.
32042
32043 2008-04-11  Bruno Haible  <bruno@clisp.org>
32044
32045         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32046
32047 2008-04-11  Bruno Haible  <bruno@clisp.org>
32048
32049         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32050
32051         * modules/getaddrinfo-tests (Makefile.am): Define
32052         test_getaddrinfo_LDADD.
32053
32054 2008-04-11  Bruno Haible  <bruno@clisp.org>
32055
32056         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32057         (init): Fix syntax error.
32058         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32059         is declared.
32060
32061 2008-04-11  Bruno Haible  <bruno@clisp.org>
32062
32063         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32064         * modules/glob (Depends-on): Add stdbool.
32065
32066 2008-04-11  Bruno Haible  <bruno@clisp.org>
32067
32068         * lib/trim.c: Include <string.h>.
32069
32070 2008-04-11  Eric Blake  <ebb9@byu.net>
32071
32072         Avoid compile failure on OS/2.
32073         * lib/regex_internal.h (internal_function): Disable optimization
32074         on OS/2 (__EMX__), where it caused compiler error.
32075         Reported by Elbert Pol.
32076
32077 2008-04-11  Bruno Haible  <bruno@clisp.org>
32078
32079         Flush the standard error stream before aborting. Needed on mingw.
32080         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32081         * tests/test-array_list.c (ASSERT): Likewise.
32082         * tests/test-array_oset.c (ASSERT): Likewise.
32083         * tests/test-avltree_list.c (ASSERT): Likewise.
32084         * tests/test-avltree_oset.c (ASSERT): Likewise.
32085         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32086         * tests/test-binary-io.c (ASSERT): Likewise.
32087         * tests/test-byteswap.c (ASSERT): Likewise.
32088         * tests/test-c-ctype.c (ASSERT): Likewise.
32089         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32090         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32091         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32092         * tests/test-c-strstr.c (ASSERT): Likewise.
32093         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32094         * tests/test-canonicalize.c (ASSERT): Likewise.
32095         * tests/test-carray_list.c (ASSERT): Likewise.
32096         * tests/test-ceilf1.c (ASSERT): Likewise.
32097         * tests/test-ceilf2.c (ASSERT): Likewise.
32098         * tests/test-ceill.c (ASSERT): Likewise.
32099         * tests/test-count-one-bits.c (ASSERT): Likewise.
32100         * tests/test-fbufmode.c (ASSERT): Likewise.
32101         * tests/test-fflush2.c (ASSERT): Likewise.
32102         * tests/test-floorf1.c (ASSERT): Likewise.
32103         * tests/test-floorf2.c (ASSERT): Likewise.
32104         * tests/test-floorl.c (ASSERT): Likewise.
32105         * tests/test-fopen.c (ASSERT): Likewise.
32106         * tests/test-fpending.c (ASSERT): Likewise.
32107         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32108         * tests/test-fpurge.c (ASSERT): Likewise.
32109         * tests/test-freadable.c (ASSERT): Likewise.
32110         * tests/test-freadahead.c (ASSERT): Likewise.
32111         * tests/test-freading.c (ASSERT): Likewise.
32112         * tests/test-freadptr.c (ASSERT): Likewise.
32113         * tests/test-freadptr2.c (ASSERT): Likewise.
32114         * tests/test-freadseek.c (ASSERT): Likewise.
32115         * tests/test-freopen.c (ASSERT): Likewise.
32116         * tests/test-frexp.c (ASSERT): Likewise.
32117         * tests/test-frexpl.c (ASSERT): Likewise.
32118         * tests/test-fseek.c (ASSERT): Likewise.
32119         * tests/test-fseeko.c (ASSERT): Likewise.
32120         * tests/test-fstrcmp.c (ASSERT): Likewise.
32121         * tests/test-ftell.c (ASSERT): Likewise.
32122         * tests/test-ftello.c (ASSERT): Likewise.
32123         * tests/test-func.c (ASSERT): Likewise.
32124         * tests/test-fwritable.c (ASSERT): Likewise.
32125         * tests/test-fwriting.c (ASSERT): Likewise.
32126         * tests/test-getdelim.c (ASSERT): Likewise.
32127         * tests/test-getline.c (ASSERT): Likewise.
32128         * tests/test-i-ring.c (ASSERT): Likewise.
32129         * tests/test-iconv-utf.c (ASSERT): Likewise.
32130         * tests/test-iconv.c (ASSERT): Likewise.
32131         * tests/test-isfinite.c (ASSERT): Likewise.
32132         * tests/test-isnand.c (ASSERT): Likewise.
32133         * tests/test-isnanf.c (ASSERT): Likewise.
32134         * tests/test-isnanl.h (ASSERT): Likewise.
32135         * tests/test-ldexpl.c (ASSERT): Likewise.
32136         * tests/test-linked_list.c (ASSERT): Likewise.
32137         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32138         * tests/test-localename.c (ASSERT): Likewise.
32139         * tests/test-lseek.c (ASSERT): Likewise.
32140         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32141         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32142         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32143         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32144         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32145         * tests/test-mbschr.c (ASSERT): Likewise.
32146         * tests/test-mbscspn.c (ASSERT): Likewise.
32147         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32148         * tests/test-mbspbrk.c (ASSERT): Likewise.
32149         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32150         * tests/test-mbsrchr.c (ASSERT): Likewise.
32151         * tests/test-mbsspn.c (ASSERT): Likewise.
32152         * tests/test-mbsstr1.c (ASSERT): Likewise.
32153         * tests/test-mbsstr2.c (ASSERT): Likewise.
32154         * tests/test-mbsstr3.c (ASSERT): Likewise.
32155         * tests/test-memchr2.c (ASSERT): Likewise.
32156         * tests/test-memmem.c (ASSERT): Likewise.
32157         * tests/test-open.c (ASSERT): Likewise.
32158         * tests/test-printf-frexp.c (ASSERT): Likewise.
32159         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32160         * tests/test-printf-posix.c (ASSERT): Likewise.
32161         * tests/test-quotearg.c (ASSERT): Likewise.
32162         * tests/test-rbtree_list.c (ASSERT): Likewise.
32163         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32164         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32165         * tests/test-round1.c (ASSERT): Likewise.
32166         * tests/test-roundf1.c (ASSERT): Likewise.
32167         * tests/test-roundl.c (ASSERT): Likewise.
32168         * tests/test-signbit.c (ASSERT): Likewise.
32169         * tests/test-sleep.c (ASSERT): Likewise.
32170         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32171         * tests/test-snprintf.c (ASSERT): Likewise.
32172         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32173         * tests/test-stat-time.c (ASSERT): Likewise.
32174         * tests/test-strcasestr.c (ASSERT): Likewise.
32175         * tests/test-strerror.c (ASSERT): Likewise.
32176         * tests/test-striconv.c (ASSERT): Likewise.
32177         * tests/test-striconveh.c (ASSERT): Likewise.
32178         * tests/test-striconveha.c (ASSERT): Likewise.
32179         * tests/test-strsignal.c (ASSERT): Likewise.
32180         * tests/test-strstr.c (ASSERT): Likewise.
32181         * tests/test-strtod.c (ASSERT): Likewise.
32182         * tests/test-trunc1.c (ASSERT): Likewise.
32183         * tests/test-trunc2.c (ASSERT): Likewise.
32184         * tests/test-truncf1.c (ASSERT): Likewise.
32185         * tests/test-truncf2.c (ASSERT): Likewise.
32186         * tests/test-truncl.c (ASSERT): Likewise.
32187         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32188         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32189         * tests/test-vasnprintf.c (ASSERT): Likewise.
32190         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32191         * tests/test-vasprintf.c (ASSERT): Likewise.
32192         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32193         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32194         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32195         * tests/test-vsnprintf.c (ASSERT): Likewise.
32196         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32197         * tests/test-wcwidth.c (ASSERT): Likewise.
32198         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32199         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32200         * tests/test-xvasprintf.c (ASSERT): Likewise.
32201         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32202         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32203         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32204         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32205         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32206         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32207         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32208         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32209         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32210         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32211         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32212         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32213         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32214         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32215         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32216         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32217         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32218         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32219         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32220         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32221         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32222         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32223         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32224         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32225         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32226         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32227         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32228         * tests/unictype/test-combining.c (ASSERT): Likewise.
32229         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32230         * tests/unictype/test-digit.c (ASSERT): Likewise.
32231         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32232         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32233         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32234         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32235         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32236         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32237         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32238         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32239         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32240         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32241         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32242         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32243         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32244         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32245         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32246         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32247         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32248         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32249         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32250         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32251         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32252         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32253         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32254         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32255         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32256         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32257         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32258         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32259         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32260         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32261         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32262         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32263         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32264         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32265         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32266         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32267         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32268         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32269         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32270         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32271         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32272         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32273         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32274         Reported by Eric Blake.
32275
32276 2008-04-11  Bruno Haible  <bruno@clisp.org>
32277
32278         * lib/wchar.in.h: Tweak comment.
32279
32280 2008-04-11  Bruno Haible  <bruno@clisp.org>
32281
32282         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32283         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32284         gl_COMMON.
32285         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32286
32287 2008-04-11  Bruno Haible  <bruno@clisp.org>
32288
32289         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32290
32291 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32292
32293         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32294         of attempting to use non-existing /dev/*random.  Based on patch
32295         from Adam Strzelecki <ono@java.pl> in
32296         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32297
32298 2008-04-08  Bruno Haible  <bruno@clisp.org>
32299
32300         Add tentative support for emx+gcc.
32301         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32302         * lib/fpurge.c (fpurge): Likewise.
32303         * lib/freadable.c (freadable): Likewise.
32304         * lib/freadahead.c (freadahead): Likewise.
32305         * lib/freading.c (freading): Likewise.
32306         * lib/freadptr.c (freadptr): Likewise.
32307         * lib/freadseek.c (freadptrinc): Likewise.
32308         * lib/fseeko.c (rpl_fseeko): Likewise.
32309         * lib/fseterr.c (fseterr): Likewise.
32310         * lib/fwritable.c (fwritable): Likewise.
32311         * lib/fwriting.c (fwriting): Likewise.
32312         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32313
32314 2008-04-09  Eric Blake  <ebb9@byu.net>
32315
32316         Avoid some autoconf warnings.
32317         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32318         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32319         * m4/afs.m4 (gl_AFS): Likewise.
32320         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32321         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32323         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32324         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32325         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32326         (AC_CHECK_DECLS_ONCE): Likewise.
32327         Rename file...
32328         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32329         gnulib-tool requires autoconf 2.59 or better.
32330         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32331
32332 2008-04-08  Eric Blake  <ebb9@byu.net>
32333
32334         Use 'git describe --match' if present (added in git 1.5.5).
32335         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32336         if possible.
32337
32338 2008-04-08  Bruno Haible  <bruno@clisp.org>
32339
32340         Add tentative support for OpenServer.
32341         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32342         _ptr, _cnt.
32343         * lib/fpurge.c (fpurge): Likewise.
32344         * lib/freadable.c (freadable): Likewise.
32345         * lib/freadahead.c (freadahead): Likewise.
32346         * lib/freading.c (freading): Likewise.
32347         * lib/freadptr.c (freadptr): Likewise.
32348         * lib/freadseek.c (freadptrinc): Likewise.
32349         * lib/fseeko.c (rpl_fseeko): Likewise.
32350         * lib/fseterr.c (fseterr): Likewise.
32351         * lib/fwritable.c (fwritable): Likewise.
32352         * lib/fwriting.c (fwriting): Likewise.
32353         Reported by Roger Cornelius <rac@tenzing.org> and
32354         Brian K. White <brian@aljex.com>.
32355
32356 2008-04-06  Jim Meyering  <meyering@redhat.com>
32357
32358         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32359
32360 2008-04-06  Bruno Haible  <bruno@clisp.org>
32361
32362         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32363         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32364         * tests/test-printf-posix.sh: Likewise.
32365         * tests/test-vfprintf-posix.sh: Likewise.
32366         * tests/test-vprintf-posix.sh: Likewise.
32367         * tests/test-xprintf-posix.sh: Likewise.
32368
32369 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32370
32371         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32372         hide error from 'ls', needed on OS/2.
32373         Report by Elbert Pol <elbert.pol@gmail.com>.
32374
32375 2008-04-04  Eric Blake  <ebb9@byu.net>
32376
32377         Make test-fseeko.c failures meaningful.
32378         * tests/test-fseeko.c: Print line number on failure.
32379         * tests/test-fseek.c: Likewise.
32380         Reported by Nelson H. F. Beebe.
32381
32382         Improve strtod bug detection check.
32383         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32384         required for Solaris 10.
32385         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32386
32387 2008-04-04  Bruno Haible  <bruno@clisp.org>
32388
32389         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32390         by m4/setenv.m4.
32391
32392 2008-04-03  Eric Blake  <ebb9@byu.net>
32393
32394         Ensure sane .version contents.
32395         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32396         version string.
32397         * build-aux/git-version-gen: Improve documentation.
32398
32399         Make GNU make output nicer.
32400         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32401         MAKECMDGOALS to enforce message for all command line targets.  Set
32402         srcdir for use in maint.mk.
32403
32404         Another maintainer tweak.
32405         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32406         a target that regenerates version.
32407
32408 2008-04-03  Jim Meyering  <meyering@redhat.com>
32409
32410         vc-list-files: don't cause coreutils "make po-check" failure
32411         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32412
32413 2008-04-03  Eric Blake  <ebb9@byu.net>
32414
32415         Allow VPATH usage of vc-list-files.
32416         * build-aux/vc-list-files (scriptversion): Add timestamp.
32417         (options): Add --help, --version, -C.
32418         (CVS): Support installed cvsu.
32419
32420 2008-04-02  Bruno Haible  <bruno@clisp.org>
32421
32422         Avoid some "statement with no effect" warnings from gcc.
32423         * tests/test-wctype.c (main): Explicitly ignore unused values.
32424         Reported by Jim Meyering.
32425
32426 2008-04-02  Jim Meyering  <meyering@redhat.com>
32427
32428         Avoid some warnings from "gcc -Wshadow".
32429         * tests/test-frexp.c (exp): Define to a different identifier.
32430         * tests/test-frexpl.c (exp): Likewise.
32431
32432 2008-04-03  Jim Meyering  <meyering@redhat.com>
32433
32434         bootstrap: remove dangling *.[ch] symlinks from lib
32435         * build-aux/bootstrap [dangling symlink removal]: Move find's
32436         -depth option to precede all others, to avoid a warning.
32437         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32438
32439 2008-04-02  Bruno Haible  <bruno@clisp.org>
32440
32441         Avoid some warnings from "gcc -Wshadow".
32442         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32443         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32444         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32445         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32446         Reported by Jim Meyering.
32447
32448 2008-04-01  Bruno Haible  <bruno@clisp.org>
32449
32450         Fix test to work on IRIX 6.5 with cc.
32451         * tests/test-math.c (numeric_equal): New function.
32452         (main): Use it.
32453
32454 2008-04-01  Bruno Haible  <bruno@clisp.org>
32455
32456         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32457
32458 2008-04-01  Bruno Haible  <bruno@clisp.org>
32459
32460         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32461         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32462         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32463         (Depends-on): Remove math.
32464
32465         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32466         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32467         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32468         (Depends-on): Remove math.
32469
32470         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32471         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32472         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32473         (Depends-on): Remove math.
32474         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32475         (Depends-on): Remove math.
32476
32477         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32478         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32479         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32480         (Depends-on): Remove math.
32481         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32482         (Depends-on): Remove math.
32483
32484         * tests/test-round1.c: Include nan.h.
32485         (main): Use NaNd instead of NAN.
32486         * modules/round-tests (Files): Add tests/nan.h.
32487
32488         * tests/test-trunc1.c: Include nan.h.
32489         (main): Use NaNd instead of NAN.
32490         * modules/trunc-tests (Files): Add tests/nan.h.
32491
32492         * tests/test-roundf1.c: Include nan.h.
32493         (main): Use NaNf instead of NAN.
32494         * modules/roundf-tests (Files): Add tests/nan.h.
32495
32496         * tests/test-truncf1.c: Include nan.h.
32497         (main): Use NaNf instead of NAN.
32498         * modules/truncf-tests (Files): Add tests/nan.h.
32499
32500         * tests/test-ceilf1.c: Include nan.h.
32501         (main): Use NaNf instead of NAN.
32502         * modules/ceilf-tests (Files): Add tests/nan.h.
32503
32504         * tests/test-floorf1.c: Include nan.h.
32505         (main): Use NaNf instead of NAN.
32506         * modules/floorf-tests (Files): Add tests/nan.h.
32507
32508         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32509         (main): Use NaNf instead of NAN.
32510         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32511
32512         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32513         (main): Use NaNd instead of NAN.
32514         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32515
32516         * tests/test-frexp.c: Include nan.h.
32517         (main): Use NaNd instead of NAN.
32518         * modules/frexp-tests (Files): Add tests/nan.h.
32519
32520         * lib/isnan.c: Don't include <math.h>.
32521         (FUNC): Don't use NAN macro.
32522         * modules/isnand-nolibm (Depends-on): Remove math.
32523         * modules/isnanf-nolibm (Depends-on): Remove math.
32524         * modules/isnanl (Depends-on): Remove math.
32525         * modules/isnanl-nolibm (Depends-on): Remove math.
32526
32527         * tests/nan.h: New file.
32528
32529 2008-04-01  Eric Blake  <ebb9@byu.net>
32530
32531         Fix typos.
32532         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32533         values to be the right type.
32534
32535         For now, cater to gnulib strtod inaccuracies.
32536         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32537         fractional results.  While not as nice from a QoI perspective, it
32538         is a quicker patch than correctly implementing decimal to binary
32539         rounding.
32540
32541 2008-03-31  Eric Blake  <ebb9@byu.net>
32542
32543         Guarantee a definition of NAN.
32544         * lib/math.in.h (NAN): Define if missing.
32545         * tests/test-math.c (main): Test it.
32546         * doc/posix-headers/math.texi (math.h): Document this.
32547         * lib/isnan.c (rpl_isnand): Use it.
32548         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32549         * tests/test-floorf1.c (NaN): Likewise.
32550         * tests/test-frexp.c (NaN): Likewise.
32551         * tests/test-isnand.c (NaN): Likewise.
32552         * tests/test-isnanf.c (NaN): Likewise.
32553         * tests/test-round1.c (NaN): Likewise.
32554         * tests/test-roundf1.c (NaN): Likewise.
32555         * tests/test-snprintf-posix.h (NaN): Likewise.
32556         * tests/test-sprintf-posix.h (NaN): Likewise.
32557         * tests/test-trunc1.c (NaN): Likewise.
32558         * tests/test-truncf1.c (NaN): Likewise.
32559         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32560         * tests/test-vasprintf-posix.c (NaN): Likewise.
32561         * modules/isnand-nolibm (Depends-on): Add math.
32562         * modules/isnanf-nolibm (Depends-on): Likewise.
32563         * modules/isnanl (Depends-on): Likewise.
32564         * modules/isnanl-nolibm (Depends-on): Likewise.
32565         * modules/snprintf-posix-tests (Depends-on): Likewise.
32566         * modules/sprintf-posix-tests (Depends-on): Likewise.
32567         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32568         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32569         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32570         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32571
32572 2008-03-31  Bruno Haible  <bruno@clisp.org>
32573
32574         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32575         * doc/posix-functions/strtod.texi: Likewise.
32576
32577 2008-03-31  Bruno Haible  <bruno@clisp.org>
32578
32579         * tests/test-strtod.c (main): Don't use C99 syntax.
32580
32581 2008-03-31  Bruno Haible  <bruno@clisp.org>
32582
32583         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32584         Reported by Eric Blake.
32585
32586 2008-03-31  Jim Meyering  <meyering@redhat.com>
32587
32588         Don't compare actual signbit return values.
32589         * tests/test-strtod.c (main): Rather, compare only their
32590         zero/non-zero nature.
32591
32592 2008-03-31  Eric Blake  <ebb9@byu.net>
32593
32594         More strtod documentation.
32595         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32596         failures as distinct bugs.
32597
32598 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32599
32600         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32601         Problem reported by Erik Benada in
32602         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32603
32604 2008-03-30  Bruno Haible  <bruno@clisp.org>
32605
32606         * tests/test-strtod.c: Add comments about which assertion fails on which
32607         platform.
32608         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32609
32610 2008-03-30  Eric Blake  <ebb9@byu.net>
32611
32612         Test signbit behavior on zeros.
32613         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32614         (test_signbitd, test_signbitl): Likewise.
32615
32616         More strtod touchups.
32617         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32618         sign of negative underflow, for now.  Use .5, not .1.
32619         * doc/posix-functions/strtod.texi (strtod): Mention these
32620         limitations.
32621         Reported by Jim Meyering.
32622
32623 2008-03-30  Bruno Haible  <bruno@clisp.org>
32624
32625         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32626         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32627
32628 2008-03-30  Bruno Haible  <bruno@clisp.org>
32629
32630         Avoid failure when attempting to return empty iconv results on some
32631         platforms.
32632         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32633         allocation, don't report ENOMEM when the resulting string is empty.
32634
32635 2008-03-30  Bruno Haible  <bruno@clisp.org>
32636
32637         Fix buffer overrun.
32638         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32639         Don't consider the width for tmp_length. Check count against tmp_length
32640         before doing the padding. Ensure enough allocation during padding.
32641
32642 2008-03-30  Eric Blake  <ebb9@byu.net>
32643
32644         strtod touchups.
32645         * lib/strtod.c (strtod): Avoid compiler warnings.
32646         Reported by Jim Meyering.
32647
32648 2008-03-30  Bruno Haible  <bruno@clisp.org>
32649
32650         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32651         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32652         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32653         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32654         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32655         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32656         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32657         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32658
32659         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32660         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32661         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32662         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32663         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32664         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32665         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32666         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32667
32668         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32669         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32670         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32671         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32672         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32673         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32674         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32675         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32676
32677         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32678         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32679
32680         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32681         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32682
32683         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32684         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32685
32686         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32688         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32689
32690         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32692         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32693
32694         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32696         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32697
32698         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32700         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32701
32702         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32703         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32705         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32706         (Depends-on): Add EOVERFLOW.
32707         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32708         (Depends-on): Add EOVERFLOW.
32709         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32710         (Depends-on): Add EOVERFLOW.
32711         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32712         (Depends-on): Add EOVERFLOW.
32713         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32714         (Depends-on): Add EOVERFLOW.
32715         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32716         (Depends-on): Add EOVERFLOW.
32717         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32718         (Depends-on): Add EOVERFLOW.
32719         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32720         (Depends-on): Add EOVERFLOW.
32721
32722         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32724         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32725
32726         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32728         * modules/snprintf (Depends-on): Add EOVERFLOW.
32729
32730         * lib/poll.c (EOVERFLOW): Remove fallback.
32731         * modules/poll (Depends-on): Add EOVERFLOW.
32732
32733         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32734         * modules/getugroups (Depends-on): Add EOVERFLOW.
32735
32736         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32737         * modules/getdelim (Depends-on): Add EOVERFLOW.
32738
32739         * lib/ftell.c (EOVERFLOW): Remove fallback.
32740         * modules/ftell (Depends-on): Add EOVERFLOW.
32741
32742         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32744         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32745
32746         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32747
32748         * modules/EOVERFLOW-tests: New file.
32749         * tests/test-EOVERFLOW.c: New file.
32750
32751         * modules/EOVERFLOW: New file.
32752         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32753
32754 2008-03-30  Bruno Haible  <bruno@clisp.org>
32755
32756         Fix bug introduced on 2007-06-10.
32757         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32758         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32759
32760 2008-03-30  Bruno Haible  <bruno@clisp.org>
32761
32762         Improve freadseek's efficiency after ungetc.
32763         * lib/freadseek.c: Include freadahead.h.
32764         (freadptrinc): New function, extracted from freadseek.
32765         (freadseek): Use it in a loop. Use freadahead to determine the number
32766         of loop iterations.
32767         * modules/freadseek (Depends-on): Add freadahead.
32768         (configure.ac): Require AC_C_INLINE.
32769
32770 2008-03-30  Bruno Haible  <bruno@clisp.org>
32771
32772         * lib/freadseek.c (freadseek): Don't ignore the return value of
32773         freadptr.
32774
32775 2008-03-29  Eric Blake  <ebb9@byu.net>
32776
32777         Add hex float support.
32778         * modules/strtod (Depends-on): Add c-ctype.
32779         (Link): Mention POW_LIB.
32780         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32781         whitespace between 'e' and exponent.
32782         * tests/test-strtod.c (main): Enable hex float tests.
32783         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32784         now provides.
32785
32786         Document various strtod bugs, with some fixes.
32787         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32788         "-0x", "inf", "nan", and hex constants.
32789         * doc/posix-functions/atof.texi (atof): Likewise.
32790         * modules/stdlib (Makefile.am): Support strtod.
32791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32792         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32793         detect additional strtod bugs.
32794         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32795         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32796         bool where appropriate.  Parse 'inf' and 'nan'.
32797         * tests/test-strtod.c: New file.
32798         * modules/strtod (Depends-on): Add stdbool, stdlib.
32799         (configure.ac): Turn on module indicator.
32800         * modules/strtod-tests: New module.
32801
32802 2008-03-29  Eric Blake  <ebb9@byu.net>
32803
32804         Fix ftell on mingw.
32805         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32806         * modules/ftell-tests (Depends-on): Add binary-io.
32807         * modules/ftello-tests (Depends-on): Likewise.
32808         * tests/test-ftell.c (main): Enhance test to cover behavior after
32809         ungetc.  Enforce binary mode.
32810         * tests/test-ftello.c (main): Likewise.
32811
32812         Pass test-freadseek on cygwin.
32813         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32814         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32815         ungetc buffer.
32816
32817         * tests/test-fflush2.c (main): Fix typo.
32818
32819 2008-03-29  Bruno Haible  <bruno@clisp.org>
32820
32821         * tests/test-fflush2.c (main): Temporarily disable the contents of
32822         this test.
32823         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32824         Reported by Eric Blake.
32825
32826 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32827
32828         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32829         (GC_SHA224_DIGEST_SIZE): Add.
32830
32831         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32832         (gc_hash_digest_length): Likewise.
32833         (gc_hash_buffer): Likewise.
32834
32835 2008-03-25  Bruno Haible  <bruno@clisp.org>
32836
32837         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32838         detail which gettext release to use.
32839         Reported by Simon Josefsson.
32840
32841 2008-03-26  Jim Meyering  <meyering@redhat.com>
32842
32843         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32844         * modules/gnumakefile (clean-GNUmakefile): Also, use
32845         test ... && ... || : syntax rather than if-then ... fi.
32846
32847         gnumakefile: Don't double-quote-expand $(VPATH) value.
32848         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32849
32850 2008-03-24  Eric Blake  <ebb9@byu.net>
32851
32852         Alter GNUmakefile to install into top directory.
32853         * modules/maintainer-makefile: Split, and add dependency...
32854         * modules/gnumakefile: to this new module.
32855         * build-aux/GNUmakefile: Move...
32856         * top/GNUmakefile: ...here.
32857         * build-aux/maint.mk: Move...
32858         * top/maint.mk: ...here.
32859         * MODULES.html.sh (Support for maintaining...): Document new
32860         module.
32861
32862 2008-03-23  Bruno Haible  <bruno@clisp.org>
32863
32864         * gnulib-tool: New options --vc-files, --no-vc-files.
32865         (func_usage): Document them.
32866         (vc_files): New variable.
32867         (func_import): Consider vc_files.
32868         (func_create_testdir): Set vc_files to empty.
32869         Suggested by Jim Meyering and Karl Berry.
32870
32871 2008-03-23  Bruno Haible  <bruno@clisp.org>
32872
32873         Fix regex compilation error on HP-UX 11.
32874         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32875         * modules/regex (Files): Add m4/mbstate_t.m4.
32876         Reported by Ton Voon <ton.voon@altinity.com>.
32877
32878 2008-03-23  Bruno Haible  <bruno@clisp.org>
32879
32880         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32881
32882 2008-03-23  Eric Blake  <ebb9@byu.net>
32883             Bruno Haible  <bruno@clisp.org>
32884
32885         Install files from top/ in the destination directory.
32886         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32887         augmentation also for the files from top/.
32888         (func_import, func_create_testdir): Rewrite file names:
32889         top/filename -> filename.
32890
32891 2008-03-23  Bruno Haible  <bruno@clisp.org>
32892
32893         Tweak "gnulib --version" output.
32894         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32895
32896 2008-03-23  Bruno Haible  <bruno@clisp.org>
32897
32898         Tweak "gnulib --version" output.
32899         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32900         rather than contents of ChangeLog, when possible.
32901
32902 2008-03-21  Eric Blake  <ebb9@byu.net>
32903
32904         More --version tweaks.
32905         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32906         date of last ChangeLog entry.
32907
32908 2008-03-21  Jim Meyering  <meyering@redhat.com>
32909
32910         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32911
32912 2008-03-20  Eric Blake  <ebb9@byu.net>
32913
32914         VPATH fix.
32915         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32916
32917 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32918
32919         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32920         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32921
32922 2008-03-20  Eric Blake  <ebb9@byu.net>
32923
32924         Sync GNUmakefile with coreutils.
32925         * build-aux/GNUmakefile (have-Makefile): Rename...
32926         (_have-Makefile): ...to this, for namespace consideration.
32927         (GNUmakefile.cfg): Include, if present.
32928         (_autoreconf): Define a default.
32929         (_is-dist-target): New rule for rebuilds to pick up intra-release
32930         version.
32931         (maint-cfg.mk): Rename...
32932         (cfg.mk): ...to this.
32933
32934 2008-03-18  Jim Meyering  <meyering@redhat.com>
32935
32936         New script and module: mktempd
32937         * MODULES.html.sh (maint+release support): Add mktempd.
32938         * build-aux/mktempd: New file.
32939         * modules/mktempd: New file.
32940
32941 2008-03-15  Jim Meyering  <meyering@redhat.com>
32942
32943         Undo last change.
32944         * lib/sha1.c, lib/md5.c: 63 != ~63.
32945         Reported by Andreas Schwab.
32946
32947         sha1.c, md5.c: Hoist a redundant expression.
32948         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
32949         "ctx->buflen" only once, before calling *_process_block.
32950         * lib/md5.c (md5_process_bytes): Likewise.
32951
32952 2008-03-14  Eric Blake  <ebb9@byu.net>
32953
32954         Bump copyright year in files generated by gnulib-tool.
32955         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
32956         gnulib-tool, rather than hard-coding it.
32957
32958         Fix 'gnulib-tool --version' output to work with git.
32959         * gnulib-tool (func_gnulib_dir): New function, extracted from...
32960         (startup): ...here.
32961         (func_version): Use it to invoke git-version-gen, rather than
32962         relying on CVS keyword expansion.  Modernize wording.
32963         (cvsdatestamp, last_checkin_date, version): Kill unused
32964         variables.
32965
32966 2008-03-12  Jim Meyering  <meyering@redhat.com>
32967
32968         Recognize optional cast of the argument to free.
32969         * build-aux/useless-if-before-free: Update regexps.
32970
32971         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
32972
32973 2008-03-11  Bruno Haible  <bruno@clisp.org>
32974
32975         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
32976         by a single package.
32977         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
32978         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
32979         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
32980         Reported by Sam Steingold <sds@gnu.org>.
32981
32982 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32983
32984         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
32985         repositories.
32986
32987 2008-03-11  Bruno Haible  <bruno@clisp.org>
32988
32989         Avoid conflicts between local macro definitions.
32990         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32991         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
32992
32993 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
32994             Bruno Haible  <bruno@clisp.org>
32995
32996         Make va_copy work with some version of xlc on AIX 5.1.
32997         * lib/stdarg.in.h: New file.
32998         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
32999         On AIX, use a <stdarg.h> file substitute.
33000         * modules/stdarg (Files): Add lib/stdarg.in.h.
33001         (Depends-on): Add include_next.
33002         (Makefile.am): Build a stdarg.h substitute if requested.
33003         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33004
33005 2008-03-10  Bruno Haible  <bruno@clisp.org>
33006
33007         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33009         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33010
33011 2008-03-10  Bruno Haible  <bruno@clisp.org>
33012
33013         * modules/stdlib (Depends-on): Add include_next, remove
33014         absolute-header.
33015
33016 2008-03-09  Bruno Haible  <bruno@clisp.org>
33017
33018         * lib/freadahead.h (freadahead): Document more precisely.
33019         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33020         the sum of both buffer sizes.
33021         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33022         * NEWS: Document the change.
33023
33024 2008-03-09  Bruno Haible  <bruno@clisp.org>
33025
33026         Extend freadptr to return also the buffer size.
33027         * lib/freadptr.h (freadptr): Add sizep argument.
33028         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33029         (freadptr): Add sizep argument. Determine buffer size like freadahead
33030         does.
33031         * tests/test-freadptr.c: Don't include freadahead.h.
33032         (main): Adapt for new calling convention of freadptr.
33033         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33034         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33035         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33036         tests/test-freadptr2.sh.
33037         (Depends): Remove freadahead.
33038         (TESTS): Add test-freadptr2.sh.
33039         (check_PROGRAMS): Add test-freadptr2.
33040
33041 2008-03-09  Bruno Haible  <bruno@clisp.org>
33042
33043         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33044         Report and solution by Simon Josefsson.
33045
33046 2008-03-06  Bruno Haible  <bruno@clisp.org>
33047
33048         Make fflush after ungetc work on BSD platforms.
33049         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33050         * tests/test-fflush2.c: New file.
33051         * tests/test-fflush2.sh: New file.
33052         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33053         tests/test-fflush2.c.
33054         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33055         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33056
33057 2008-03-06  Eric Blake  <ebb9@byu.net>
33058
33059         Likewise for ftello.
33060         * modules/ftello (Dependencies): Add extensions.
33061         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33062
33063 2008-03-06  Bruno Haible  <bruno@clisp.org>
33064
33065         * modules/fseeko (Dependencies): Add extensions.
33066         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33067         Needed on glibc systems.
33068
33069 2008-03-06  Bruno Haible  <bruno@clisp.org>
33070
33071         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33072         email address.
33073         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33074
33075 2008-03-06  Bruno Haible  <bruno@clisp.org>
33076
33077         * users.txt: Add libgnupdf.
33078
33079 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33080
33081         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33082         (Header File Substitutes, Function Substitutes,
33083         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33084         (Build robot for gnulib): Fix typo.
33085
33086 2008-03-06  Bruno Haible  <bruno@clisp.org>
33087
33088         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33089         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33090
33091 2008-03-06  Bruno Haible  <bruno@clisp.org>
33092
33093         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33094         * doc/gnulib.texi: Include it.
33095
33096 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33097
33098         * modules/func (License): Change license to unlimited; there was
33099         no LGPL parts in the module anyway.
33100
33101 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33102
33103         * modules/__func__: Renamed to modules/func.
33104         * modules/__func__-tests: Renamed to modules/func-tests.
33105         * tests/test-__func__.c: Renamed to tests/test-func.c.
33106         * m4/__func__.m4: Renamed to m4/func.m4.
33107         * doc/gnulib.texi (__func__): Section renamed to func.
33108         Suggested by Eric Blake <ebb9@byu.net>.
33109
33110 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33111
33112         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33113         about __func__.  Make example self-contained.  Suggested by Eric
33114         Blake <ebb9@byu.net>.
33115
33116         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33117         Suggested by Eric Blake <ebb9@byu.net>.
33118
33119 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33120
33121         * modules/__func__: New file.
33122         * modules/__func__-tests: New file.
33123         * tests/test-__func__.c: New file.
33124         * m4/__func__.m4: New file.
33125         * doc/gnulib.texi (__func__): Document __func__ module.
33126
33127 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33128
33129         * modules/byteswap (License): Re-license as LGPLv2+.
33130
33131 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33132
33133         * doc/Makefile: Add pdf target.
33134
33135 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33136
33137         * modules/inline (License): Use 'unlimited', since there are only
33138         *.m4 files in this module.
33139
33140 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33141             Bruno Haible  <bruno@clisp.org>
33142
33143         Add support for HP C 7.1 on OpenVMS 8.3.
33144         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33145
33146 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33147
33148         Update VMS specifics.
33149         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33150
33151 2008-03-02  Jim Meyering  <meyering@redhat.com>
33152
33153         Remove the last dependency on the "free" module.
33154         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33155         Reported by Bob Proulx.
33156
33157         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33158
33159         Remove useless "if" tests before free.  Deprecate "free" module.
33160         * doc/posix-functions/free.texi: Mention that this
33161         module is no longer useful.
33162         * modules/free (Notice): Say this module is obsolete.
33163         * modules/readutmp (Depends-on): Remove free.
33164         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33165         * lib/putenv.c (putenv): Likewise.
33166         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33167         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33168         * tests/test-c-strcasestr.c (main): Likewise.
33169         * tests/test-c-strstr.c (main): Likewise.
33170         * tests/test-mbscasestr1.c (main): Likewise.
33171         * tests/test-mbscasestr2.c (main): Likewise.
33172         * tests/test-mbsstr1.c (main): Likewise.
33173         * tests/test-mbsstr2.c (main): Likewise.
33174         * tests/test-memmem.c (main): Likewise.
33175         * tests/test-strcasestr.c (main): Likewise.
33176         * tests/test-striconv.c (main): Likewise.
33177         * tests/test-striconveh.c (main): Likewise.
33178         * tests/test-striconveha.c (main): Likewise.
33179         * tests/test-strstr.c (main): Likewise.
33180
33181         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33182
33183         bootstrap: sync from coreutils again
33184         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33185
33186 2008-03-01  Jim Meyering  <meyering@redhat.com>
33187
33188         bootstrap: sync from coreutils
33189         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33190         also when the target doesn't exist.
33191
33192 2008-03-01  Eric Blake  <ebb9@byu.net>
33193
33194         Fix bugs in last patch.
33195         * lib/memchr2.c (memchr2): Fix typo.
33196         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33197         extension.
33198         Reported by Bruce Korb.
33199
33200         New module 'memchr2'.
33201         * modules/memchr2: New file.
33202         * modules/memchr2-tests: Likewise.
33203         * lib/memchr2.h: Likewise.
33204         * lib/memchr2.c: Likewise, based on memchr.c.
33205         * tests/test-memchr2.c: New test.
33206         * MODULES.html.sh (String handling): Add memchr2.
33207
33208 2008-02-29  Bruno Haible  <bruno@clisp.org>
33209
33210         * modules/freadseek-tests: New file.
33211         * tests/test-freadseek.sh: New file.
33212         * tests/test-freadseek.c: New file.
33213
33214         New module 'freadseek'.
33215         * modules/freadseek: New file.
33216         * lib/freadseek.h: New file.
33217         * lib/freadseek.c: New file.
33218         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33219
33220 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33221
33222         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33223         wydawca.
33224
33225         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33226         program_invocation_name and program_invocation_short_name are
33227         present.
33228
33229 2008-02-28  Bruno Haible  <bruno@clisp.org>
33230
33231         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33232         * tests/test-freadptr.sh: Also test non-seekable stdin.
33233
33234 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33235
33236         * build-aux/bootstrap (source_base, m4_base)
33237         (doc_base, tests_base): New variables.
33238         (gnulib_tool_options): Do not hardcode base directories, use
33239         the above variables instead.
33240
33241 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33242
33243         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33244
33245 2008-02-28  Bruno Haible  <bruno@clisp.org>
33246
33247         * modules/freadptr-tests: New file.
33248         * tests/test-freadptr.sh: New file.
33249         * tests/test-freadptr.c: New file.
33250
33251         New module 'freadptr'.
33252         * modules/freadptr: New file.
33253         * lib/freadptr.h: New file.
33254         * lib/freadptr.c: New file.
33255         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33256
33257 2008-02-26  Karl Berry  <karl@freefriends.org>
33258
33259         Sync from Libtool:
33260         * libltdl/argz.c (argz_add, argz_count): New functions.
33261         * libltdl/argz.in.h: Declare them.
33262         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33263
33264 2008-02-22  Bruno Haible  <bruno@clisp.org>
33265
33266         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33267         is a pointer type.  Needed for HP-UX 10.
33268         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33269         * doc/posix-functions/gmtime_r.texi: Likewise.
33270         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33271
33272 2008-02-24  Bruno Haible  <bruno@clisp.org>
33273
33274         * modules/environ-tests: New file.
33275         * tests/test-environ.c: New file.
33276
33277         New module 'environ'.
33278         * modules/environ: New file.
33279         * lib/unistd.in.h (environ): New declaration.
33280         * m4/environ.m4: New file.
33281         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33282         after use.
33283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33284         HAVE_DECL_ENVIRON.
33285         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33286         HAVE_DECL_ENVIRON.
33287         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33288         wrong claim that 'environ' is missing on some systems.
33289         * modules/execute (Depends-on): Add environ.
33290         * lib/execute.c (environ): Remove fallback declaration.
33291         * modules/pipe (Depends-on): Add environ.
33292         * lib/pipe.c (environ): Remove fallback declaration.
33293         * modules/setenv (Depends-on): Add environ.
33294         * lib/setenv.c (environ): Remove fallback declaration.
33295         * modules/unsetenv (Depends-on): Add environ.
33296         * lib/unsetenv.c (environ): Remove fallback declaration.
33297         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33298         m4/environ.m4.
33299         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33300         (gl_PREREQ_UNSETENV): Likewise.
33301
33302 2008-02-24  Bruno Haible  <bruno@clisp.org>
33303
33304         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33305
33306 2008-02-20  Bob Proulx  <bob@proulx.com>
33307
33308         Enable use of older two part flavor 'git describe'.
33309         * build-aux/git-version-gen: If using the older two part flavor of
33310         git version then recreate the third part now present in the
33311         newer three part flavor of git describe.
33312
33313 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33314
33315         * lib/fts.c (fts_build): Typo correction to comment.
33316
33317 2008-02-17  Bruno Haible  <bruno@clisp.org>
33318
33319         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33320         generating no-op conflicts.
33321
33322 2008-02-17  Bruno Haible  <bruno@clisp.org>
33323
33324         Speed up by 10%.
33325         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33326         result_entries, rather than an index-based loop.
33327
33328 2008-02-17  Bruno Haible  <bruno@clisp.org>
33329
33330         Speed up by 25%.
33331         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33332         'hashcode_cached'.
33333         (entry_create): New function.
33334         (entry_hashcode): Use the cached hashcode if possible.
33335         (read_changelog_file, try_split_merged_entry): Use entry_create.
33336
33337 2008-02-17  Bruno Haible  <bruno@clisp.org>
33338
33339         Speed up from O(n^2) to O(n) for long ChangeLog files.
33340         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33341         (read_changelog_file): Change implementation of entries_reversed list
33342         to rbtreehash.
33343         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33344
33345 2008-02-17  Bruno Haible  <bruno@clisp.org>
33346
33347         New option --split-merged-entry.
33348         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33349         (find_paragraph_end, try_split_merged_entry): New functions.
33350         (long_options): Add option --split-merged-entry.
33351         (usage): Document option --split-merged-entry.
33352         (main): Implement option --split-merged-entry.
33353         Reported by Eric Blake.
33354
33355 2008-02-17  Bruno Haible  <bruno@clisp.org>
33356
33357         * lib/git-merge-changelog.c: Include c-strstr.h.
33358         (main): Support the "git pull --rebase" situation.
33359         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33360         Reported by Eric Blake.
33361
33362 2008-02-16  Eric Blake  <ebb9@byu.net>
33363
33364         Avoid doubling \ in common case of "c-maybe" quoting style.
33365         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33366         eliding outer quotes.
33367         * lib/quotearg.h: Document this.
33368         * tests/test-quotearg.c (result_strings, inputs, results_g)
33369         (flag_results, locale_results): Test it by adding a new string to
33370         each test group.
33371         (compare_strings): Test new string.
33372
33373 2008-02-13  Eric Blake  <ebb9@byu.net>
33374
33375         Avoid trigraph quoting in default output.
33376         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33377         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33378         unless explicitly requested.
33379         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33380
33381 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33382
33383         Don't rely on signed integer overflowing to negative value.
33384         * lib/getugroups.c (getugroups): Include <limits.h>.
33385         Instead, compare against INT_MAX, and increment only if the test passes.
33386
33387 2008-02-13  Jim Meyering  <meyering@redhat.com>
33388         and Eric Blake  <ebb9@byu.net>
33389
33390         Avoid shadowing warning and compile errors on Linux.
33391         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33392         forwarding macros on Linux.
33393         (dcgettext): Define a stub, for Linux.
33394         (results_g, main): Avoid warnings.
33395
33396 2008-02-12  Eric Blake  <ebb9@byu.net>
33397
33398         Silence warning in last patch.
33399         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33400
33401         Quotearg part 4: add tests, fix c-maybe colon quoting.
33402         * lib/quotearg.h: Improve documentation.
33403         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33404         escapes when adding outer quotes.  When quoting trigraphs, use
33405         valid C notation.  When quoting NUL, omit extra characters if next
33406         character is not digit.  Alter prototype.
33407         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33408         callers.
33409         * modules/quotearg-tests: New module.
33410         * tests/test-quotearg.c: New test.
33411
33412 2008-02-07  Eric Blake  <ebb9@byu.net>
33413
33414         Quotearg part 3: add flag to control outer quote elision.
33415         * lib/quotearg.h (c_maybe_quoting_style): New style.
33416         (enum quoting_flags): Better documentation of flags.
33417         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33418         c-maybe style.
33419         (quotearg_buffer_restyled): Handle new flag to elide outer
33420         quotes.
33421
33422         Quotearg part 2: add flag that can control NUL elision.
33423         * lib/quotearg.h (set_quoting_flags): New prototype.
33424         * lib/quotearg.c (struct quoting_options): Add flag field.
33425         (set_quoting_flags): New function.
33426         (quotearg_buffer_restyled): Add flags parameter.
33427         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33428         (quotearg_n_options): Set the flag, since length cannot be
33429         returned.
33430         (quoting_options_from_style): Default flags correctly.
33431
33432         Quotearg part 1: more wrappers, restore quotearg_char state.
33433         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33434         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33435         (quotearg_colon_mem): New wrappers.
33436         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33437         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33438         functions.
33439         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33440         (quotearg_colon_mem): New functions.
33441
33442 2008-02-11  Bruno Haible  <bruno@clisp.org>
33443
33444         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33445         library in the current directory: it does not work with parallel make.
33446         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33447
33448 2008-02-11  Bruno Haible  <bruno@clisp.org>
33449
33450         * .gitattributes: New file.
33451
33452 2008-02-11  Jim Meyering  <meyering@redhat.com>
33453
33454         useless-if-before-free: Fix reversed exit values.
33455         * build-aux/useless-if-before-free: Use correct values
33456         for EXIT_MATCH and EXIT_NO_MATCH.
33457
33458         * build-aux/useless-if-before-free: Close stdout carefully.
33459
33460 2008-02-10  Bruno Haible  <bruno@clisp.org>
33461
33462         New module 'git-merge-changelog'.
33463         * modules/git-merge-changelog: New file.
33464         * lib/git-merge-changelog.c: New file.
33465
33466 2008-02-10  Jim Meyering  <meyering@redhat.com>
33467
33468         useless-if-before-free: New option: --list (-l).
33469
33470         useless-if-before-free: Don't exit immediately upon open failure.
33471         * build-aux/useless-if-before-free: Exit 2 for errors.
33472         Upon failure to open a file, don't exit immediately.
33473         Rather, just warn and continue with any remaining files.
33474
33475 2008-02-10  Bruno Haible  <bruno@clisp.org>
33476
33477         New abstract list operation 'node_set_value'.
33478         * lib/gl_list.h (gl_list_node_set_value): New function.
33479         (struct gl_list_implementation): New field node_set_value.
33480         * lib/gl_list.c (gl_list_node_set_value): New function.
33481         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33482         (gl_array_list_implementation): Update.
33483         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33484         (gl_carray_list_implementation): Update.
33485         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33486         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33487         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33488         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33489         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33490         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33491         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33492         Update.
33493         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33494         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33495         (gl_sublist_list_implementation): Update.
33496
33497 2008-02-10  Bruno Haible  <bruno@clisp.org>
33498
33499         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33500         Needed when ELEMENT is #defined to 'some_type *'.
33501
33502 2008-02-10  Jim Meyering  <meyering@redhat.com>
33503
33504         New script and module: useless-if-before-free
33505         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33506         * build-aux/useless-if-before-free: New file.
33507         * modules/useless-if-before-free: New file.
33508
33509         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33510
33511         xstrtol_error: Fix typo.
33512         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33513         s/exit_failure/exit_status/.
33514
33515 2008-02-09  Jim Meyering  <meyering@redhat.com>
33516
33517         New script and module: gitlog-to-changelog
33518         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33519         * modules/gitlog-to-changelog: New file.
33520         * build-aux/gitlog-to-changelog: New file.
33521
33522 2008-02-08  Jim Meyering  <meyering@redhat.com>
33523
33524         Avoid two "parameter unused" warnings.
33525         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33526         Mark "st" as used.
33527
33528         Use "git COMMAND", not "git-COMMAND".
33529         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33530         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33531         * build-aux/git-version-gen: Use "git status", not "git-status".
33532
33533 2008-02-07  Bruno Haible  <bruno@clisp.org>
33534
33535         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33536         Avoids a crash on Windows Vista.
33537         Reported by Adam Strzelecki <ono@java.pl> via
33538         Simon Josefsson <simon@josefsson.org>.
33539
33540 2008-02-06  Bruno Haible  <bruno@clisp.org>
33541
33542         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33543         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33544         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33546         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33548         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33549         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33551         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33553         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33557         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33558         left-adjust flag.
33559         * tests/test-snprintf-posix.h (test_function): Likewise.
33560         * tests/test-sprintf-posix.h (test_function): Likewise.
33561         * tests/test-vasprintf-posix.c (test_function): Likewise.
33562         * doc/posix-functions/fprintf.texi: Update.
33563         * doc/posix-functions/printf.texi: Update.
33564         * doc/posix-functions/snprintf.texi: Update.
33565         * doc/posix-functions/sprintf.texi: Update.
33566         * doc/posix-functions/vfprintf.texi: Update.
33567         * doc/posix-functions/vprintf.texi: Update.
33568         * doc/posix-functions/vsnprintf.texi: Update.
33569         * doc/posix-functions/vsprintf.texi: Update.
33570         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33571
33572 2008-02-06  Bruno Haible  <bruno@clisp.org>
33573
33574         Fix bug introduced on 2008-01-26.
33575         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33576
33577 2008-02-06  Bruno Haible  <bruno@clisp.org>
33578
33579         Fix bug introduced on 2007-06-10.
33580         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33581         !NEED_PRINTF_FLAG_ZERO.
33582
33583 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33584
33585         getloadavg: use libperfstat on AIX5
33586         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33587
33588 2008-02-03  Bruno Haible  <bruno@clisp.org>
33589
33590         * lib/diffseq.h: Add comments about required #includes.
33591         Reported by Michael Biggs <gnulib@doubleplum.net>.
33592
33593 2008-02-01  Bruno Haible  <bruno@clisp.org>
33594
33595         * users.txt: Add gnuit.
33596
33597 2008-01-31  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/md4.c (set_uint32): Mark as inline.
33600         * lib/md5.c (set_uint32): Likewise.
33601         * lib/sha1.c (set_uint32): Likewise.
33602         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33603         * m4/md5.m4 (gl_MD5): Likewise.
33604         * m4/sha1.m4 (gl_SHA1): Likewise.
33605
33606 2008-01-31  Jim Meyering  <meyering@redhat.com>
33607
33608         Use "sizeof VAR", rather than a literal "4".
33609         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33610         * lib/md4.c (md4_read_ctx): Likewise.
33611         * lib/sha1.c (sha1_read_ctx): Likewise.
33612
33613 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33614
33615         * tests/test-sha1.c: New file, based on test-md5.c.
33616
33617         * modules/crypto/sha1-tests: New file.
33618
33619 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33620
33621         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33622
33623 2008-01-31  Jim Meyering  <meyering@redhat.com>
33624
33625         Prefer "sizeof v" over the equivalent "4".
33626         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33627         * lib/md5.c (set_uint32): Likewise.
33628         * lib/sha1.c (set_uint32): Likewise.
33629
33630 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33631
33632         * lib/sha1.c (set_uint32): Mark function as static.
33633
33634 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33635
33636         md2: clarify comments to say that alignment is not required.
33637         * lib/md2.h: Remove warning about alignment in comment.
33638         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33639         never been required.
33640
33641 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33642
33643         md4: adapt alignment constraint fix from sha1.
33644         * lib/md4.c (set_uint32): New function, from sha1.c
33645         (md4_read_ctx): Use it.
33646         (md4_finish_ctx): Doc fix.
33647         * lib/md4.h: Doc fix.
33648
33649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33650
33651         md5: adapt alignment constraint fix from sha1.
33652         * lib/md5.c (set_uint32): New function, from sha1.c
33653         (md5_read_ctx): Use it.
33654         (md5_finish_ctx): Doc fix.
33655         * lib/md5.h: Doc fix.
33656
33657 2008-01-30  Peter Palfrader  <weasel@debian.org>
33658
33659         sha1: remove the result buffer alignment constraint
33660         * lib/sha1.c (set_uint32): New function.
33661         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33662         constraint.
33663         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33664         * lib/sha1.h: Likewise.
33665
33666 2008-01-30  Andreas Schwab  <schwab@suse.de>
33667             Bruno Haible  <bruno@clisp.org>
33668
33669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33670         correct definition of LDBL_MIN_EXP.
33671
33672 2008-01-30  Karl Berry  <karl@gnu.org>
33673
33674         * config/srclist-update: try to preserve x bit on updates.
33675         * config/srclistvars.sh: update for karl.
33676
33677 2008-01-29  Jim Meyering  <meyering@redhat.com>
33678
33679         vasnprintf.c: Avoid warning about unused label
33680         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33681         "overflow" label definition and associated code with the
33682         same cpp condition that guards the sole use of that label.
33683
33684 2008-01-26  Bruno Haible  <bruno@clisp.org>
33685
33686         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33687         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33688         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33689         * lib/isnanl-nolibm.h (isnanl): Likewise.
33690         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33691
33692 2008-01-26  Bruno Haible  <bruno@clisp.org>
33693
33694         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33695         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33696
33697 2008-01-26  Bruno Haible  <bruno@clisp.org>
33698
33699         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33700         GCC >= 4.0 built-in.
33701         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33702
33703 2008-01-26  Bruno Haible  <bruno@clisp.org>
33704
33705         Rename isnan, applicable to 'double' only, to isnand.
33706         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33707         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33708         (configure.ac): Update.
33709         (Include): Replace "isnan.h" with "isnand.h".
33710         * m4/isnand.m4: Renamed from m4/isnan.m4.
33711         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33712         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33713         instead of isnan.c.
33714         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33715         instead of HAVE_ISNAN_IN_LIBC.
33716         (isnand): Renamed from isnan.
33717         * lib/isnand.c: New file.
33718         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33719         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33720         (Makefile.am): Update.
33721         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33722         Include isnand.h instead of isnan.h.
33723         (main): Test isnand instead of isnan.
33724         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33725         isnan-nolibm.
33726         * modules/frexp (Depends-on): Likewise.
33727         * modules/frexp-tests (Depends-on): Likewise.
33728         * modules/frexp-nolibm (Depends-on): Likewise.
33729         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33730         * modules/isfinite (Depends-on): Likewise.
33731         * modules/round-tests (Depends-on): Likewise.
33732         * modules/signbit (Depends-on): Likewise.
33733         * modules/signbit-tests (Depends-on): Likewise.
33734         * modules/snprintf-posix (Depends-on): Likewise.
33735         * modules/sprintf-posix (Depends-on): Likewise.
33736         * modules/trunc-tests (Depends-on): Likewise.
33737         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33738         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33739         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33740         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33741         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33742         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33743         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33744         * modules/vasnprintf-posix (Depends-on): Likewise.
33745         * modules/vasprintf-posix (Depends-on): Likewise.
33746         * modules/vfprintf-posix (Depends-on): Likewise.
33747         * modules/vsnprintf-posix (Depends-on): Likewise.
33748         * modules/vsprintf-posix (Depends-on): Likewise.
33749         * lib/frexp.c: Include isnand.h instead of isnan.h.
33750         (ISNAN): Set to isnand instead of isnan.
33751         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33752         (gl_isfinited): Use isnand instead of isnan.
33753         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33754         (gl_signbitd): Use isnand instead of isnan.
33755         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33756         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33757         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33758         (main): Use isnand instead of isnan.
33759         * tests/test-round1.c: Include isnand.h.
33760         (main): Use isnand instead of isnan.
33761         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33762         (ISNAN): Set to isnand instead of isnan.
33763         * tests/test-trunc1.c: Include isnand.h.
33764         (main): Use isnand instead of isnan.
33765         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33766         (equal): Use isnand instead of isnan.
33767         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33768         isnand-nolibm.
33769         * NEWS: Mention the change.
33770
33771 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33772             Bruno Haible  <bruno@clisp.org>
33773
33774         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33775         the GCC builtins for signbits are present and set
33776         REPLACE_SIGNBIT_USING_GCC if so.
33777         * lib/math.in.h (signbit): Define using GCC builtins if
33778         REPLACE_SIGNBIT_USING_GCC is set.
33779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33780         REPLACE_SIGNBIT_USING_GCC.
33781         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33782
33783 2008-01-25  Jim Meyering  <meyering@redhat.com>
33784
33785         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33786         * lib/poll.c: Include <config.h>, not "config.h".
33787         * tests/test-getaddrinfo.c: Likewise.
33788
33789 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33790
33791         * modules/sockets-tests: New file.
33792
33793 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33794
33795         * modules/sockets: New module, can be used to call WSA_Startup and
33796         WSA_Cleanup when needed.
33797
33798         * lib/sockets.h, lib/sockets.c: New files.
33799
33800         * m4/sockets.m4: New file.
33801
33802         * tests/test-sockets.c: New file.
33803
33804 2008-01-19  Bruno Haible  <bruno@clisp.org>
33805
33806         * doc/posix-headers: Renamed from doc/headers.
33807         * doc/posix-functions: Renamed from doc/functions.
33808         * doc/gnulib.texi: Update.
33809
33810 2008-01-19  Bruno Haible  <bruno@clisp.org>
33811
33812         * doc/glibc-functions/strcasestr.texi: Include contents of
33813         doc/functions/strcasestr.texi, fixing the list of platforms.
33814         * doc/functions/strcasestr.texi: Remove file.
33815
33816 2008-01-19  Bruno Haible  <bruno@clisp.org>
33817
33818         * doc/glibc-functions/memmem.texi: Include contents of
33819         doc/functions/memmem.texi.
33820         * doc/functions/memmem.texi: Remove file.
33821
33822 2008-01-18  Bruno Haible  <bruno@clisp.org>
33823
33824         * doc/glibc-functions/*.texi: New files.
33825         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33826         to use the new files.
33827
33828 2008-01-17  Bruno Haible  <bruno@clisp.org>
33829
33830         * tests/test-gethostname.c (main): Fix printf statement.
33831
33832 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33833
33834         * modules/gethostname-tests: New file.
33835
33836         * tests/test-gethostname.c: New file.
33837
33838 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33839
33840         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33841         used by the UNAME case.  Reported by Bruno Haible
33842         <bruno@clisp.org>.
33843
33844 2008-01-17  Eric Blake  <ebb9@byu.net>
33845
33846         Convert c-strcasestr to be more efficient.
33847         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33848         (Depends-on): Add c-strcase, remove malloca, strnlen.
33849         * tests/test-c-strcasestr.c (main): Enhance test.
33850         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33851
33852 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33853
33854         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33855         Use it in creating po/Makevars.
33856
33857 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33858
33859         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33860         Applications that requires it should initialize libgcrypt
33861         manually.
33862
33863 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33864
33865         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33866
33867 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33868
33869         Fix problem with getdate on mingw32 reported by Simon Josefsson
33870         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33871         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33872         tzname", when deciding whether to declare tzname.
33873         * lib/strftime.c (tzname): Likewise.
33874
33875 2008-01-15  Bruno Haible  <bruno@clisp.org>
33876
33877         Work around a MacOS X 10.5 bug in frexpl().
33878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33879         * doc/functions/frexpl.texi: Document the bug.
33880         Reported by Elias Pipping <pipping@gentoo.org>.
33881
33882 2008-01-14  Eric Blake  <ebb9@byu.net>
33883
33884         Touch up previous patch.
33885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33886         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33887
33888         Convert strcasestr module to use Two-Way algorithm.
33889         * modules/strcasestr-simple: New module, based on the old
33890         strcasestr, but with Two-Way rather than KMP.
33891         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33892         * lib/string.in.h (rpl_strcasestr): Declare.
33893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33894         performance.
33895         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33896         * modules/string (Makefile.am): Support strcasestr.
33897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33898         * modules/strcasestr-tests (Depends-on): Check for alarm.
33899         * tests/test-strcasestr.c: Augment test.
33900         * lib/str-two-way.h: Clean up stray macro.
33901         * NEWS: Document new module.
33902         * MODULES.html.sh (string handling): Likewise.
33903         * doc/functions/strcasestr.texi: New file.
33904         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33905         here, since it is not a POSIX function.
33906
33907 2008-01-14  Colin Watson  <cjwatson@debian.org>
33908             Bruno Haible  <bruno@clisp.org>
33909
33910         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33911         works fine; if not, set REPLACE_STRSIGNAL.
33912         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33914         REPLACE_STRSIGNAL.
33915         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33916         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33917         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33918
33919 2008-01-14  Bruno Haible  <bruno@clisp.org>
33920
33921         * modules/strsignal (Include): Change to <string.h>.
33922
33923 2008-01-14  Colin Watson  <cjwatson@debian.org>
33924
33925         * modules/argp (Notice): Add a notice recommending to change
33926         XGETTEXT_OPTIONS.
33927         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33928
33929 2008-01-13  Colin Watson  <cjwatson@debian.org>
33930
33931         * modules/strsignal-tests: New file.
33932         * tests/test-strsignal.c: New file.
33933
33934         * lib/strsignal.c: New file, from glibc with modifications.
33935         * lib/siglist.h: New file, from glibc with modifications.
33936         * lib/string.in.h (strsignal): New declaration.
33937         * m4/strsignal.m4: New file.
33938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33939         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
33940         * modules/strsignal: New file.
33941         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
33942         HAVE_DECL_STRSIGNAL.
33943
33944 2008-01-13  Bruno Haible  <bruno@clisp.org>
33945
33946         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
33947         locale encoding is not ASCII. Needed for OpenBSD 4.0.
33948         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33950
33951 2008-01-13  Bruno Haible  <bruno@clisp.org>
33952
33953         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
33954         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
33955         * lib/argp.h (__attribute__): Likewise.
33956         * lib/c-stack.c (__attribute__): Likewise.
33957         * lib/error.h (__attribute__): Likewise.
33958         * lib/fts.c (__attribute__): Likewise.
33959         * lib/openat.h (__attribute__): Likewise.
33960         * lib/stdio.in.h (__attribute__): Likewise.
33961         * lib/string.in.h (__attribute__): Likewise.
33962         * lib/utimens.c (__attribute__): Likewise.
33963         * lib/vasnprintf.h (__attribute__): Likewise.
33964         * lib/xalloc.h (__attribute__): Likewise.
33965         * lib/xprintf.h (__attribute__): Likewise.
33966         * lib/xstrtol.h (__attribute__): Likewise.
33967         * lib/xvasprintf.h (__attribute__): Likewise.
33968
33969 2008-01-12  Bruno Haible  <bruno@clisp.org>
33970
33971         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
33972         * doc/glibc-headers/a.out.texi: New file.
33973         * doc/glibc-headers/aliases.texi: New file.
33974         * doc/glibc-headers/alloca.texi: New file.
33975         * doc/glibc-headers/ar.texi: New file.
33976         * doc/glibc-headers/argp.texi: New file.
33977         * doc/glibc-headers/argz.texi: New file.
33978         * doc/glibc-headers/byteswap.texi: New file.
33979         * doc/glibc-headers/crypt.texi: New file.
33980         * doc/glibc-headers/endian.texi: New file.
33981         * doc/glibc-headers/envz.texi: New file.
33982         * doc/glibc-headers/err.texi: New file.
33983         * doc/glibc-headers/error.texi: New file.
33984         * doc/glibc-headers/execinfo.texi: New file.
33985         * doc/glibc-headers/fpu_control.texi: New file.
33986         * doc/glibc-headers/fstab.texi: New file.
33987         * doc/glibc-headers/fts.texi: New file.
33988         * doc/glibc-headers/getopt.texi: New file.
33989         * doc/glibc-headers/ieee754.texi: New file.
33990         * doc/glibc-headers/ifaddrs.texi: New file.
33991         * doc/glibc-headers/libintl.texi: New file.
33992         * doc/glibc-headers/mcheck.texi: New file.
33993         * doc/glibc-headers/mntent.texi: New file.
33994         * doc/glibc-headers/obstack.texi: New file.
33995         * doc/glibc-headers/paths.texi: New file.
33996         * doc/glibc-headers/printf.texi: New file.
33997         * doc/glibc-headers/pty.texi: New file.
33998         * doc/glibc-headers/resolv.texi: New file.
33999         * doc/glibc-headers/shadow.texi: New file.
34000         * doc/glibc-headers/sysexits.texi: New file.
34001         * doc/glibc-headers/ttyent.texi: New file.
34002
34003 2008-01-12  Jim Meyering  <meyering@redhat.com>
34004
34005         announce-gen: emit Gnulib's git-based version string.
34006         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34007         New option --gnulib-version=V, where V is expected to be
34008         the output of running git describe in the gnulib directory.
34009         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34010         not useful, and plan to stop publishing an xdelta file with each
34011         coreutils release.
34012
34013         * build-aux/announce-gen: Also check for lzma-compressed files.
34014
34015 2008-01-11  Bruno Haible  <bruno@clisp.org>
34016
34017         * tests/test-memmem.c (main): Increase maximum allowed time.
34018         * tests/test-strstr.c (main): Likewise.
34019
34020 2008-01-11  Bruno Haible  <bruno@clisp.org>
34021
34022         * doc/functions/memmem.texi: Add more precisions about platforms.
34023         * doc/functions/strstr.texi: Likewise.
34024
34025 2008-01-10  Eric Blake  <ebb9@byu.net>
34026
34027         * m4/strstr.m4: Delete cruft from copy-n-paste.
34028         Reported by Bruno Haible.
34029
34030 2008-01-10  Bruno Haible  <bruno@clisp.org>
34031
34032         Make c-strstr rely on strstr.
34033         * lib/c-strstr.c: Don't include str-kmp.h.
34034         (c_strstr): Define in terms of strstr.
34035         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34036         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34037
34038 2008-01-10  Bruno Haible  <bruno@clisp.org>
34039
34040         * doc/gnulib.texi (String Functions in C Locale): New section.
34041         * doc/c-ctype.texi: New file.
34042         * doc/c-strcase.texi: New file.
34043         * doc/c-strcaseeq.texi: New file.
34044         * doc/c-strcasestr.texi: New file.
34045         * doc/c-strstr.texi: New file.
34046         * doc/c-strtod.texi: New file.
34047         * doc/c-strtold.texi: New file.
34048
34049 2008-01-10  Eric Blake  <ebb9@byu.net>
34050
34051         * lib/relocatable.h: Fix a comment.
34052
34053 2008-01-10  Eric Blake  <ebb9@byu.net>
34054
34055         Share two-way algorithm.
34056         * lib/str-two-way.h: New file, merged from...
34057         * lib/memmem.c: ...here...
34058         * lib/strstr.c: ...and here.
34059         * modules/memmem (Files): Use it.
34060         * modules/strstr (Files): Likewise.
34061
34062         Avoid quadratic strstr implementations.
34063         * lib/strstr.c: New file.
34064         * m4/strstr.m4: Likewise.
34065         * modules/strstr: Likewise.
34066         * modules/strstr-tests: Likewise.
34067         * tests/test-strstr.c: Likewise.
34068         * lib/string.in.h (rpl_strstr): Declare.
34069         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34071         * modules/string (Makefile.am): Likewise.
34072         * MODULES.html.sh (string handling): Mention new module.
34073         * doc/functions/strstr.texi (strstr): Document the bug.
34074
34075 2008-01-10  Bruno Haible  <bruno@clisp.org>
34076
34077         * lib/relocatable.h (relocate): State whether result is freshly
34078         allocated or not.
34079         * lib/relocatable.c (relocate): Return a freshly allocated string
34080         instead of a pointer to a privately held string.
34081         Reported by Sylvain Beucler <beuc@gnu.org>.
34082
34083 2008-01-10  Colin Watson  <cjwatson@debian.org>
34084
34085         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34086         s/S_ISNLK/S_ISLNK/.
34087
34088 2008-01-09  Bruno Haible  <bruno@clisp.org>
34089
34090         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34091         and other files.
34092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34093         if it's only a guess.
34094         * modules/memmem: Simplify by depending on memmem-simple.
34095
34096 2008-01-09  Bruno Haible  <bruno@clisp.org>
34097
34098         Work around OpenBSD 4.0 tdelete() bug.
34099         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34100         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34101         macros and don't redefine the enum values.
34102         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34103         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34104         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34105
34106 2008-01-09  Bruno Haible  <bruno@clisp.org>
34107
34108         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34109         (main): Don't perform the tests if setlocale did not install a UTF-8
34110         locale. Needed on OpenBSD 4.0.
34111         * modules/wcwidth-tests (Depends-on): Add localcharset.
34112
34113 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34114
34115         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34116         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34117         * NEWS: announce this.
34118         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34119
34120 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34121         and Eric Blake  <ebb9@byu.net>
34122
34123         Add memmem-simple module.
34124         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34125         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34126         * modules/memmem-simple: New file.
34127         * modules/memmem (Description): Tweak.
34128         * MODULES.html.sh (string handling): Mention new module.
34129         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34130         addressed by memmem-simple.
34131         * NEWS: Document the difference.
34132
34133 2008-01-09  Eric Blake  <ebb9@byu.net>
34134
34135         Give gcc some memmem optimization hints.
34136         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34137         (strcasestr): Declare as pure.
34138         * modules/memmem (Maintainer): Claim my implementation.
34139
34140 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34141
34142         Support AIX 6.1 and higher.
34143         * build-aux/config.libpath: Likewise.
34144         * build-aux/config.rpath: Likewise.
34145
34146 2008-01-08  Jim Meyering  <meyering@redhat.com>
34147             Bruno Haible  <bruno@clisp.org>
34148
34149         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34150         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34151         Reported by Peter Fales in
34152         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34153
34154 2008-01-08  Bruno Haible  <bruno@clisp.org>
34155
34156         * modules/unictype/category-of (Depends-on): Add
34157         unictype/category-none.
34158         * modules/unictype/category-and-tests (Depends-on): Add
34159         unictype/category-{L,N,Lu,Nd}.
34160         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34161         * modules/unictype/category-or-tests (Depends-on): Add
34162         unictype/category-{L,N}.
34163         * modules/unictype/category-name-tests (Depends-on): Add
34164         unictype/category-{Z,Nl}.
34165         Reported by Simon Josefsson.
34166
34167 2008-01-08  Bruno Haible  <bruno@clisp.org>
34168
34169         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34170         convention better.
34171         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34172         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34173         Reported by Peter Miller <millerp@canb.auug.org.au>.
34174
34175 2008-01-08  Eric Blake  <ebb9@byu.net>
34176
34177         Rewrite memmem to guarantee linear complexity without malloc.
34178         * lib/memmem.c (memmem): Use Two-Way rather than
34179         Knuth-Morris-Pratt, to allow O(1) space usage.
34180         (critical_factorization, two_way_short_needle)
34181         (two_way_long_needle): New functions.
34182         (knuth_morris_pratt): Delete.
34183         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34184         Add stdint.
34185         * tests/test-memmem.c (main): Add tests for periodic needle and
34186         sublinear performance.
34187         * doc/functions/memmem.texi (memmem): Document other deficiencies
34188         in cygwin and older glibc.
34189
34190 2008-01-08  Bruno Haible  <bruno@clisp.org>
34191
34192         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34193         augmentation.
34194
34195 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34196
34197         Add a configure time option: --disable-acl.
34198         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34199         AC_ARG_ENABLE(acl).
34200
34201 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34202
34203         * tests/test-localename.c: Don't include obsolete "setenv.h".
34204
34205         * modules/localename-tests (Depends-on): Need unsetenv.
34206
34207 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34208
34209         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34210
34211 2008-01-06  Colin Watson  <cjwatson@debian.org>
34212
34213         * users.txt: Add man-db.
34214
34215 2008-01-07  Bruno Haible  <bruno@clisp.org>
34216
34217         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34218         previous section name.
34219
34220 2008-01-07  Bruno Haible  <bruno@clisp.org>
34221
34222         * lib/progname.c (set_program_name): Don't strip off a leading
34223         "lt-" prefix outside a .libs directory.
34224         Suggested by Paul Eggert.
34225
34226 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34227             Bruno Haible  <bruno@clisp.org>
34228
34229         Improve memory cleanup in 'relocatable' module.
34230         * lib/relocatable.h (compute_curr_prefix): Change return type to
34231         'char *'.
34232         * lib/relocatable.c (compute_curr_prefix): Change return type to
34233         'char *'. Free curr_installdir after use.
34234         (relocate): Free curr_prefix_better after use.
34235         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34236
34237 2008-01-01  Bruno Haible  <bruno@clisp.org>
34238
34239         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34240         failure on older glibc systems.
34241         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34242
34243 2008-01-05  Eric Blake  <ebb9@byu.net>
34244
34245         Avoid quadratic system memmem.
34246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34247         Reported by Ralf Wildenhues.
34248
34249         Fix memmem test for mingw.
34250         * modules/memmem-tests (configure.ac): Check for alarm.
34251         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34252         it.
34253         * doc/functions/memmem.texi: New file.
34254         * doc/gnulib.texi (Function Substitutes): Add memmem.
34255         Reported by Bruno Haible.
34256
34257 2008-01-04  Bruno Haible  <bruno@clisp.org>
34258
34259         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34260         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34261         gl_HEADER_STRING_H_DEFAULTS.
34262
34263 2008-01-04  Eric Blake  <ebb9@byu.net>
34264
34265         Shorten duration of memmem test.
34266         * tests/test-memmem.c (main): Use alarm to declare failure if test
34267         is taking too long.
34268         Reported by Ralf Wildenhues.
34269
34270 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34271
34272         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34273         string, needed by strerror.
34274
34275 2008-01-03  Colin Watson  <cjwatson@debian.org>
34276             Bruno Haible  <bruno@clisp.org>
34277
34278         * doc/gnulib-tool.texi (Localization): New section.
34279
34280 2008-01-02  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34283         variables to 'unsigned char *' type.
34284         Reported by Paul Eggert.
34285
34286 2008-01-02  Jim Meyering  <jim@meyering.net>
34287
34288         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34289
34290 2007-12-31  Jim Meyering  <jim@meyering.net>
34291
34292         Avoid use of private FTS type name.
34293         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34294
34295 2007-12-30  Karl Berry  <karl@gnu.org>
34296
34297         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34298         work around defect in Texinfo and/or the standalone Info browser.
34299
34300 2007-12-30  Bruno Haible  <bruno@clisp.org>
34301
34302         Unify 5 copies of the KMP code.
34303         * lib/str-kmp.h: New file.
34304         * lib/c-strcasestr.c: Include str-kmp.h.
34305         (knuth_morris_pratt): Remove function.
34306         (c_strcasestr): Update.
34307         * lib/c-strstr.c: Include str-kmp.h.
34308         (knuth_morris_pratt): Remove function.
34309         (c_strcasestr): Update.
34310         * lib/mbscasestr.c: Include str-kmp.h.
34311         (knuth_morris_pratt_unibyte): Remove function.
34312         * lib/mbsstr.c: Include str-kmp.h.
34313         (knuth_morris_pratt_unibyte): Remove function.
34314         * lib/strcasestr.c: Include str-kmp.h.
34315         (knuth_morris_pratt): Remove function.
34316         (strcasestr): Update.
34317         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34318         * modules/c-strstr (Files): Likewise.
34319         * modules/mbscasestr (Files): Likewise.
34320         * modules/mbsstr (Files): Likewise.
34321         * modules/strcasestr (Files): Likewise.
34322         Suggested by Paul Eggert.
34323
34324 2007-12-30  Bruno Haible  <bruno@clisp.org>
34325
34326         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34327         defined.
34328
34329 2007-12-30  Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/xmalloca.h: Include xalloc.h.
34332         (xnmalloca): New macro.
34333
34334 2007-12-30  Bruno Haible  <bruno@clisp.org>
34335
34336         * lib/malloca.h (nmalloca): New macro.
34337         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34338         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34339         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34340         knuth_morris_pratt_multibyte): Likewise.
34341         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34342         knuth_morris_pratt_multibyte): Likewise.
34343         * lib/memmem.c (knuth_morris_pratt): Likewise.
34344         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34345
34346 2007-12-25  Bruno Haible  <bruno@clisp.org>
34347
34348         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34349         * lib/glob.c: Don't include openat.h.
34350         (link_exists2_p): Add back the code that deals with the
34351         !GLOB_ALTDIRFUNC case.
34352         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34353         let it do the filename concatenation.
34354         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34355         * modules/glob (Depends-on): Remove openat.
34356
34357 2007-12-31  Bruno Haible  <bruno@clisp.org>
34358
34359         * modules/dirfd (License): Change to LGPLv2+.
34360         Approved by Jim Meyering.
34361
34362 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34363
34364         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34365         when multiplying M by sizeof (size_t).
34366
34367 2007-12-10  Martin Lambers  <marlam@marlam.de>
34368
34369         Override getpagesize on mingw.
34370         * lib/getpagesize.c: New file.
34371         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34372         * modules/getpagesize (Files): Add lib/getpagesize.c.
34373         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34375         REPLACE_GETPAGESIZE.
34376         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34377
34378 2007-12-25  Bruno Haible  <bruno@clisp.org>
34379
34380         * modules/localcharset (Notice): New field.
34381         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34382         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34383
34384 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34385             Bruno Haible  <bruno@clisp.org>
34386
34387         Avoid using the syntax symbol() in formatted documentation.
34388         * MODULES.html.sh (func_module): When replacing symbol() with a
34389         hyperlink, remove the parentheses. Show an error if some remain.
34390         Recognize and render the '...' syntax.
34391         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34392         Rework. Add paragraph about GCC's inlining.
34393         * doc/alloca.texi: Likewise.
34394         * doc/error.texi: Remove parentheses from symbol reference.
34395         * doc/gnulib-intro.texi: Likewise.
34396         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34397         * modules/fnmatch (Description): Reword to say "the ... function".
34398         * modules/full-read (Description): Likewise.
34399         * modules/full-write (Description): Likewise.
34400         * modules/safe-read (Description): Likewise.
34401         * modules/safe-write (Description): Likewise.
34402         * modules/strchrnul (Description): Likewise.
34403         * modules/trim (Description): Likewise.
34404         * modules/error (Description): Remove parentheses from symbol
34405         references.
34406         * modules/verror (Description): Likewise.
34407         Reported by Karl Berry.
34408
34409 2007-12-25  Bruno Haible  <bruno@clisp.org>
34410
34411         Fixup after 2007-10-16 commit.
34412         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34413
34414 2007-12-24  Bruno Haible  <bruno@clisp.org>
34415
34416         Make --enable-relocatable work with DESTDIR.
34417         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34418         to compute installdir from destprog.
34419         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34420         also set the RELOC_DESTDIR variable.
34421         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34422
34423 2007-12-24  Bruno Haible  <bruno@clisp.org>
34424
34425         Fix link error due to xalloc_die().
34426         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34427         of xreadlink.
34428         * lib/relocwrapper.c: Update comments.
34429         * build-aux/install-reloc: Remove xreadlink.c from file list.
34430         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34431         xreadlink.c.
34432         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34433
34434 2007-12-24  Bruno Haible  <bruno@clisp.org>
34435
34436         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34437         * lib/setenv.h: Remove file.
34438         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34439         lib/setenv.h.
34440         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34441         (Depends-on): Add stdlib.
34442         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34443         gl_FUNC_UNSETENV.
34444         (Include): Replace setenv.h with <stdlib.h>.
34445         * modules/unsetenv: New file.
34446         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34447         * lib/unsetenv.c: Include <stdlib.h> first.
34448         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34449         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34450         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34451         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34452         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34453         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34455         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34456         * doc/functions/unsetenv.texi: Update.
34457         * modules/xsetenv (Depends-on): Add unsetenv.
34458         * modules/getdate (Depends-on): Likewise.
34459         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34460         * lib/xsetenv.c: Don't include setenv.h.
34461         * lib/getdate.y: Likewise.
34462         * lib/relocwrapper.c: Likewise.
34463         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34464         (Depends-on): Add stdlib.
34465         * NEWS: Mention the changes.
34466         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34467
34468 2007-12-23  Bruno Haible  <bruno@clisp.org>
34469
34470         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34471         indentation.
34472
34473 2007-12-23  Bruno Haible  <bruno@clisp.org>
34474
34475         * lib/c-strcasestr.c: Add more comments.
34476         * lib/c-strstr.c: Likewise.
34477         * lib/mbscasestr.c: Likewise.
34478         * lib/mbsstr.c: Likewise.
34479         * lib/strcasestr.c: Likewise.
34480         * lib/memmem.c: Likewise.
34481
34482 2007-12-23  Bruno Haible  <bruno@clisp.org>
34483
34484         * tests/test-memmem.c: Include <string.h> first.
34485
34486 2007-12-22  Bruno Haible  <bruno@clisp.org>
34487
34488         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34489         the contents of $testsbase.
34490         Reported by Ralf Wildenhues.
34491
34492 2007-12-22  Bruno Haible  <bruno@clisp.org>
34493
34494         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34495         two variables local_ldadd_before, local_ldadd_last.
34496
34497 2007-12-20  Eric Blake  <ebb9@byu.net>
34498
34499         Work around circular library issue when cross-compiling.
34500         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34501         that progname.o does not need to pull in rpl_memcmp.
34502
34503 2007-12-19  Eric Blake  <ebb9@byu.net>
34504
34505         Fix memmem to avoid O(n^2) worst-case complexity.
34506         * lib/memmem.c (knuth_morris_pratt): New function.
34507         (memmem): Use it if first few naive iterations fail.
34508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34509         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34510         * modules/memchr (License): Likewise.
34511         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34512         malloca.
34513         * tests/test-memmem.c: Rewrite, borrowing ideas from
34514         test-mbsstr1.c; the old version wouldn't even compile!
34515         * modules/memmem-tests: New file.
34516         * lib/string.in.h (rpl_memmem): Add declaration.
34517         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34519         REPLACE_MEMMEM.
34520
34521 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34522
34523         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34524         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34525         before any system include files, and undef after them all.  This
34526         should fix a problem on VMS reported by John E. Malmberg in
34527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34528
34529 2007-12-17  Eric Blake  <ebb9@byu.net>
34530
34531         Revert addition of verify, for BSD/OS.
34532         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34533         can't handle large files, for the sake of obsolete platforms.
34534         * modules/fseeko (Depends-on): Remove verify.
34535         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34536         * doc/functions/ftello.texi (ftello): Likewise.
34537         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34538         Reported by Larry Jones.
34539
34540 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34541
34542         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34543         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34544
34545 2007-12-17  Jim Meyering  <meyering@redhat.com>
34546
34547         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34548         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34549         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34550         * modules/getcwd (Depends-on): Add openat.
34551         Reported by Petr Salinger.
34552
34553 2007-12-17  Bruno Haible  <bruno@clisp.org>
34554
34555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34556         avoid a segmentation fault of the configure test on x86_64 systems.
34557
34558 2007-12-15  Jim Meyering  <meyering@redhat.com>
34559
34560         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34561
34562 2007-12-13  Eric Blake  <ebb9@byu.net>
34563
34564         Another fseek test.
34565         * tests/test-fseek.c (main): Also test ungetc handling.
34566         * tests/test-fseeko.c (main): Likewise.
34567         * modules/fseeko (Depends-on): Add verify.
34568         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34569         large.
34570         Reported by Larry Jones.
34571
34572         Fix fseeko on mingw.
34573         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34574         seek.
34575
34576         Beef up fseek tests.
34577         * tests/test-fseek.c (main): Also test eof handling.
34578         * tests/test-fseeko.c (main): Likewise.
34579         Reported by Larry Jones.
34580
34581 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34582
34583         Fix fseeko on BSD-based platforms.
34584         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34585         successful seek.
34586
34587 2007-12-12  Eric Blake  <ebb9@byu.net>
34588
34589         Allow circular dependency of separate libtests.a
34590         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34591         when use_libtests.
34592
34593 2007-12-11  Eric Blake  <ebb9@byu.net>
34594
34595         Fix bug with -0.0L in previous patch.
34596         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34597         * tests/test-isnan.c (main): Also test on zeroes.
34598         * tests/test-isnanf.c (main): Likewise.
34599         * tests/test-isnanl.h (main): Likewise.
34600
34601         Detect pseudo-denormals on x86 even when cross-compiling.
34602         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34603         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34604         invalid bit patterns that happen to satisfy ==.
34605
34606         Avoid link failures with separate libtests.a.
34607         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34608         last, to satisfy circular dependencies.
34609
34610 2007-12-11  Eric Blake  <ebb9@byu.net>
34611         and Bruno Haible  <bruno@clisp.org>
34612
34613         Fix OpenBSD 4.0 <float.h> handling of long double.
34614         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34615         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34616         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34617
34618 2007-12-11  Jim Meyering  <meyering@redhat.com>
34619
34620         * users.txt: Add libvirt.
34621
34622         Support versions of autoconf prior to 2.59c.
34623         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34624         if it is not already defined.
34625
34626 2007-12-09  Bruno Haible  <bruno@clisp.org>
34627
34628         Let 'gnulib-tool --import' collect sources needed for the tests in
34629         tests/ rather than in lib/.
34630         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34631         argument. If true, add rules to generate libtests.a, and put libtests.a
34632         into $(LDADD). Consider source files in subdirectories and set
34633         uses_subdirs.
34634         (func_emit_initmacro_start, func_emit_initmacro_end,
34635         func_emit_initmacro_done): Pass all arguments explicitly.
34636         (func_import): Determine two module lists main_modules,
34637         testsrelated_modules. Determine use_libtests. Determine two variables
34638         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34639         instead of just sed_transform_lib_file. Determine two variables
34640         main_files and testsrelated_files. Compute 'files' as the union of
34641         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34642         func_add_or_update. In the generated gnulib-comp.m4, collect the
34643         object files for tests/ in different variables than those for lib/.
34644         Substitute LIBTESTS_LIBDEPS.
34645         (func_create_testdir): Combine the uses_subdirs results from
34646         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34647
34648 2007-12-09  Bruno Haible  <bruno@clisp.org>
34649
34650         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34651         the build-aux directory.
34652
34653 2007-12-09  Bruno Haible  <bruno@clisp.org>
34654
34655         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34656         introduced on 2006-09-09.
34657
34658 2007-12-07  Jim Meyering  <meyering@redhat.com>
34659
34660         Let these macros work also with autoconf-2.59.
34661         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34662         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34663         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34664
34665 2007-12-06  Jim Meyering  <meyering@redhat.com>
34666
34667         Avoid a configure-time syntax error in gl_FUNC_ACL.
34668         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34669         function in each branch, before testing the cache variable.
34670
34671 2007-12-04  Eric Blake  <ebb9@byu.net>
34672
34673         Make scripts executable.
34674         * build-aux/config.guess: Add execute permissions.
34675         * build-aux/config.sub: Likewise.
34676         * build-aux/gendocs.sh: Likewise.
34677
34678         Fix frexp on mingw.
34679         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34680         cross-compiling.
34681         * doc/functions/frexp.texi (frexp): Document the bug.
34682
34683         Make cygwin fseeko check more reliable.
34684         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34685         version numbers, rather than unrelated feature check.
34686         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34687         * doc/functions/ftello.texi (ftello): Likewise.
34688         Reported by Bruno Haible.
34689
34690         * m4/strerror.m4: Bump version number.
34691
34692 2007-12-03  Bruno Haible  <bruno@clisp.org>
34693
34694         * doc/functions/mprotect.texi: Mention the mingw problem.
34695
34696 2007-12-03  Eric Blake  <ebb9@byu.net>
34697
34698         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34699         REPLACE_STRERROR is initialized before this macro.
34700
34701 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34702
34703         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34704         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34705         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34706         put -lsec in even for programs other than 'ls'.  This fixes a problem
34707         for gettext reported by Bruno Haible in
34708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34709         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34710         Add support for Solaris 10.  This isn't efficient, but should get the
34711         job done for now.
34712
34713 2007-12-03  James Youngman  <jay@gnu.org>
34714
34715         * doc/regexprops-generic.texi: change "an close-group" to "a
34716         close-group" and "illegal" to "not allowed".
34717
34718 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34719
34720         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34721         pr_byname.h. Needed for the rare case when the maintainer has done
34722         "make maintainer-clean" in the source directory and then attempts a
34723         build outside the source directory.
34724         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34725         scripts_byname.h.
34726
34727 2007-12-02  Martin Lambers <marlam@marlam.de>
34728             Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/getpagesize.h: Remove file.
34731         * lib/unistd.in.h: Include declaration of getpagesize here.
34732         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34733         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34734         HAVE_SYS_PARAM_H.
34735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34736         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34737         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34738         (Depends-on): Add unistd.
34739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34740         (Include): Use <unistd.h> instead of getpagesize.h.
34741         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34742         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34743         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34744         gl_GETPAGESIZE invocation, already handled by module dependency.
34745         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34746
34747 2007-12-02  Bruno Haible  <bruno@clisp.org>
34748
34749         * modules/strings-tests: New file.
34750         * tests/test-strings.c: New file.
34751
34752         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34753         * lib/strings.in.h: New file.
34754         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34755         * m4/strings_h.m4: New file.
34756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34757         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34758         * modules/strings: New file.
34759         * modules/string (Makefile.am): Update.
34760         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34761         Reported by Karl Berry.
34762
34763 2007-12-01  Eric Blake  <ebb9@byu.net>
34764
34765         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34766         accomodate fix in cygwin 1.5.25.
34767
34768 2007-12-01  Jim Meyering  <meyering@redhat.com>
34769
34770         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34771         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34772         that would inhibit utf8-optimization of a regexp containing line-
34773         or buffer-anchors, e.g., `^', `$'.
34774
34775 2007-11-30  Bruno Haible  <bruno@clisp.org>
34776
34777         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34778         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34779         glthread_recursive_lock_init.
34780         * lib/lock.c (glthread_recursive_lock_init)
34781         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34782         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34783
34784 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34785
34786         New function qset_acl, like set_acl but with syscall semantics.
34787         * lib/acl.h (qset_acl): New decl.
34788         * lib/acl.c (qset_acl): New function.
34789         (set_acl): Use new function.  Use more-consistent diagnostics.
34790
34791 2007-11-28  Jim Meyering  <meyering@redhat.com>
34792
34793         * modules/physmem (License): Change from GPL to LGPLv2+.
34794
34795 2007-11-26  Bruno Haible  <bruno@clisp.org>
34796
34797         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34798         'long double' type has excess precision.
34799         Reported by Jim Meyering in
34800         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34801
34802 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34803
34804         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34805         Sync from <http://gnu.org/licenses>.
34806         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34807         with license text from same location.
34808         * doc/maintain.texi, doc/standards.texi:  Sync from
34809         <http://savannah.gnu.org/projects/gnustandards>.
34810
34811 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34812         and Jim Meyering  <meyering@redhat.com>
34813
34814         Adjust getdate' grammar to accept a slightly more regular language.
34815         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34816         Before, the former was rejected.
34817         * lib/getdate.y (digits_to_date_time): New function, factored
34818         out of ...
34819         (number): ...here.  Just call digits_to_date_time.
34820         (hybrid): New non-terminal to handle an <unsigned number,
34821         signed relative offset> sequence consistently.
34822
34823 2007-11-18  Jim Meyering  <meyering@redhat.com>
34824
34825         Pull my changes from coreutils:
34826         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34827         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34828         use of $gnulib_tool_option_extras, so that it's separated from the
34829         preceding argument.
34830
34831         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34832         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34833         parent destination directories before copying a file into place.
34834
34835 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34836
34837         bootstrap: work also with 4-argument variant of AC_INIT
34838         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34839
34840 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34841
34842         Port test-getaddrinfo to Solaris.
34843         Problem reported by Bruno Haible in
34844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34845         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34846         explanation of setting 'hints'.
34847         Don't reject an implementation merely because it returns EAI_SERVICE.
34848         (EAI_SERVICE): Define to 0 if not defined.
34849
34850 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34851
34852         The license of gnu-make and posix-shell is now "GPLed build tool".
34853         * modules/gnu-make (License): Likewise.
34854         * modules/posix-shell (License): Likewise.
34855
34856         New module posix-shell, for determining a POSIX shell
34857         or perhaps something that is close enough to a POSIX shell.
34858         * m4/posix-shell.m4: New file.
34859         * modules/posix-shell: New file.
34860
34861         * MODULES.html.sh: Mention new module.
34862
34863         New module gnu-make, for determining whether we're using GNU Make.
34864         * m4/gnu-make.m4: New file.
34865         * modules/gnu-make: New file.
34866         * MODULES.html.sh: Mention new module.
34867
34868 2007-11-14  Jim Meyering  <meyering@redhat.com>
34869
34870         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34871         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34872         use this macro to create a function _definition_.
34873         Remove useless "#undef ARGMATCH_DIE".
34874
34875 2007-11-14  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/config.charset: Update for OpenBSD 4.1.
34878         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34879
34880 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34881
34882         Document 64-bit #if problems in stdint.texi.
34883         * doc/headers/stdint.texi (stdint.h): Mention problems with
34884         64-bit-#if, and how to work around them.
34885
34886         Don't insist on 'long long int' support in the preprocessor.  It
34887         breaks too many things.  For example, PRIdMAX still uses a 'long
34888         long int' format with the latest Sun compiler, even though
34889         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34890         preprocessor problem.  This causes the latest coreutils to dump
34891         core on Solaris 10 sparc with the Sun C compiler.
34892         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34893         the troublesome expressions at configure-time, not at #if-time.
34894         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34895         preprocessor.
34896         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34897         compile-time C checks, done at 'configure'-time.
34898         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34899         * modules/inttypes (Makefile): Substitute the new symbols that
34900         gl_INTTYPES_H now generates.
34901         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34902
34903 2007-11-12  Bruno Haible  <bruno@clisp.org>
34904
34905         Tests for Unicode character classification functions.
34906
34907         * modules/unictype/bidicategory-byname-tests: New file.
34908         * modules/unictype/bidicategory-name-tests: New file.
34909         * modules/unictype/bidicategory-of-tests: New file.
34910         * modules/unictype/bidicategory-test-tests: New file.
34911         * modules/unictype/block-list-tests: New file.
34912         * modules/unictype/block-of-tests: New file.
34913         * modules/unictype/block-test-tests: New file.
34914         * modules/unictype/category-C-tests: New file.
34915         * modules/unictype/category-Cc-tests: New file.
34916         * modules/unictype/category-Cf-tests: New file.
34917         * modules/unictype/category-Cn-tests: New file.
34918         * modules/unictype/category-Co-tests: New file.
34919         * modules/unictype/category-Cs-tests: New file.
34920         * modules/unictype/category-L-tests: New file.
34921         * modules/unictype/category-Ll-tests: New file.
34922         * modules/unictype/category-Lm-tests: New file.
34923         * modules/unictype/category-Lo-tests: New file.
34924         * modules/unictype/category-Lt-tests: New file.
34925         * modules/unictype/category-Lu-tests: New file.
34926         * modules/unictype/category-M-tests: New file.
34927         * modules/unictype/category-Mc-tests: New file.
34928         * modules/unictype/category-Me-tests: New file.
34929         * modules/unictype/category-Mn-tests: New file.
34930         * modules/unictype/category-N-tests: New file.
34931         * modules/unictype/category-Nd-tests: New file.
34932         * modules/unictype/category-Nl-tests: New file.
34933         * modules/unictype/category-No-tests: New file.
34934         * modules/unictype/category-P-tests: New file.
34935         * modules/unictype/category-Pc-tests: New file.
34936         * modules/unictype/category-Pd-tests: New file.
34937         * modules/unictype/category-Pe-tests: New file.
34938         * modules/unictype/category-Pf-tests: New file.
34939         * modules/unictype/category-Pi-tests: New file.
34940         * modules/unictype/category-Po-tests: New file.
34941         * modules/unictype/category-Ps-tests: New file.
34942         * modules/unictype/category-S-tests: New file.
34943         * modules/unictype/category-Sc-tests: New file.
34944         * modules/unictype/category-Sk-tests: New file.
34945         * modules/unictype/category-Sm-tests: New file.
34946         * modules/unictype/category-So-tests: New file.
34947         * modules/unictype/category-Z-tests: New file.
34948         * modules/unictype/category-Zl-tests: New file.
34949         * modules/unictype/category-Zp-tests: New file.
34950         * modules/unictype/category-Zs-tests: New file.
34951         * modules/unictype/category-and-not-tests: New file.
34952         * modules/unictype/category-and-tests: New file.
34953         * modules/unictype/category-byname-tests: New file.
34954         * modules/unictype/category-name-tests: New file.
34955         * modules/unictype/category-none-tests: New file.
34956         * modules/unictype/category-of-tests: New file.
34957         * modules/unictype/category-or-tests: New file.
34958         * modules/unictype/category-test-withtable-tests: New file.
34959         * modules/unictype/combining-class-tests: New file.
34960         * modules/unictype/ctype-alnum-tests: New file.
34961         * modules/unictype/ctype-alpha-tests: New file.
34962         * modules/unictype/ctype-blank-tests: New file.
34963         * modules/unictype/ctype-cntrl-tests: New file.
34964         * modules/unictype/ctype-digit-tests: New file.
34965         * modules/unictype/ctype-graph-tests: New file.
34966         * modules/unictype/ctype-lower-tests: New file.
34967         * modules/unictype/ctype-print-tests: New file.
34968         * modules/unictype/ctype-punct-tests: New file.
34969         * modules/unictype/ctype-space-tests: New file.
34970         * modules/unictype/ctype-upper-tests: New file.
34971         * modules/unictype/ctype-xdigit-tests: New file.
34972         * modules/unictype/decimal-digit-tests: New file.
34973         * modules/unictype/digit-tests: New file.
34974         * modules/unictype/mirror-tests: New file.
34975         * modules/unictype/numeric-tests: New file.
34976         * modules/unictype/property-alphabetic-tests: New file.
34977         * modules/unictype/property-ascii-hex-digit-tests: New file.
34978         * modules/unictype/property-bidi-arabic-digit-tests: New file.
34979         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
34980         * modules/unictype/property-bidi-block-separator-tests: New file.
34981         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
34982         * modules/unictype/property-bidi-common-separator-tests: New file.
34983         * modules/unictype/property-bidi-control-tests: New file.
34984         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
34985         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
34986         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
34987         * modules/unictype/property-bidi-european-digit-tests: New file.
34988         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
34989         * modules/unictype/property-bidi-left-to-right-tests: New file.
34990         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
34991         * modules/unictype/property-bidi-other-neutral-tests: New file.
34992         * modules/unictype/property-bidi-pdf-tests: New file.
34993         * modules/unictype/property-bidi-segment-separator-tests: New file.
34994         * modules/unictype/property-bidi-whitespace-tests: New file.
34995         * modules/unictype/property-byname-tests: New file.
34996         * modules/unictype/property-combining-tests: New file.
34997         * modules/unictype/property-composite-tests: New file.
34998         * modules/unictype/property-currency-symbol-tests: New file.
34999         * modules/unictype/property-dash-tests: New file.
35000         * modules/unictype/property-decimal-digit-tests: New file.
35001         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35002         * modules/unictype/property-deprecated-tests: New file.
35003         * modules/unictype/property-diacritic-tests: New file.
35004         * modules/unictype/property-extender-tests: New file.
35005         * modules/unictype/property-format-control-tests: New file.
35006         * modules/unictype/property-grapheme-base-tests: New file.
35007         * modules/unictype/property-grapheme-extend-tests: New file.
35008         * modules/unictype/property-grapheme-link-tests: New file.
35009         * modules/unictype/property-hex-digit-tests: New file.
35010         * modules/unictype/property-hyphen-tests: New file.
35011         * modules/unictype/property-id-continue-tests: New file.
35012         * modules/unictype/property-id-start-tests: New file.
35013         * modules/unictype/property-ideographic-tests: New file.
35014         * modules/unictype/property-ids-binary-operator-tests: New file.
35015         * modules/unictype/property-ids-trinary-operator-tests: New file.
35016         * modules/unictype/property-ignorable-control-tests: New file.
35017         * modules/unictype/property-iso-control-tests: New file.
35018         * modules/unictype/property-join-control-tests: New file.
35019         * modules/unictype/property-left-of-pair-tests: New file.
35020         * modules/unictype/property-line-separator-tests: New file.
35021         * modules/unictype/property-logical-order-exception-tests: New file.
35022         * modules/unictype/property-lowercase-tests: New file.
35023         * modules/unictype/property-math-tests: New file.
35024         * modules/unictype/property-non-break-tests: New file.
35025         * modules/unictype/property-not-a-character-tests: New file.
35026         * modules/unictype/property-numeric-tests: New file.
35027         * modules/unictype/property-other-alphabetic-tests: New file.
35028         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35029         * modules/unictype/property-other-grapheme-extend-tests: New file.
35030         * modules/unictype/property-other-id-continue-tests: New file.
35031         * modules/unictype/property-other-id-start-tests: New file.
35032         * modules/unictype/property-other-lowercase-tests: New file.
35033         * modules/unictype/property-other-math-tests: New file.
35034         * modules/unictype/property-other-uppercase-tests: New file.
35035         * modules/unictype/property-paired-punctuation-tests: New file.
35036         * modules/unictype/property-paragraph-separator-tests: New file.
35037         * modules/unictype/property-pattern-syntax-tests: New file.
35038         * modules/unictype/property-pattern-white-space-tests: New file.
35039         * modules/unictype/property-private-use-tests: New file.
35040         * modules/unictype/property-punctuation-tests: New file.
35041         * modules/unictype/property-quotation-mark-tests: New file.
35042         * modules/unictype/property-radical-tests: New file.
35043         * modules/unictype/property-sentence-terminal-tests: New file.
35044         * modules/unictype/property-soft-dotted-tests: New file.
35045         * modules/unictype/property-space-tests: New file.
35046         * modules/unictype/property-terminal-punctuation-tests: New file.
35047         * modules/unictype/property-test-tests: New file.
35048         * modules/unictype/property-titlecase-tests: New file.
35049         * modules/unictype/property-unassigned-code-value-tests: New file.
35050         * modules/unictype/property-unified-ideograph-tests: New file.
35051         * modules/unictype/property-uppercase-tests: New file.
35052         * modules/unictype/property-variation-selector-tests: New file.
35053         * modules/unictype/property-white-space-tests: New file.
35054         * modules/unictype/property-xid-continue-tests: New file.
35055         * modules/unictype/property-xid-start-tests: New file.
35056         * modules/unictype/property-zero-width-tests: New file.
35057         * modules/unictype/scripts-tests: New file.
35058         * modules/unictype/syntax-c-ident-tests: New file.
35059         * modules/unictype/syntax-c-whitespace-tests: New file.
35060         * modules/unictype/syntax-java-ident-tests: New file.
35061         * modules/unictype/syntax-java-whitespace-tests: New file.
35062         * tests/unictype/test-bidi_byname.c: New file.
35063         * tests/unictype/test-bidi_name.c: New file.
35064         * tests/unictype/test-bidi_of.c: New file.
35065         * tests/unictype/test-bidi_test.c: New file.
35066         * tests/unictype/test-block_list.c: New file.
35067         * tests/unictype/test-block_of.c: New file.
35068         * tests/unictype/test-block_test.c: New file.
35069         * tests/unictype/test-categ_and.c: New file.
35070         * tests/unictype/test-categ_and_not.c: New file.
35071         * tests/unictype/test-categ_byname.c: New file.
35072         * tests/unictype/test-categ_name.c: New file.
35073         * tests/unictype/test-categ_none.c: New file.
35074         * tests/unictype/test-categ_of.c: New file.
35075         * tests/unictype/test-categ_or.c: New file.
35076         * tests/unictype/test-categ_test_withtable.c: New file.
35077         * tests/unictype/test-combining.c: New file.
35078         * tests/unictype/test-decdigit.c: New file.
35079         * tests/unictype/test-digit.c: New file.
35080         * tests/unictype/test-mirror.c: New file.
35081         * tests/unictype/test-numeric.c: New file.
35082         * tests/unictype/test-pr_byname.c: New file.
35083         * tests/unictype/test-pr_test.c: New file.
35084         * tests/unictype/test-predicate-part1.h: New file.
35085         * tests/unictype/test-predicate-part2.h: New file.
35086         * tests/unictype/test-scripts.c: New file.
35087         * tests/unictype/test-sy_c_ident.c: New file.
35088         * tests/unictype/test-sy_java_ident.c: New file.
35089
35090         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35091         for Unicode 5.0.0.
35092         * tests/unictype/test-categ_Cc.c: Likewise.
35093         * tests/unictype/test-categ_Cf.c: Likewise.
35094         * tests/unictype/test-categ_Cn.c: Likewise.
35095         * tests/unictype/test-categ_Co.c: Likewise.
35096         * tests/unictype/test-categ_Cs.c: Likewise.
35097         * tests/unictype/test-categ_L.c: Likewise.
35098         * tests/unictype/test-categ_Ll.c: Likewise.
35099         * tests/unictype/test-categ_Lm.c: Likewise.
35100         * tests/unictype/test-categ_Lo.c: Likewise.
35101         * tests/unictype/test-categ_Lt.c: Likewise.
35102         * tests/unictype/test-categ_Lu.c: Likewise.
35103         * tests/unictype/test-categ_M.c: Likewise.
35104         * tests/unictype/test-categ_Mc.c: Likewise.
35105         * tests/unictype/test-categ_Me.c: Likewise.
35106         * tests/unictype/test-categ_Mn.c: Likewise.
35107         * tests/unictype/test-categ_N.c: Likewise.
35108         * tests/unictype/test-categ_Nd.c: Likewise.
35109         * tests/unictype/test-categ_Nl.c: Likewise.
35110         * tests/unictype/test-categ_No.c: Likewise.
35111         * tests/unictype/test-categ_P.c: Likewise.
35112         * tests/unictype/test-categ_Pc.c: Likewise.
35113         * tests/unictype/test-categ_Pd.c: Likewise.
35114         * tests/unictype/test-categ_Pe.c: Likewise.
35115         * tests/unictype/test-categ_Pf.c: Likewise.
35116         * tests/unictype/test-categ_Pi.c: Likewise.
35117         * tests/unictype/test-categ_Po.c: Likewise.
35118         * tests/unictype/test-categ_Ps.c: Likewise.
35119         * tests/unictype/test-categ_S.c: Likewise.
35120         * tests/unictype/test-categ_Sc.c: Likewise.
35121         * tests/unictype/test-categ_Sk.c: Likewise.
35122         * tests/unictype/test-categ_Sm.c: Likewise.
35123         * tests/unictype/test-categ_So.c: Likewise.
35124         * tests/unictype/test-categ_Z.c: Likewise.
35125         * tests/unictype/test-categ_Zl.c: Likewise.
35126         * tests/unictype/test-categ_Zp.c: Likewise.
35127         * tests/unictype/test-categ_Zs.c: Likewise.
35128         * tests/unictype/test-ctype_alnum.c: Likewise.
35129         * tests/unictype/test-ctype_alpha.c: Likewise.
35130         * tests/unictype/test-ctype_blank.c: Likewise.
35131         * tests/unictype/test-ctype_cntrl.c: Likewise.
35132         * tests/unictype/test-ctype_digit.c: Likewise.
35133         * tests/unictype/test-ctype_graph.c: Likewise.
35134         * tests/unictype/test-ctype_lower.c: Likewise.
35135         * tests/unictype/test-ctype_print.c: Likewise.
35136         * tests/unictype/test-ctype_punct.c: Likewise.
35137         * tests/unictype/test-ctype_space.c: Likewise.
35138         * tests/unictype/test-ctype_upper.c: Likewise.
35139         * tests/unictype/test-ctype_xdigit.c: Likewise.
35140         * tests/unictype/test-decdigit.h: Likewise.
35141         * tests/unictype/test-digit.h: Likewise.
35142         * tests/unictype/test-numeric.h: Likewise.
35143         * tests/unictype/test-pr_alphabetic.c: Likewise.
35144         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35145         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35146         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35147         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35148         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35149         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35150         * tests/unictype/test-pr_bidi_control.c: Likewise.
35151         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35152         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35153         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35154         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35155         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35156         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35157         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35158         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35159         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35160         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35161         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35162         * tests/unictype/test-pr_combining.c: Likewise.
35163         * tests/unictype/test-pr_composite.c: Likewise.
35164         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35165         * tests/unictype/test-pr_dash.c: Likewise.
35166         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35167         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35168         * tests/unictype/test-pr_deprecated.c: Likewise.
35169         * tests/unictype/test-pr_diacritic.c: Likewise.
35170         * tests/unictype/test-pr_extender.c: Likewise.
35171         * tests/unictype/test-pr_format_control.c: Likewise.
35172         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35173         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35174         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35175         * tests/unictype/test-pr_hex_digit.c: Likewise.
35176         * tests/unictype/test-pr_hyphen.c: Likewise.
35177         * tests/unictype/test-pr_id_continue.c: Likewise.
35178         * tests/unictype/test-pr_id_start.c: Likewise.
35179         * tests/unictype/test-pr_ideographic.c: Likewise.
35180         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35181         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35182         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35183         * tests/unictype/test-pr_iso_control.c: Likewise.
35184         * tests/unictype/test-pr_join_control.c: Likewise.
35185         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35186         * tests/unictype/test-pr_line_separator.c: Likewise.
35187         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35188         * tests/unictype/test-pr_lowercase.c: Likewise.
35189         * tests/unictype/test-pr_math.c: Likewise.
35190         * tests/unictype/test-pr_non_break.c: Likewise.
35191         * tests/unictype/test-pr_not_a_character.c: Likewise.
35192         * tests/unictype/test-pr_numeric.c: Likewise.
35193         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35194         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35195         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35196         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35197         * tests/unictype/test-pr_other_id_start.c: Likewise.
35198         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35199         * tests/unictype/test-pr_other_math.c: Likewise.
35200         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35201         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35202         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35203         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35204         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35205         * tests/unictype/test-pr_private_use.c: Likewise.
35206         * tests/unictype/test-pr_punctuation.c: Likewise.
35207         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35208         * tests/unictype/test-pr_radical.c: Likewise.
35209         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35210         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35211         * tests/unictype/test-pr_space.c: Likewise.
35212         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35213         * tests/unictype/test-pr_titlecase.c: Likewise.
35214         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35215         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35216         * tests/unictype/test-pr_uppercase.c: Likewise.
35217         * tests/unictype/test-pr_variation_selector.c: Likewise.
35218         * tests/unictype/test-pr_white_space.c: Likewise.
35219         * tests/unictype/test-pr_xid_continue.c: Likewise.
35220         * tests/unictype/test-pr_xid_start.c: Likewise.
35221         * tests/unictype/test-pr_zero_width.c: Likewise.
35222         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35223         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35224
35225 2007-11-12  Bruno Haible  <bruno@clisp.org>
35226
35227         Unicode character classification functions.
35228         * lib/unictype.h: New file.
35229         * modules/unictype/base: New file.
35230         * modules/unictype/category-L: New file.
35231         * modules/unictype/category-Lu: New file.
35232         * modules/unictype/category-Ll: New file.
35233         * modules/unictype/category-Lt: New file.
35234         * modules/unictype/category-Lm: New file.
35235         * modules/unictype/category-Lo: New file.
35236         * modules/unictype/category-M: New file.
35237         * modules/unictype/category-Mn: New file.
35238         * modules/unictype/category-Mc: New file.
35239         * modules/unictype/category-Me: New file.
35240         * modules/unictype/category-N: New file.
35241         * modules/unictype/category-Nd: New file.
35242         * modules/unictype/category-Nl: New file.
35243         * modules/unictype/category-No: New file.
35244         * modules/unictype/category-P: New file.
35245         * modules/unictype/category-Pc: New file.
35246         * modules/unictype/category-Pd: New file.
35247         * modules/unictype/category-Ps: New file.
35248         * modules/unictype/category-Pe: New file.
35249         * modules/unictype/category-Pi: New file.
35250         * modules/unictype/category-Pf: New file.
35251         * modules/unictype/category-Po: New file.
35252         * modules/unictype/category-S: New file.
35253         * modules/unictype/category-Sm: New file.
35254         * modules/unictype/category-Sc: New file.
35255         * modules/unictype/category-Sk: New file.
35256         * modules/unictype/category-So: New file.
35257         * modules/unictype/category-Z: New file.
35258         * modules/unictype/category-Zs: New file.
35259         * modules/unictype/category-Zl: New file.
35260         * modules/unictype/category-Zp: New file.
35261         * modules/unictype/category-C: New file.
35262         * modules/unictype/category-Cc: New file.
35263         * modules/unictype/category-Cf: New file.
35264         * modules/unictype/category-Cs: New file.
35265         * modules/unictype/category-Co: New file.
35266         * modules/unictype/category-Cn: New file.
35267         * modules/unictype/category-or: New file.
35268         * modules/unictype/category-of: New file.
35269         * modules/unictype/category-test: New file.
35270         * modules/unictype/category-test-withtable: New file.
35271         * modules/unictype/category-byname: New file.
35272         * modules/unictype/category-none: New file.
35273         * modules/unictype/category-and: New file.
35274         * modules/unictype/category-and-not: New file.
35275         * modules/unictype/category-name: New file.
35276         * modules/unictype/combining-class: New file.
35277         * modules/unictype/category-all: New file.
35278         * modules/unictype/bidicategory-all: New file.
35279         * modules/unictype/bidicategory-byname: New file.
35280         * modules/unictype/bidicategory-name: New file.
35281         * modules/unictype/bidicategory-of: New file.
35282         * modules/unictype/bidicategory-test: New file.
35283         * modules/unictype/decimal-digit: New file.
35284         * modules/unictype/digit: New file.
35285         * modules/unictype/numeric: New file.
35286         * modules/unictype/mirror: New file.
35287         * modules/unictype/property-white-space: New file.
35288         * modules/unictype/property-alphabetic: New file.
35289         * modules/unictype/property-other-alphabetic: New file.
35290         * modules/unictype/property-not-a-character: New file.
35291         * modules/unictype/property-default-ignorable-code-point: New file.
35292         * modules/unictype/property-other-default-ignorable-code-point: New
35293         file.
35294         * modules/unictype/property-deprecated: New file.
35295         * modules/unictype/property-logical-order-exception: New file.
35296         * modules/unictype/property-variation-selector: New file.
35297         * modules/unictype/property-private-use: New file.
35298         * modules/unictype/property-unassigned-code-value: New file.
35299         * modules/unictype/property-uppercase: New file.
35300         * modules/unictype/property-other-uppercase: New file.
35301         * modules/unictype/property-lowercase: New file.
35302         * modules/unictype/property-other-lowercase: New file.
35303         * modules/unictype/property-titlecase: New file.
35304         * modules/unictype/property-soft-dotted: New file.
35305         * modules/unictype/property-id-start: New file.
35306         * modules/unictype/property-other-id-start: New file.
35307         * modules/unictype/property-id-continue: New file.
35308         * modules/unictype/property-other-id-continue: New file.
35309         * modules/unictype/property-xid-start: New file.
35310         * modules/unictype/property-xid-continue: New file.
35311         * modules/unictype/property-pattern-white-space: New file.
35312         * modules/unictype/property-pattern-syntax: New file.
35313         * modules/unictype/property-join-control: New file.
35314         * modules/unictype/property-grapheme-base: New file.
35315         * modules/unictype/property-grapheme-extend: New file.
35316         * modules/unictype/property-other-grapheme-extend: New file.
35317         * modules/unictype/property-grapheme-link: New file.
35318         * modules/unictype/property-bidi-control: New file.
35319         * modules/unictype/property-bidi-left-to-right: New file.
35320         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35321         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35322         * modules/unictype/property-bidi-european-digit: New file.
35323         * modules/unictype/property-bidi-eur-num-separator: New file.
35324         * modules/unictype/property-bidi-eur-num-terminator: New file.
35325         * modules/unictype/property-bidi-arabic-digit: New file.
35326         * modules/unictype/property-bidi-common-separator: New file.
35327         * modules/unictype/property-bidi-block-separator: New file.
35328         * modules/unictype/property-bidi-segment-separator: New file.
35329         * modules/unictype/property-bidi-whitespace: New file.
35330         * modules/unictype/property-bidi-non-spacing-mark: New file.
35331         * modules/unictype/property-bidi-boundary-neutral: New file.
35332         * modules/unictype/property-bidi-pdf: New file.
35333         * modules/unictype/property-bidi-embedding-or-override: New file.
35334         * modules/unictype/property-bidi-other-neutral: New file.
35335         * modules/unictype/property-hex-digit: New file.
35336         * modules/unictype/property-ascii-hex-digit: New file.
35337         * modules/unictype/property-ideographic: New file.
35338         * modules/unictype/property-unified-ideograph: New file.
35339         * modules/unictype/property-radical: New file.
35340         * modules/unictype/property-ids-binary-operator: New file.
35341         * modules/unictype/property-ids-trinary-operator: New file.
35342         * modules/unictype/property-zero-width: New file.
35343         * modules/unictype/property-space: New file.
35344         * modules/unictype/property-non-break: New file.
35345         * modules/unictype/property-iso-control: New file.
35346         * modules/unictype/property-format-control: New file.
35347         * modules/unictype/property-dash: New file.
35348         * modules/unictype/property-hyphen: New file.
35349         * modules/unictype/property-punctuation: New file.
35350         * modules/unictype/property-line-separator: New file.
35351         * modules/unictype/property-paragraph-separator: New file.
35352         * modules/unictype/property-quotation-mark: New file.
35353         * modules/unictype/property-sentence-terminal: New file.
35354         * modules/unictype/property-terminal-punctuation: New file.
35355         * modules/unictype/property-currency-symbol: New file.
35356         * modules/unictype/property-math: New file.
35357         * modules/unictype/property-other-math: New file.
35358         * modules/unictype/property-paired-punctuation: New file.
35359         * modules/unictype/property-left-of-pair: New file.
35360         * modules/unictype/property-combining: New file.
35361         * modules/unictype/property-composite: New file.
35362         * modules/unictype/property-decimal-digit: New file.
35363         * modules/unictype/property-numeric: New file.
35364         * modules/unictype/property-diacritic: New file.
35365         * modules/unictype/property-extender: New file.
35366         * modules/unictype/property-ignorable-control: New file.
35367         * modules/unictype/property-test: New file.
35368         * modules/unictype/property-byname: New file.
35369         * modules/unictype/property-all: New file.
35370         * modules/unictype/scripts: New file.
35371         * modules/unictype/scripts-all: New file.
35372         * modules/unictype/block-of: New file.
35373         * modules/unictype/block-test: New file.
35374         * modules/unictype/block-list: New file.
35375         * modules/unictype/block-all: New file.
35376         * modules/unictype/syntax-c-whitespace: New file.
35377         * modules/unictype/syntax-java-whitespace: New file.
35378         * modules/unictype/syntax-c-ident: New file.
35379         * modules/unictype/syntax-java-ident: New file.
35380         * modules/unictype/ctype-alnum: New file.
35381         * modules/unictype/ctype-alpha: New file.
35382         * modules/unictype/ctype-cntrl: New file.
35383         * modules/unictype/ctype-digit: New file.
35384         * modules/unictype/ctype-graph: New file.
35385         * modules/unictype/ctype-lower: New file.
35386         * modules/unictype/ctype-print: New file.
35387         * modules/unictype/ctype-punct: New file.
35388         * modules/unictype/ctype-space: New file.
35389         * modules/unictype/ctype-upper: New file.
35390         * modules/unictype/ctype-xdigit: New file.
35391         * modules/unictype/ctype-blank: New file.
35392         * lib/unictype/bidi_byname.c: New file.
35393         * lib/unictype/bidi_name.c: New file.
35394         * lib/unictype/bidi_of.c: New file.
35395         * lib/unictype/bidi_test.c: New file.
35396         * lib/unictype/bitmap.h: New file.
35397         * lib/unictype/block_test.c: New file.
35398         * lib/unictype/blocks.c: New file.
35399         * lib/unictype/categ_C.c: New file.
35400         * lib/unictype/categ_Cc.c: New file.
35401         * lib/unictype/categ_Cf.c: New file.
35402         * lib/unictype/categ_Cn.c: New file.
35403         * lib/unictype/categ_Co.c: New file.
35404         * lib/unictype/categ_Cs.c: New file.
35405         * lib/unictype/categ_L.c: New file.
35406         * lib/unictype/categ_Ll.c: New file.
35407         * lib/unictype/categ_Lm.c: New file.
35408         * lib/unictype/categ_Lo.c: New file.
35409         * lib/unictype/categ_Lt.c: New file.
35410         * lib/unictype/categ_Lu.c: New file.
35411         * lib/unictype/categ_M.c: New file.
35412         * lib/unictype/categ_Mc.c: New file.
35413         * lib/unictype/categ_Me.c: New file.
35414         * lib/unictype/categ_Mn.c: New file.
35415         * lib/unictype/categ_N.c: New file.
35416         * lib/unictype/categ_Nd.c: New file.
35417         * lib/unictype/categ_Nl.c: New file.
35418         * lib/unictype/categ_No.c: New file.
35419         * lib/unictype/categ_P.c: New file.
35420         * lib/unictype/categ_Pc.c: New file.
35421         * lib/unictype/categ_Pd.c: New file.
35422         * lib/unictype/categ_Pe.c: New file.
35423         * lib/unictype/categ_Pf.c: New file.
35424         * lib/unictype/categ_Pi.c: New file.
35425         * lib/unictype/categ_Po.c: New file.
35426         * lib/unictype/categ_Ps.c: New file.
35427         * lib/unictype/categ_S.c: New file.
35428         * lib/unictype/categ_Sc.c: New file.
35429         * lib/unictype/categ_Sk.c: New file.
35430         * lib/unictype/categ_Sm.c: New file.
35431         * lib/unictype/categ_So.c: New file.
35432         * lib/unictype/categ_Z.c: New file.
35433         * lib/unictype/categ_Zl.c: New file.
35434         * lib/unictype/categ_Zp.c: New file.
35435         * lib/unictype/categ_Zs.c: New file.
35436         * lib/unictype/categ_and.c: New file.
35437         * lib/unictype/categ_and_not.c: New file.
35438         * lib/unictype/categ_byname.c: New file.
35439         * lib/unictype/categ_name.c: New file.
35440         * lib/unictype/categ_none.c: New file.
35441         * lib/unictype/categ_of.c: New file.
35442         * lib/unictype/categ_or.c: New file.
35443         * lib/unictype/categ_test.c: New file.
35444         * lib/unictype/combining.c: New file.
35445         * lib/unictype/ctype_alnum.c: New file.
35446         * lib/unictype/ctype_alpha.c: New file.
35447         * lib/unictype/ctype_blank.c: New file.
35448         * lib/unictype/ctype_cntrl.c: New file.
35449         * lib/unictype/ctype_digit.c: New file.
35450         * lib/unictype/ctype_graph.c: New file.
35451         * lib/unictype/ctype_lower.c: New file.
35452         * lib/unictype/ctype_print.c: New file.
35453         * lib/unictype/ctype_punct.c: New file.
35454         * lib/unictype/ctype_space.c: New file.
35455         * lib/unictype/ctype_upper.c: New file.
35456         * lib/unictype/ctype_xdigit.c: New file.
35457         * lib/unictype/decdigit.c: New file.
35458         * lib/unictype/digit.c: New file.
35459         * lib/unictype/identsyntaxmap.h: New file.
35460         * lib/unictype/mirror.c: New file.
35461         * lib/unictype/numeric.c: New file.
35462         * lib/unictype/pr_alphabetic.c: New file.
35463         * lib/unictype/pr_ascii_hex_digit.c: New file.
35464         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35465         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35466         * lib/unictype/pr_bidi_block_separator.c: New file.
35467         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35468         * lib/unictype/pr_bidi_common_separator.c: New file.
35469         * lib/unictype/pr_bidi_control.c: New file.
35470         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35471         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35472         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35473         * lib/unictype/pr_bidi_european_digit.c: New file.
35474         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35475         * lib/unictype/pr_bidi_left_to_right.c: New file.
35476         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35477         * lib/unictype/pr_bidi_other_neutral.c: New file.
35478         * lib/unictype/pr_bidi_pdf.c: New file.
35479         * lib/unictype/pr_bidi_segment_separator.c: New file.
35480         * lib/unictype/pr_bidi_whitespace.c: New file.
35481         * lib/unictype/pr_byname.c: New file.
35482         * lib/unictype/pr_byname.gperf: New file.
35483         * lib/unictype/pr_combining.c: New file.
35484         * lib/unictype/pr_composite.c: New file.
35485         * lib/unictype/pr_currency_symbol.c: New file.
35486         * lib/unictype/pr_dash.c: New file.
35487         * lib/unictype/pr_decimal_digit.c: New file.
35488         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35489         * lib/unictype/pr_deprecated.c: New file.
35490         * lib/unictype/pr_diacritic.c: New file.
35491         * lib/unictype/pr_extender.c: New file.
35492         * lib/unictype/pr_format_control.c: New file.
35493         * lib/unictype/pr_grapheme_base.c: New file.
35494         * lib/unictype/pr_grapheme_extend.c: New file.
35495         * lib/unictype/pr_grapheme_link.c: New file.
35496         * lib/unictype/pr_hex_digit.c: New file.
35497         * lib/unictype/pr_hyphen.c: New file.
35498         * lib/unictype/pr_id_continue.c: New file.
35499         * lib/unictype/pr_id_start.c: New file.
35500         * lib/unictype/pr_ideographic.c: New file.
35501         * lib/unictype/pr_ids_binary_operator.c: New file.
35502         * lib/unictype/pr_ids_trinary_operator.c: New file.
35503         * lib/unictype/pr_ignorable_control.c: New file.
35504         * lib/unictype/pr_iso_control.c: New file.
35505         * lib/unictype/pr_join_control.c: New file.
35506         * lib/unictype/pr_left_of_pair.c: New file.
35507         * lib/unictype/pr_line_separator.c: New file.
35508         * lib/unictype/pr_logical_order_exception.c: New file.
35509         * lib/unictype/pr_lowercase.c: New file.
35510         * lib/unictype/pr_math.c: New file.
35511         * lib/unictype/pr_non_break.c: New file.
35512         * lib/unictype/pr_not_a_character.c: New file.
35513         * lib/unictype/pr_numeric.c: New file.
35514         * lib/unictype/pr_other_alphabetic.c: New file.
35515         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35516         * lib/unictype/pr_other_grapheme_extend.c: New file.
35517         * lib/unictype/pr_other_id_continue.c: New file.
35518         * lib/unictype/pr_other_id_start.c: New file.
35519         * lib/unictype/pr_other_lowercase.c: New file.
35520         * lib/unictype/pr_other_math.c: New file.
35521         * lib/unictype/pr_other_uppercase.c: New file.
35522         * lib/unictype/pr_paired_punctuation.c: New file.
35523         * lib/unictype/pr_paragraph_separator.c: New file.
35524         * lib/unictype/pr_pattern_syntax.c: New file.
35525         * lib/unictype/pr_pattern_white_space.c: New file.
35526         * lib/unictype/pr_private_use.c: New file.
35527         * lib/unictype/pr_punctuation.c: New file.
35528         * lib/unictype/pr_quotation_mark.c: New file.
35529         * lib/unictype/pr_radical.c: New file.
35530         * lib/unictype/pr_sentence_terminal.c: New file.
35531         * lib/unictype/pr_soft_dotted.c: New file.
35532         * lib/unictype/pr_space.c: New file.
35533         * lib/unictype/pr_terminal_punctuation.c: New file.
35534         * lib/unictype/pr_test.c: New file.
35535         * lib/unictype/pr_titlecase.c: New file.
35536         * lib/unictype/pr_unassigned_code_value.c: New file.
35537         * lib/unictype/pr_unified_ideograph.c: New file.
35538         * lib/unictype/pr_uppercase.c: New file.
35539         * lib/unictype/pr_variation_selector.c: New file.
35540         * lib/unictype/pr_white_space.c: New file.
35541         * lib/unictype/pr_xid_continue.c: New file.
35542         * lib/unictype/pr_xid_start.c: New file.
35543         * lib/unictype/pr_zero_width.c: New file.
35544         * lib/unictype/scripts.c: New file.
35545         * lib/unictype/sy_c_ident.c: New file.
35546         * lib/unictype/sy_c_whitespace.c: New file.
35547         * lib/unictype/sy_java_ident.c: New file.
35548         * lib/unictype/sy_java_whitespace.c: New file.
35549
35550         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35551         Unicode 5.0.0.
35552         * lib/unictype/blocks.h: Likewise.
35553         * lib/unictype/categ_C.h: Likewise.
35554         * lib/unictype/categ_Cc.h: Likewise.
35555         * lib/unictype/categ_Cf.h: Likewise.
35556         * lib/unictype/categ_Cn.h: Likewise.
35557         * lib/unictype/categ_Co.h: Likewise.
35558         * lib/unictype/categ_Cs.h: Likewise.
35559         * lib/unictype/categ_L.h: Likewise.
35560         * lib/unictype/categ_Ll.h: Likewise.
35561         * lib/unictype/categ_Lm.h: Likewise.
35562         * lib/unictype/categ_Lo.h: Likewise.
35563         * lib/unictype/categ_Lt.h: Likewise.
35564         * lib/unictype/categ_Lu.h: Likewise.
35565         * lib/unictype/categ_M.h: Likewise.
35566         * lib/unictype/categ_Mc.h: Likewise.
35567         * lib/unictype/categ_Me.h: Likewise.
35568         * lib/unictype/categ_Mn.h: Likewise.
35569         * lib/unictype/categ_N.h: Likewise.
35570         * lib/unictype/categ_Nd.h: Likewise.
35571         * lib/unictype/categ_Nl.h: Likewise.
35572         * lib/unictype/categ_No.h: Likewise.
35573         * lib/unictype/categ_P.h: Likewise.
35574         * lib/unictype/categ_Pc.h: Likewise.
35575         * lib/unictype/categ_Pd.h: Likewise.
35576         * lib/unictype/categ_Pe.h: Likewise.
35577         * lib/unictype/categ_Pf.h: Likewise.
35578         * lib/unictype/categ_Pi.h: Likewise.
35579         * lib/unictype/categ_Po.h: Likewise.
35580         * lib/unictype/categ_Ps.h: Likewise.
35581         * lib/unictype/categ_S.h: Likewise.
35582         * lib/unictype/categ_Sc.h: Likewise.
35583         * lib/unictype/categ_Sk.h: Likewise.
35584         * lib/unictype/categ_Sm.h: Likewise.
35585         * lib/unictype/categ_So.h: Likewise.
35586         * lib/unictype/categ_Z.h: Likewise.
35587         * lib/unictype/categ_Zl.h: Likewise.
35588         * lib/unictype/categ_Zp.h: Likewise.
35589         * lib/unictype/categ_Zs.h: Likewise.
35590         * lib/unictype/categ_of.h: Likewise.
35591         * lib/unictype/combining.h: Likewise.
35592         * lib/unictype/ctype_alnum.h: Likewise.
35593         * lib/unictype/ctype_alpha.h: Likewise.
35594         * lib/unictype/ctype_blank.h: Likewise.
35595         * lib/unictype/ctype_cntrl.h: Likewise.
35596         * lib/unictype/ctype_digit.h: Likewise.
35597         * lib/unictype/ctype_graph.h: Likewise.
35598         * lib/unictype/ctype_lower.h: Likewise.
35599         * lib/unictype/ctype_print.h: Likewise.
35600         * lib/unictype/ctype_punct.h: Likewise.
35601         * lib/unictype/ctype_space.h: Likewise.
35602         * lib/unictype/ctype_upper.h: Likewise.
35603         * lib/unictype/ctype_xdigit.h: Likewise.
35604         * lib/unictype/decdigit.h: Likewise.
35605         * lib/unictype/digit.h: Likewise.
35606         * lib/unictype/mirror.h: Likewise.
35607         * lib/unictype/numeric.h: Likewise.
35608         * lib/unictype/pr_alphabetic.h: Likewise.
35609         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35610         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35611         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35612         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35613         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35614         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35615         * lib/unictype/pr_bidi_control.h: Likewise.
35616         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35617         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35618         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35619         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35620         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35621         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35622         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35623         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35624         * lib/unictype/pr_bidi_pdf.h: Likewise.
35625         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35626         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35627         * lib/unictype/pr_combining.h: Likewise.
35628         * lib/unictype/pr_composite.h: Likewise.
35629         * lib/unictype/pr_currency_symbol.h: Likewise.
35630         * lib/unictype/pr_dash.h: Likewise.
35631         * lib/unictype/pr_decimal_digit.h: Likewise.
35632         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35633         * lib/unictype/pr_deprecated.h: Likewise.
35634         * lib/unictype/pr_diacritic.h: Likewise.
35635         * lib/unictype/pr_extender.h: Likewise.
35636         * lib/unictype/pr_format_control.h: Likewise.
35637         * lib/unictype/pr_grapheme_base.h: Likewise.
35638         * lib/unictype/pr_grapheme_extend.h: Likewise.
35639         * lib/unictype/pr_grapheme_link.h: Likewise.
35640         * lib/unictype/pr_hex_digit.h: Likewise.
35641         * lib/unictype/pr_hyphen.h: Likewise.
35642         * lib/unictype/pr_id_continue.h: Likewise.
35643         * lib/unictype/pr_id_start.h: Likewise.
35644         * lib/unictype/pr_ideographic.h: Likewise.
35645         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35646         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35647         * lib/unictype/pr_ignorable_control.h: Likewise.
35648         * lib/unictype/pr_iso_control.h: Likewise.
35649         * lib/unictype/pr_join_control.h: Likewise.
35650         * lib/unictype/pr_left_of_pair.h: Likewise.
35651         * lib/unictype/pr_line_separator.h: Likewise.
35652         * lib/unictype/pr_logical_order_exception.h: Likewise.
35653         * lib/unictype/pr_lowercase.h: Likewise.
35654         * lib/unictype/pr_math.h: Likewise.
35655         * lib/unictype/pr_non_break.h: Likewise.
35656         * lib/unictype/pr_not_a_character.h: Likewise.
35657         * lib/unictype/pr_numeric.h: Likewise.
35658         * lib/unictype/pr_other_alphabetic.h: Likewise.
35659         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35660         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35661         * lib/unictype/pr_other_id_continue.h: Likewise.
35662         * lib/unictype/pr_other_id_start.h: Likewise.
35663         * lib/unictype/pr_other_lowercase.h: Likewise.
35664         * lib/unictype/pr_other_math.h: Likewise.
35665         * lib/unictype/pr_other_uppercase.h: Likewise.
35666         * lib/unictype/pr_paired_punctuation.h: Likewise.
35667         * lib/unictype/pr_paragraph_separator.h: Likewise.
35668         * lib/unictype/pr_pattern_syntax.h: Likewise.
35669         * lib/unictype/pr_pattern_white_space.h: Likewise.
35670         * lib/unictype/pr_private_use.h: Likewise.
35671         * lib/unictype/pr_punctuation.h: Likewise.
35672         * lib/unictype/pr_quotation_mark.h: Likewise.
35673         * lib/unictype/pr_radical.h: Likewise.
35674         * lib/unictype/pr_sentence_terminal.h: Likewise.
35675         * lib/unictype/pr_soft_dotted.h: Likewise.
35676         * lib/unictype/pr_space.h: Likewise.
35677         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35678         * lib/unictype/pr_titlecase.h: Likewise.
35679         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35680         * lib/unictype/pr_unified_ideograph.h: Likewise.
35681         * lib/unictype/pr_uppercase.h: Likewise.
35682         * lib/unictype/pr_variation_selector.h: Likewise.
35683         * lib/unictype/pr_white_space.h: Likewise.
35684         * lib/unictype/pr_xid_continue.h: Likewise.
35685         * lib/unictype/pr_xid_start.h: Likewise.
35686         * lib/unictype/pr_zero_width.h: Likewise.
35687         * lib/unictype/scripts.h: Likewise.
35688         * lib/unictype/scripts_byname.gperf: Likewise.
35689         * lib/unictype/sy_c_ident.h: Likewise.
35690         * lib/unictype/sy_c_whitespace.h: Likewise.
35691         * lib/unictype/sy_java_ident.h: Likewise.
35692         * lib/unictype/sy_java_whitespace.h: Likewise.
35693
35694         * lib/unictype/Makefile: New file.
35695         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35696         glibc.
35697         * lib/unictype/3level.h: New file, copied from glibc.
35698         * lib/unictype/3levelbit.h: New file.
35699
35700 2007-11-11  Bruno Haible  <bruno@clisp.org>
35701
35702         * modules/gperf: New file.
35703         * modules/iconv_open (Depends-on): Add it.
35704         (Makefile.am): Remove the GPERF definition.
35705
35706 2007-11-11  Bruno Haible  <bruno@clisp.org>
35707
35708         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35709         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35710
35711 2007-11-11  Bruno Haible  <bruno@clisp.org>
35712
35713         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35714         (usage): Remove function.
35715
35716 2007-11-11  Bruno Haible  <bruno@clisp.org>
35717
35718         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35719         gl_FUNC_CEILF_LIBS.
35720         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35721         gl_FUNC_CEIL_LIBS.
35722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35723         gl_FUNC_CEILL_LIBS.
35724         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35725         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35726         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35727
35728 2007-11-11  Bruno Haible  <bruno@clisp.org>
35729
35730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35731         roundf were declared but do not exist on functions.
35732         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35733         roundl were declared but do not exist on functions.
35734         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35735         HAVE_FLOORL_AND_CEILL, respectively.
35736         Needed for Sun C on Solaris 10.
35737
35738 2007-11-11  Bruno Haible  <bruno@clisp.org>
35739
35740         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35741         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35742         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35743         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35744         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35745         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35746         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35747         HAVE_DECL_ROUNDF.
35748         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35749         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35751         of HAVE_DECL_ROUND*.
35752         * modules/math (Makefile.am): Update.
35753
35754 2007-11-10  Bruno Haible  <bruno@clisp.org>
35755
35756         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35757         ptrdiff_t as m4/intl.m4.
35758
35759 2007-11-10  Jim Meyering  <meyering@redhat.com>
35760
35761         Avoid link failure for the argmatch test.
35762         * tests/test-argmatch.c (usage): Define function to avoid a link
35763         failure: argmatch_die requires a usage function.
35764
35765 2007-11-09  Bruno Haible  <bruno@clisp.org>
35766
35767         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35768         * doc/functions/vsnprintf.texi: Likewise.
35769         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35770         with a size argument < 2.
35771
35772 2007-11-09  Bruno Haible  <bruno@clisp.org>
35773
35774         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35775         buffer. Fixes an inefficiency introduced on 2007-11-03.
35776
35777 2007-11-09  Bruno Haible  <bruno@clisp.org>
35778
35779         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35780         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35781
35782 2007-11-08  Jim Meyering  <meyering@redhat.com>
35783
35784         Change cache variable name prefix "jm_" to "gl_" everywhere.
35785         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35786         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35787         * m4/uptime.m4: s/gl_/jm_/
35788
35789 2007-11-07  Bruno Haible  <bruno@clisp.org>
35790
35791         Update to GNU gettext 0.17.
35792         * m4/intl.m4: Update to GNU gettext 0.17.
35793         * m4/po.m4: Likewise.
35794         * modules/gettext (Files): Remove m4/ulonglong.m4.
35795         (configure.ac): Require gettext infrastructure from version 0.17.
35796
35797 2007-11-06  Bruno Haible  <bruno@clisp.org>
35798
35799         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35800         symbolic values are not defined in a public header.
35801         * lib/freadable.c (freadable) [QNX]: Likewise.
35802         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35803         * lib/freading.c (freading) [QNX]: Likewise.
35804         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35805         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35806         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35807         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35808         Reported by Alain Magloire.
35809
35810         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35811
35812 2007-11-05  Bruno Haible  <bruno@clisp.org>
35813
35814         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35815         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35816         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35817         Reported by Eric Blake.
35818
35819 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35820             Bruno Haible  <bruno@clisp.org>
35821
35822         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35823         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35824         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35825         (malloc): Undefine also before including <stdlib.h>.
35826         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35827         Needed on OSF/1 4.0.
35828
35829 2007-11-05  Jim Meyering  <meyering@redhat.com>
35830
35831         git-version-gen: sync from coreutils.
35832         * build-aux/git-version-gen: Add comments.
35833         Change the first '-' to '.' in the snapshot version string,
35834         e.g., 6.9-377-08144 -> 6.9.377-08144
35835         Remove first parameter.
35836         Don't declare a version "-dirty" merely because a time
35837         stamp has changed.
35838
35839 2007-11-04  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/lock.h: Protect all macro definitions containing an 'if'
35842         statement through a "do { ... } while (0)".
35843         * lib/tls.h: Likewise.
35844
35845 2007-11-04  Bruno Haible  <bruno@clisp.org>
35846
35847         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35848
35849 2007-11-04  Bruno Haible  <bruno@clisp.org>
35850
35851         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35852         * modules/fprintf-posix (Depends-on): Add nocrash.
35853         * modules/snprintf-posix (Depends-on): Likewise.
35854         * modules/sprintf-posix (Depends-on): Likewise.
35855         * modules/vasnprintf-posix (Depends-on): Likewise.
35856         * modules/vasprintf-posix (Depends-on): Likewise.
35857         * modules/vfprintf-posix (Depends-on): Likewise.
35858         * modules/vsnprintf-posix (Depends-on): Likewise.
35859         * modules/vsprintf-posix (Depends-on): Likewise.
35860         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35861         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35862         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35863         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35864         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35865         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35866         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35867
35868 2007-11-04  Bruno Haible  <bruno@clisp.org>
35869
35870         * modules/nocrash: New file.
35871         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35872         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35873
35874 2007-11-04  Bruno Haible  <bruno@clisp.org>
35875
35876         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35877         precision handling.
35878         * tests/test-vasprintf-posix.c (test_function): Likewise.
35879         * tests/test-snprintf-posix.h (test_function): Likewise.
35880         * tests/test-sprintf-posix.h (test_function): Likewise.
35881
35882         Fix *printf behaviour for large precisions on mingw and BeOS.
35883         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35884         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35886         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35888         gl_PRINTF_PRECISION and test its result. Invoke
35889         gl_PREREQ_VASNPRINTF_PRECISION.
35890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35897         * doc/functions/fprintf.texi: Update.
35898         * doc/functions/printf.texi: Update.
35899         * doc/functions/snprintf.texi: Update.
35900         * doc/functions/sprintf.texi: Update.
35901         * doc/functions/vfprintf.texi: Update.
35902         * doc/functions/vprintf.texi: Update.
35903         * doc/functions/vsnprintf.texi: Update.
35904         * doc/functions/vsprintf.texi: Update.
35905
35906 2007-11-04  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35909
35910 2007-11-04  Bruno Haible  <bruno@clisp.org>
35911
35912         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35913         Reported by Sylvain Beucler <beuc@gnu.org>.
35914
35915 2007-11-03  Bruno Haible  <bruno@clisp.org>
35916
35917         * tests/test-fprintf-posix2.sh: New file.
35918         * tests/test-fprintf-posix2.c: New file.
35919         * modules/fprintf-posix-tests (Files): Add them.
35920         (TESTS): Add test-fprintf-posix2.sh.
35921         (configure.ac): Check for getrlimit and setrlimit.
35922         (check_PROGRAMS): Add test-fprintf-posix2.
35923
35924         * tests/test-printf-posix2.sh: New file.
35925         * tests/test-printf-posix2.c: New file.
35926         * modules/printf-posix-tests (Files): Add them.
35927         (TESTS): Add test-printf-posix2.sh.
35928         (configure.ac): Check for getrlimit and setrlimit.
35929         (check_PROGRAMS): Add test-printf-posix2.
35930
35931         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35932         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35933         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35934         (decode_double): New function, copied from decode_long_double.
35935         (scale10_round_decimal_decoded): New function, extracted from
35936         scale10_round_decimal_long_double.
35937         (scale10_round_decimal_long_double): Use it.
35938         (scale10_round_decimal_double): New function.
35939         (floorlog10): New function.
35940         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
35941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
35942         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35944         gl_PRINTF_ENOMEM and test its result. Invoke
35945         gl_PREREQ_VASNPRINTF_ENOMEM.
35946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35953         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
35954         * modules/snprintf-posix (Depends-on): Likewise.
35955         * modules/sprintf-posix (Depends-on): Likewise.
35956         * modules/vasnprintf-posix (Depends-on): Likewise.
35957         * modules/vasprintf-posix (Depends-on): Likewise.
35958         * modules/vfprintf-posix (Depends-on): Likewise.
35959         * modules/vsnprintf-posix (Depends-on): Likewise.
35960         * modules/vsprintf-posix (Depends-on): Likewise.
35961         * doc/functions/fprintf.texi: Update.
35962         * doc/functions/printf.texi: Update.
35963         * doc/functions/snprintf.texi: Update.
35964         * doc/functions/sprintf.texi: Update.
35965         * doc/functions/vfprintf.texi: Update.
35966         * doc/functions/vprintf.texi: Update.
35967         * doc/functions/vsnprintf.texi: Update.
35968         * doc/functions/vsprintf.texi: Update.
35969
35970 2007-11-03  Bruno Haible  <bruno@clisp.org>
35971
35972         * modules/frexp-nolibm-tests: New file.
35973
35974         * modules/frexp-nolibm: New file.
35975         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
35976
35977 2007-11-03  Bruno Haible  <bruno@clisp.org>
35978
35979         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
35980         value is C99 compliant.
35981         Needed for OSF/1 5.1.
35982
35983 2007-11-03  Bruno Haible  <bruno@clisp.org>
35984
35985         Fix out-of-memory handling of vasnprintf.
35986         * lib/printf-parse.c: Include <errno.h>.
35987         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
35988         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
35989         is already set.
35990
35991 2007-11-02  Eric Blake  <ebb9@byu.net>
35992
35993         Fix tests on cygwin.
35994         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
35995
35996 2007-11-01  Bruno Haible  <bruno@clisp.org>
35997
35998         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
35999         warning.
36000         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36001         needed for POSIX compatibility.
36002
36003 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36004
36005         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36006         for compatibility with GNU.
36007
36008 2007-11-01  Bruno Haible  <bruno@clisp.org>
36009
36010         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36011         (putenv): Renamed from rpl_putenv. Change argument type from
36012         'const char *' to 'char *'.
36013         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36014         of defining putenv in config.h, just set REPLACE_PUTENV.
36015         * modules/putenv (Depends-on): Add stdlib.
36016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36017         (Include): Use <stdlib.h>.
36018         * lib/stdlib.in.h (putenv): New declaration.
36019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36020         REPLACE_PUTENV.
36021         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36022         REPLACE_PUTENV.
36023         Needed for MacOS X 10.5.0.
36024         Reported by Peter O'Gorman <peter@pogma.com>.
36025
36026 2007-11-01  Jim Meyering  <meyering@redhat.com>
36027
36028         Treat an empty date string exactly like "0".
36029         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36030         if the remaining date string (to be parsed) is empty, use "0".
36031         Reported by Mischa Molhoek and discussed in this thread:
36032         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36033
36034 2007-10-31  Bruno Haible  <bruno@clisp.org>
36035
36036         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36037         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36038         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36039         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36040         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36041         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36042
36043 2007-10-31  Bruno Haible  <bruno@clisp.org>
36044
36045         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36046         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36047         (AC_TYPE_LONG_LONG_INT): Use it.
36048         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36049         it as well.
36050         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36051         to m4/longlong.m4.
36052         * modules/stdint (Files): Remove m4/ulonglong.m4.
36053         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36054         m4/ulonglong.m4.
36055         * modules/strtoumax (Files): Likewise.
36056
36057 2007-10-30  Bruno Haible  <bruno@clisp.org>
36058
36059         * modules/xvasprintf-posix: New file.
36060         Suggested by Eric Blake.
36061
36062 2007-10-30  Bruno Haible  <bruno@clisp.org>
36063
36064         * modules/xprintf-posix-tests: New file.
36065         * tests/test-xprintf-posix.sh: New file.
36066         * tests/test-xprintf-posix.c: New file.
36067         * tests/test-xfprintf-posix.c: New file.
36068
36069         * modules/xprintf-posix: New file.
36070
36071 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36072
36073         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36074         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36075         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36076
36077 2007-10-29  Bruno Haible  <bruno@clisp.org>
36078
36079         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36080         contain the special marker '_cv_'.
36081         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36082         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36083         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36084         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36085         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36086         Reported by Ralf Wildenhues.
36087
36088 2007-10-29  Bruno Haible  <bruno@clisp.org>
36089
36090         * gnulib-tool (func_import): When --lgpl is not specified, set
36091         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36092         GPLv3.
36093         Reported by Simon Josefsson.
36094
36095 2007-10-28  Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36098         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36099         HAVE_DECL_ISFINITE.
36100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36101         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36102         HAVE_DECL_ISFINITE.
36103
36104 2007-10-28  Bruno Haible  <bruno@clisp.org>
36105
36106         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36107         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36108
36109 2007-10-28  Bruno Haible  <bruno@clisp.org>
36110
36111         Fix link errors with Sun C 5.0 on Solaris 10.
36112         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36113         function is declared but not present in the compiler's libm.
36114         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36115         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36116         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36117         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36118         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36119         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36120         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36122         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36123         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36124         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36125         HAVE_DECL_FLOORL.
36126
36127 2007-10-28  Bruno Haible  <bruno@clisp.org>
36128
36129         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36130         gl_FUNC_FLOORL. Cache the result.
36131         (gl_FUNC_FLOORL): Use it.
36132         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36133         gl_FUNC_CEILL. Cache the result.
36134         (gl_FUNC_CEILL): Use it.
36135
36136         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36137         gl_FUNC_FLOOR. Cache the result.
36138         (gl_FUNC_FLOOR): Use it.
36139         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36140         gl_FUNC_CEIL. Cache the result.
36141         (gl_FUNC_CEIL): Use it.
36142
36143         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36144         gl_FUNC_FLOORF. Cache the result.
36145         (gl_FUNC_FLOORF): Use it.
36146         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36147         gl_FUNC_CEILF. Cache the result.
36148         (gl_FUNC_CEILF): Use it.
36149
36150 2007-10-28  Bruno Haible  <bruno@clisp.org>
36151
36152         * gnulib-tool: Allow specifying the LGPL version number through
36153         --lgpl=2 or --lgpl=3.
36154         (func_usage): Document --lgpl with argument.
36155         Handle --lgpl=... arguments.
36156         (func_import): Recognize also gl_LGPL calls with an argument. When
36157         --lgpl=2 is used and the module's license is just LGPL, report an
36158         error. Set sed_transform_lib_file according to the lgpl variable. In
36159         the generated files, use --lgpl or gl_LGPL invocations with argument,
36160         if necessary.
36161         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36162         an LGPv2+ license.
36163         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36164         gl_LGPL macro.
36165
36166 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36167             Bruno Haible  <bruno@clisp.org>
36168
36169         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36170         (u16_uctomb_aux): Likewise.
36171         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36172         !HAVE_INLINE.
36173         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36174
36175 2007-10-28  Bruno Haible  <bruno@clisp.org>
36176
36177         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36178         Invoke AM_GETTEXT_OPTION if it exists.
36179         * modules/vasprintf: Likewise.
36180         * modules/verror: Likewise.
36181         * modules/xprintf: Likewise.
36182         * modules/xvasprintf: Likewise.
36183
36184 2007-10-27  Ben Pfaff  <blp@gnu.org>
36185
36186         * lib/math.in.h: Define isfinite macro and prototypes for
36187         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36188         implementations.
36189         * m4/math_h.m4: New substitutions for isfinite module.
36190         * lib/isfinite.c: New file.
36191         * m4/isfinite.m4: New file.
36192         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36193         * modules/isfinite: New file.
36194         * modules/isfinite-tests: New file.
36195         * tests/tests-isfinite.c: New file.
36196         * doc/functions/isfinite.texi: Mention isfinite module.
36197         * MODULES.html.sh: Mention new module.
36198
36199 2007-10-27  Ben Pfaff  <blp@gnu.org>
36200
36201         Ralf Wildenhues reported that Tru64 4.0D declares the round
36202         functions but does not have definitions.
36203         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36204         cannot be found in any library, set the output variable to
36205         "missing" instead of "".
36206         * m4/round.m4: Also use our substitute if we cannot find round in
36207         any library, even if it is declared.
36208         * m4/roundf.m4: Likewise for roundf.
36209         * m4/roundl.m4: Likewise for roundl.
36210         * lib/math.in.h: Undefine roundf, round, roundl before defining
36211         their replacements, to allow for hypothetical systems where these
36212         may be defined as macros but not available in libraries.
36213
36214 2007-10-27  Bruno Haible  <bruno@clisp.org>
36215
36216         * doc/gnulib.texi: Invoke @firstparagraphindent.
36217         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36218         changes in gnulib.
36219         (Source changes): New section.
36220
36221 2007-10-26  Bruno Haible  <bruno@clisp.org>
36222
36223         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36224         borrowed from autoconf.
36225
36226 2007-10-26  Bruno Haible  <bruno@clisp.org>
36227
36228         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36229         strerror returned the empty string. Needed on HP-UX 11.00.
36230
36231 2007-10-24  Micah Cowan  <micah@cowan.name>
36232
36233         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36234         * build-aux/bootstrap: Remove support for now-unnecessary option,
36235         --cvs-user, and envvars CVS_USER, CVS_RSH.
36236
36237 2007-10-24  Jim Meyering  <meyering@redhat.com>
36238
36239         Avoid diagnostics from sha1sum when there is no cached checksum.
36240         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36241         if the po.s1 file hasn't been created yet.
36242
36243         * build-aux/bootstrap: Sync from coreutils:
36244         2007-10-24  Jim Meyering  <meyering@redhat.com>
36245         Get gnulib from the git repository, not from an obsolete cvs one.
36246         * build-aux/bootstrap: Suggestion from Micah Cowan.
36247         2007-10-04  Jim Meyering  <jim@meyering.net>
36248         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36249         (update_po_files): Work also when there are no .po files in po/.
36250
36251 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36252
36253         * README: Append ".git" to git and cg examples.
36254         Problem reported by Benoit Sigoure.
36255
36256 2007-10-23  Micah Cowan  <micah@cowan.name>
36257
36258         * users.txt: Add wget.
36259
36260 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36261
36262         Fix linking of some unistdio tests on FreeBSD.
36263         * modules/unistdio/u16-vsnprintf-tests
36264         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36265         * modules/unistdio/u16-vsprintf-tests
36266         (test_u16_vsnprintf1_LDADD): Likewise.
36267         * modules/unistdio/u32-vsnprintf-tests
36268         (test_u32_vsnprintf1_LDADD): Likewise.
36269         * modules/unistdio/u32-vsprintf-tests
36270         (test_u32_vsprintf1_LDADD): Likewise.
36271         * modules/unistdio/u8-vsnprintf-tests
36272         (test_u8_vsnprintf1_LDADD): Likewise.
36273         * modules/unistdio/u8-vsprintf-tests
36274         (test_u8_vsprintf1_LDADD): Likewise.
36275         * modules/unistdio/ulc-vsnprintf-tests
36276         (test_ulc_vsnprintf1_LDADD): Likewise.
36277         * modules/unistdio/ulc-vsprintf-tests
36278         (test_ulc_vsprintf1_LDADD): Likewise.
36279
36280         Fix linking of some uniconv tests on FreeBSD.
36281         * modules/uniconv/u16-conv-from-enc-tests
36282         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36283         * modules/uniconv/u16-conv-to-enc-tests
36284         (test_u16_conv_to_enc_LDADD): Likewise.
36285         * modules/uniconv/u16-strconv-from-enc-tests
36286         (test_u16_strconv_from_enc_LDADD): Likewise.
36287         * modules/uniconv/u16-strconv-to-enc-tests
36288         (test_u16_strconv_to_enc_LDADD): Likewise.
36289         * modules/uniconv/u32-conv-from-enc-tests
36290         (test_u32_conv_from_enc_LDADD): Likewise.
36291         * modules/uniconv/u32-conv-to-enc-tests
36292         (test_u32_conv_to_enc_LDADD): Likewise.
36293         * modules/uniconv/u32-strconv-from-enc-tests
36294         (test_u32_strconv_from_enc_LDADD): Likewise.
36295         * modules/uniconv/u32-strconv-to-enc-tests
36296         (test_u32_strconv_to_enc_LDADD): Likewise.
36297         * modules/uniconv/u8-conv-from-enc-tests
36298         (test_u8_conv_from_enc_LDADD): Likewise.
36299         * modules/uniconv/u8-conv-to-enc-tests
36300         (test_u8_conv_to_enc_LDADD): Likewise.
36301         * modules/uniconv/u8-strconv-from-enc-tests
36302         (test_u8_strconv_from_enc_LDADD): Likewise.
36303         * modules/uniconv/u8-strconv-to-enc-tests
36304         (test_u8_strconv_to_enc_LDADD): Likewise.
36305
36306 2007-10-22  Bruno Haible  <bruno@clisp.org>
36307
36308         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36309         size.
36310
36311 2007-10-22  Eric Blake  <ebb9@byu.net>
36312
36313         Tweak x*printf documentation.
36314         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36315         variable name and comments.
36316         Suggested by Bruno Haible.
36317
36318 2007-10-22  Bruno Haible  <bruno@clisp.org>
36319
36320         * lib/acl.c (copy_acl): Fix file name in comment.
36321
36322 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36323
36324         Fix Tru64 problem with stdbool.h.
36325         * lib/stdbool.in.h (false, true):
36326         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36327         Don't declare as an enum in this situation; it runs afoul of Tru64.
36328         Problem reported by Steven M. Schweda in
36329         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36330
36331 2007-10-22  Eric Blake  <ebb9@byu.net>
36332
36333         Also wrap vf?printf.
36334         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36335         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36336         (xvprintf, xvfprintf): New functions.
36337
36338 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36339
36340         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36341         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36342
36343         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36344         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36345
36346 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36347
36348         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36349         by Bruno Haible.
36350
36351 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36352
36353         * lib/getloadavg.c
36354         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36355         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36356
36357         * tests/test-i-ring.c: Work for C89.
36358
36359 2007-10-22  Bruno Haible  <bruno@clisp.org>
36360
36361         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36362         -1u, in preprocessor expression, so that we don't test for the bug
36363         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36365
36366 2007-10-22  Eric Blake  <ebb9@byu.net>
36367
36368         * tests/test-yesno.sh: Silence stderr during test.
36369
36370 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36371
36372         * modules/crypto/gc-camellia: New file.
36373
36374         * m4/gc-camellia.m4: New file.
36375
36376         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36377
36378         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36379
36380 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36381
36382         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36383         --help to stdout.  Reported by sms@antinode.org (Steven
36384         M. Schweda).
36385
36386 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36387
36388         * users.txt: Fix link to libksba.
36389
36390 2007-10-21  Ben Pfaff  <blp@gnu.org>
36391
36392         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36393         round.c roundf implementation that depends on floorf and ceilf to
36394         be tested unconditionally.
36395
36396 2007-10-21  Ben Pfaff  <blp@gnu.org>
36397
36398         * m4/check-libm-func.m4: Removed.
36399         * m4/check-math-lib.m4: New file.
36400         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36401         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36402         definition and lack of AC_LIBOBJ([roundf]).
36403         * m4/roundl.m4: Ditto, and similarly for roundl.
36404         * modules/round: Reference new m4 file.
36405         * modules/roundf: Ditto.
36406         * modules/roundl: Ditto.
36407         * tests/test-round2.c (main): Use ROUND instead of round.
36408         Bug report from Bruno Haible.
36409
36410 2007-10-21  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36413         context.
36414
36415 2007-10-21  Bruno Haible  <bruno@clisp.org>
36416
36417         * tests/test-wcwidth.c (main): Allow negative result for some control
36418         characters.
36419
36420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36421         Needed on OSF/1 5.1.
36422
36423 2007-10-21  Bruno Haible  <bruno@clisp.org>
36424
36425         * tests/test-floorf1.c: Include isnanf.h.
36426         (main): Use isnanf() instead of isnan().
36427         * tests/test-ceilf1.c: Include isnanf.h.
36428         (main): Use isnanf() instead of isnan().
36429         * tests/test-truncf1.c: Include isnanf.h.
36430         (main): Use isnanf() instead of isnan().
36431         * tests/test-roundf1.c: Include isnanf.h.
36432         (main): Use isnanf() instead of isnan().
36433
36434 2007-10-21  Eric Blake  <ebb9@byu.net>
36435
36436         * users.txt: Update URL for m4.
36437
36438 2007-10-21  Bruno Haible  <bruno@clisp.org>
36439
36440         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36441
36442 2007-10-21  Bruno Haible  <bruno@clisp.org>
36443
36444         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36445         Git's management files if the CVS files are not present.
36446
36447 2007-10-20  Bruno Haible  <bruno@clisp.org>
36448
36449         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36450         gcc-3.4.x.
36451
36452 2007-10-20  Ben Pfaff  <blp@gnu.org>
36453
36454         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36455         implementations.
36456         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36457         * lib/round.c: New file.
36458         * lib/roundf.c: New file.
36459         * lib/roundl.c: New file.
36460         * m4/round.m4: New file.
36461         * m4/roundf.m4: New file.
36462         * m4/roundl.m4: New file.
36463         * m4/check-libm-func-m4: New file.
36464         * modules/math: Replace round, roundf, roundl related @VARS@ in
36465         math.in.h.
36466         * modules/round: New file.
36467         * modules/round-tests: New file.
36468         * modules/roundf: New file.
36469         * modules/roundf-tests: New file.
36470         * modules/roundl: New file.
36471         * modules/roundl-tests: New file.
36472         * tests/test-round1.c: New file.
36473         * tests/test-round2.c: New file.
36474         * tests/test-roundf1.c: New file.
36475         * tests/test-roundf2.c: New file.
36476         * tests/test-roundl.c: New file.
36477         * doc/functions/round.texi: Mention round module.
36478         * doc/functions/roundf.texi: Mention roundf module.
36479         * doc/functions/roundl.texi: Mention roundl module.
36480         * MODULES.html.sh: Mention new modules.
36481         Thanks to Bruno Haible for suggestions.
36482
36483 2007-10-20  Jim Meyering  <meyering@redhat.com>
36484
36485         * lib/xprintf.c: Include <config.h> unconditionally.
36486
36487         Change xprintf's license to GPL.
36488         * modules/xprintf (License): s/LGPL/GPL/, since this module
36489         depends on modules (exit and exitfail) which are GPL.
36490         Suggestion from Bruno Haible.
36491
36492         xprintf fixes.
36493         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36494         Use a clearer diagnostic.
36495         Patch from Bruno Haible.
36496
36497 2007-10-20  Bruno Haible  <bruno@clisp.org>
36498
36499         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36500         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36502
36503 2007-10-20  Bruno Haible  <bruno@clisp.org>
36504
36505         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36506         precision in the comparison result > x - 1 or similar.
36507         * tests/test-ceilf2.c (correct_result_p): Likewise.
36508         * tests/test-truncf2.c (correct_result_p): Likewise.
36509         * tests/test-trunc2.c (correct_result_p): Likewise.
36510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36511
36512 2007-10-20  Bruno Haible  <bruno@clisp.org>
36513
36514         * modules/ceil: New file.
36515         * m4/ceil.m4: New file.
36516         * doc/functions/ceil.texi: Mention the 'ceil' module.
36517
36518 2007-10-20  Bruno Haible  <bruno@clisp.org>
36519
36520         * modules/floor: New file.
36521         * m4/floor.m4: New file.
36522         * doc/functions/floor.texi: Mention the 'floor' module.
36523
36524 2007-10-20  Bruno Haible  <bruno@clisp.org>
36525
36526         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36527         of %a.
36528         * modules/floorf-tests (Depends-on): Likewise.
36529         * modules/truncf-tests (Depends-on): Likewise.
36530         * modules/trunc-tests (Depends-on): Likewise.
36531         Reported by Ben Pfaff.
36532
36533 2007-10-19  Jim Meyering  <meyering@redhat.com>
36534
36535         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36536         Don't bother testing specific errno values.  Just test ferror.
36537
36538         New module: xprintf
36539         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36540
36541 2007-10-19  Bruno Haible  <bruno@clisp.org>
36542
36543         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36544         syntax.
36545         * modules/javaexec (Makefile.am): Likewise.
36546         * modules/relocatable-prog (Makefile.am): Likewise.
36547         Suggested by Jim Meyering.
36548
36549 2007-10-18  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36552         Reported by Jim Meyering.
36553
36554 2007-10-18  Eric Blake  <ebb9@byu.net>
36555
36556         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36557
36558 2007-10-18  Bruno Haible  <bruno@clisp.org>
36559
36560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36561         the format string into writable memory. Needed in Fortify conditions.
36562
36563 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36564             Bruno Haible  <bruno@clisp.org>
36565
36566         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36567         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36568         * modules/trim (Depends-on): Add mbchar.
36569         (configure.ac): Add gl_FUNC_MBRTOWC.
36570         (Makefile.am): Augment lib_SOURCES.
36571
36572 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36573
36574         Modify glob.c to use fstatat and dirfd, to simplify it.
36575         Suggested by Eric Blake.
36576         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36577         Don't include <stdbool.h>; not used.
36578         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36579         (link_exists_p): Simplify implementation, since we can now assume
36580         dirfd and fstatat.
36581         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36582
36583 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36584
36585         * gnulib-tool (func_get_dependencies): Fix sed script to
36586         match only tests.
36587
36588 2007-10-17  Bruno Haible  <bruno@clisp.org>
36589
36590         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36591         allow locale names without encoding suffix.
36592         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36593         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36594
36595 2007-10-16  Bruno Haible  <bruno@clisp.org>
36596
36597         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36598         * lib/getgroups.c (getgroups): Likewise.
36599         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36600
36601 2007-10-16  Bruno Haible  <bruno@clisp.org>
36602
36603         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36604         * modules/malloc-posix (License): Likewise.
36605         * modules/realloc-posix (License): Likewise.
36606         * modules/calloc-posix (License): Likewise.
36607         * modules/intprops (License): Change from GPL to LGPL, with
36608         Paul Eggert's approval.
36609
36610 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36611
36612         Merge glibc changes into lib/glob.c.
36613
36614         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36615         2007-10-15 04:59:03 UTC.  Here are the changes:
36616
36617         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36618
36619         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36620
36621         * lib/glob.c: Add some branch prediction throughout.
36622
36623         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36624
36625         [BZ #5103]
36626         * lib/glob.c (glob): Recognize patterns starting \/.
36627
36628         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36629
36630         [BZ #3996]
36631         * lib/glob.c (attribute_hidden): Define if not defined.
36632         (glob): Unescape dirname, filename or username when needed and not
36633         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36634         is NULL.  Handle unescaped [ in pattern without closing ].
36635         Don't pass GLOB_CHECK down to recursive glob for directories.
36636         (__glob_pattern_type): New function.
36637         (__glob_pattern_p): Implement using __glob_pattern_type.
36638         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36639         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36640         Remove unreachable code.
36641
36642         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36643
36644         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36645         explain why there are no leaks.
36646
36647         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36648
36649         [BZ #3253]
36650         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36651         time, rather allocate increasingly bigger arrays of pointers, if
36652         possible with alloca, if too large with malloc.
36653
36654 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36655
36656         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36657         Problem reported by H.Merijn Brand in
36658         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36659         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36660         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36661
36662 2007-10-15  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36665         with explicit rpl_ prefix.
36666         * lib/fopen.c (fopen): Likewise.
36667         * lib/freopen.c (freopen): Likewise.
36668         * lib/iconv.c (iconv): Likewise.
36669         * lib/iconv_close.c (iconv_close): Likewise.
36670
36671 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36672
36673         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36674
36675 2007-10-15  Bruno Haible  <bruno@clisp.org>
36676
36677         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36678         <stddef.h> instead of <stdlib.h> since we only need NULL.
36679         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36680
36681 2007-10-15  Bruno Haible  <bruno@clisp.org>
36682
36683         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36684         Replace paragraph talking about LIBOBJS.
36685         Reported by Colin Watson <cjwatson@debian.org>.
36686
36687 2007-10-15  Bruno Haible  <bruno@clisp.org>
36688
36689         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36690         <stdlib.h> before using NULL.
36691
36692 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36693
36694         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36695         Reported by Albert Chin <china@thewrittenword.com>.
36696
36697 2007-10-14  Bruno Haible  <bruno@clisp.org>
36698
36699         * modules/iconv_open-utf-tests: New file.
36700         * tests/test-iconv-utf.c: New file.
36701
36702         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36703         * modules/iconv_open-utf: New file.
36704         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36705         (iconv, iconv_close): New declarations.
36706         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36707         be defined.
36708         (iconv_open): Add special handling of conversion between UTF-8 and
36709         UTF-{16,32}{BE,LE}.
36710         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36711         * lib/iconv_close.c: New file.
36712         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36713         gl_FUNC_ICONV_OPEN.
36714         (gl_FUNC_ICONV_OPEN): Use it.
36715         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36716         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36717         and REPLACE_ICONV_UTF.
36718         * modules/iconv_open (Depends-on): Add c-strcase.
36719         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36720         ICONV_CONST.
36721         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36722
36723 2007-10-13  Albert Chin  <china@thewrittenword.com>
36724             Bruno Haible  <bruno@clisp.org>
36725
36726         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36727         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36728
36729 2007-10-13  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36732         defined, use the ISO C99 inline semantics.
36733         * lib/argp.h (ARGP_EI): Likewise.
36734
36735 2007-10-13  Bruno Haible  <bruno@clisp.org>
36736
36737         Handle 'inline' change in gcc 4.3.0.
36738         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36739         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36740         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36741         argp_fmtstream_point): Disable 'extern' declaration if the function
36742         definition is going to be provided inline.
36743         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36744         semantics, not the ISO C99 inline semantics.
36745         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36746         'extern' declaration if the function definition is going to be provided
36747         inline.
36748         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36749         the GNU C inline semantics, not the ISO C99 inline semantics. With
36750         GCC 4.2, avoid a warning.
36751
36752 2007-10-13  Bruno Haible  <bruno@clisp.org>
36753
36754         * lib/freading.h (freading): Enable the use of __freading for
36755         glibc >= 2.7.
36756         * lib/freading.c (freading): Likewise.
36757
36758 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36759
36760         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36761         "warning: C99 inline functions are not supported; using GNU89".
36762
36763 2007-10-12  Bruno Haible  <bruno@clisp.org>
36764
36765         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36766         of 2.
36767         * tests/test-ceilf2.c: New file.
36768         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36769
36770         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36771         * modules/ceilf-tests: Update.
36772
36773 2007-10-12  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36776         of 2.
36777         * tests/test-floorf2.c: New file.
36778         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36779
36780         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36781         * modules/floorf-tests: Update.
36782
36783 2007-10-12  Bruno Haible  <bruno@clisp.org>
36784
36785         * tests/test-trunc2.c: New file.
36786         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36787
36788         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36789         * modules/trunc-tests: Update.
36790
36791 2007-10-12  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36794         of 2.
36795         * tests/test-truncf2.c: New file.
36796         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36797
36798         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36799         * modules/truncf-tests: Update.
36800
36801 2007-10-11  Eric Blake  <ebb9@byu.net>
36802
36803         Don't claim strerror is broken on Interix.
36804         * doc/functions/strerror.texi (strerror): Known broken systems are
36805         now Solaris 8, and not Interix.
36806         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36807         Interix on cross-compile.
36808         Reported by Martin Koeppe in
36809         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36810
36811 2007-10-11  Bruno Haible  <bruno@clisp.org>
36812
36813         * modules/i-ring-tests: New file.
36814         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36815         instead of assert.
36816
36817 2007-10-11  Bruno Haible  <bruno@clisp.org>
36818
36819         * modules/filenamecat-tests: New file.
36820         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36821         * lib/filenamecat.c: Remove test code.
36822
36823 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36824
36825         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36826
36827         * lib/strerror.c: Include <string.h> always, to test interface,
36828         and to remove the need for the dummy.
36829         Include intprops.h to compute width instead of doing it ourselves
36830         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36831         (strerror): Define it to return NULL if there's no system strerror.
36832         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36833         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36834         ancient pre-strerror Unix systems well any more.  Saying "unknown
36835         system error" is enough.
36836         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36837         simpler strerror.c implementation.
36838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36839         Simplify the tests to reflect the simpler strerror implementation.
36840         * modules/strerror (Depends-on): Add intprops.
36841
36842 2007-10-09  Eric Blake  <ebb9@byu.net>
36843
36844         Silence test-fpending.
36845         * modules/fpending-tests (Files): Add wrapper script.
36846         * tests/test-fpending.sh: New file.
36847
36848 2007-10-09  Bruno Haible  <bruno@clisp.org>
36849
36850         * MODULES.html.sh (func_module): Don't create a hyperlink for
36851         function names like 'printf_frexp'.
36852         (Misc): Add crc, memxor.
36853         (Characteristics of floating types): New section.
36854         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36855         isnanf-nolibm, signbit, trunc, truncf, truncl.
36856         (Enhancements for ISO C 99 functions): New subsection Input/output.
36857         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36858         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36859         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36860         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36861         (Enhancements for POSIX:2001 functions): Add chdir-long.
36862         (File system functions): Add areadlink, chdir-safer, read-file.
36863         Remove cycle-check.
36864         (File system as inode set): New section.
36865         (Date and time): Add gethrxtime.
36866         (Multithreading): Add openmp.
36867         (Internationalization functions): Add localename.
36868         (Unicode string functions): Add unistr/u*-mbsnlen.
36869         (Support for maintaining and releasing projects): Add git-version-gen.
36870         (Lone files): Remove directories.
36871
36872 2007-10-08  Ben Pfaff  <blp@gnu.org>
36873
36874         * lib/xmalloca.h: Fix typo in comment.
36875
36876 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36877
36878         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36879         when avoiding problems with integer overflow.  Use a portable test
36880         instead.
36881
36882 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36883
36884         * modules/dummy (License): Change to LGPLv2+.
36885         * modules/float (License): Likewise
36886         * modules/realloc (License): Likewise
36887         * modules/stdlib (License): Likewise
36888
36889 2007-10-07  Bruno Haible  <bruno@clisp.org>
36890
36891         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36892         * floor.c (TWO_MANT_DIG): Likewise.
36893         * ceil.c (TWO_MANT_DIG): Likewise.
36894         Reported by Ben Pfaff.
36895
36896 2007-10-07  Bruno Haible  <bruno@clisp.org>
36897
36898         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36899         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36900         * lib/frexp.c (FUNC): Likewise.
36901         * lib/printf-frexp.h (printf_frexp): Likewise.
36902         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36903         * lib/printf-frexp.c (FUNC): Likewise.
36904         Suggested by Jim Meyering.
36905
36906 2007-10-07  Jim Meyering  <meyering@redhat.com>
36907
36908         Make xnanosleep's integer overflow test more robust.
36909         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36910         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36911
36912 2007-10-07  Bruno Haible  <bruno@clisp.org>
36913
36914         * NEWS: Mention the license change.
36915
36916         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36917         abbreviations in the modules files.
36918
36919         Change copyright notice from GPLv2+ to GPLv3+.
36920         * README: Change copyright notice.
36921         * MODULES.html.sh: Likewise.
36922         * build-aux/bootstrap.conf: Likewise.
36923         * build-aux/config.libpath: Likewise.
36924         * build-aux/csharpcomp.sh.in: Likewise.
36925         * build-aux/csharpexec.sh.in: Likewise.
36926         * build-aux/install-reloc: Likewise.
36927         * build-aux/javacomp.sh.in: Likewise.
36928         * build-aux/javaexec.sh.in: Likewise.
36929         * build-aux/ldd.sh.in: Likewise.
36930         * build-aux/reloc-ldflags: Likewise.
36931         * build-aux/relocatable.sh.in: Likewise.
36932         * build-aux/x-to-1.in: Likewise.
36933         * check-module: Likewise.
36934         * config/srclistvars.sh: Likewise.
36935         * gnulib-tool: Likewise.
36936         * lib/acl-internal.h: Likewise.
36937         * lib/acl.c: Likewise.
36938         * lib/acl.h: Likewise.
36939         * lib/acl_entries.c: Likewise.
36940         * lib/areadlink-with-size.c: Likewise.
36941         * lib/areadlink.c: Likewise.
36942         * lib/areadlink.h: Likewise.
36943         * lib/argmatch.c: Likewise.
36944         * lib/argmatch.h: Likewise.
36945         * lib/argp-ba.c: Likewise.
36946         * lib/argp-eexst.c: Likewise.
36947         * lib/argp-fmtstream.c: Likewise.
36948         * lib/argp-fmtstream.h: Likewise.
36949         * lib/argp-fs-xinl.c: Likewise.
36950         * lib/argp-help.c: Likewise.
36951         * lib/argp-namefrob.h: Likewise.
36952         * lib/argp-parse.c: Likewise.
36953         * lib/argp-pin.c: Likewise.
36954         * lib/argp-pv.c: Likewise.
36955         * lib/argp-pvh.c: Likewise.
36956         * lib/argp-xinl.c: Likewise.
36957         * lib/argp.h: Likewise.
36958         * lib/at-func.c: Likewise.
36959         * lib/atanl.c: Likewise.
36960         * lib/backupfile.c: Likewise.
36961         * lib/backupfile.h: Likewise.
36962         * lib/basename.c: Likewise.
36963         * lib/binary-io.h: Likewise.
36964         * lib/byteswap.in.h: Likewise.
36965         * lib/c-stack.c: Likewise.
36966         * lib/c-stack.h: Likewise.
36967         * lib/c-strcasestr.c: Likewise.
36968         * lib/c-strcasestr.h: Likewise.
36969         * lib/c-strstr.c: Likewise.
36970         * lib/c-strstr.h: Likewise.
36971         * lib/c-strtod.c: Likewise.
36972         * lib/calloc.c: Likewise.
36973         * lib/canon-host.c: Likewise.
36974         * lib/canon-host.h: Likewise.
36975         * lib/canonicalize-lgpl.c: Likewise.
36976         * lib/canonicalize.c: Likewise.
36977         * lib/canonicalize.h: Likewise.
36978         * lib/ceil.c: Likewise.
36979         * lib/ceilf.c: Likewise.
36980         * lib/ceill.c: Likewise.
36981         * lib/chdir-long.c: Likewise.
36982         * lib/chdir-long.h: Likewise.
36983         * lib/chdir-safer.c: Likewise.
36984         * lib/chdir-safer.h: Likewise.
36985         * lib/chown.c: Likewise.
36986         * lib/classpath.c: Likewise.
36987         * lib/classpath.h: Likewise.
36988         * lib/clean-temp.c: Likewise.
36989         * lib/clean-temp.h: Likewise.
36990         * lib/cloexec.c: Likewise.
36991         * lib/close-stream.c: Likewise.
36992         * lib/closein.c: Likewise.
36993         * lib/closein.h: Likewise.
36994         * lib/closeout.c: Likewise.
36995         * lib/closeout.h: Likewise.
36996         * lib/concat-filename.c: Likewise.
36997         * lib/copy-file.c: Likewise.
36998         * lib/copy-file.h: Likewise.
36999         * lib/count-one-bits.h: Likewise.
37000         * lib/crc.c: Likewise.
37001         * lib/crc.h: Likewise.
37002         * lib/creat-safer.c: Likewise.
37003         * lib/csharpcomp.c: Likewise.
37004         * lib/csharpcomp.h: Likewise.
37005         * lib/csharpexec.c: Likewise.
37006         * lib/csharpexec.h: Likewise.
37007         * lib/cycle-check.c: Likewise.
37008         * lib/cycle-check.h: Likewise.
37009         * lib/diacrit.c: Likewise.
37010         * lib/diacrit.h: Likewise.
37011         * lib/diffseq.h: Likewise.
37012         * lib/dirchownmod.c: Likewise.
37013         * lib/dirent.in.h: Likewise.
37014         * lib/dirfd.c: Likewise.
37015         * lib/dirfd.h: Likewise.
37016         * lib/dirname.c: Likewise.
37017         * lib/dirname.h: Likewise.
37018         * lib/dummy.c: Likewise.
37019         * lib/dup-safer.c: Likewise.
37020         * lib/dup2.c: Likewise.
37021         * lib/eealloc.h: Likewise.
37022         * lib/error.c: Likewise.
37023         * lib/error.h: Likewise.
37024         * lib/euidaccess.c: Likewise.
37025         * lib/exclude.c: Likewise.
37026         * lib/exclude.h: Likewise.
37027         * lib/execute.c: Likewise.
37028         * lib/execute.h: Likewise.
37029         * lib/exitfail.c: Likewise.
37030         * lib/exitfail.h: Likewise.
37031         * lib/expl.c: Likewise.
37032         * lib/fatal-signal.c: Likewise.
37033         * lib/fatal-signal.h: Likewise.
37034         * lib/fbufmode.c: Likewise.
37035         * lib/fbufmode.h: Likewise.
37036         * lib/fchdir.c: Likewise.
37037         * lib/fchmodat.c: Likewise.
37038         * lib/fchownat.c: Likewise.
37039         * lib/fcntl--.h: Likewise.
37040         * lib/fcntl-safer.h: Likewise.
37041         * lib/fcntl.in.h: Likewise.
37042         * lib/fd-safer.c: Likewise.
37043         * lib/fflush.c: Likewise.
37044         * lib/file-has-acl.c: Likewise.
37045         * lib/file-set.c: Likewise.
37046         * lib/file-type.c: Likewise.
37047         * lib/file-type.h: Likewise.
37048         * lib/fileblocks.c: Likewise.
37049         * lib/filemode.c: Likewise.
37050         * lib/filemode.h: Likewise.
37051         * lib/filename.h: Likewise.
37052         * lib/filenamecat.c: Likewise.
37053         * lib/filenamecat.h: Likewise.
37054         * lib/findprog.c: Likewise.
37055         * lib/findprog.h: Likewise.
37056         * lib/float.in.h: Likewise.
37057         * lib/floor.c: Likewise.
37058         * lib/floorf.c: Likewise.
37059         * lib/floorl.c: Likewise.
37060         * lib/fopen-safer.c: Likewise.
37061         * lib/fopen.c: Likewise.
37062         * lib/fpending.c: Likewise.
37063         * lib/fpending.h: Likewise.
37064         * lib/fprintf.c: Likewise.
37065         * lib/fprintftime.h: Likewise.
37066         * lib/fpucw.h: Likewise.
37067         * lib/fpurge.c: Likewise.
37068         * lib/fpurge.h: Likewise.
37069         * lib/freadable.c: Likewise.
37070         * lib/freadable.h: Likewise.
37071         * lib/freadahead.c: Likewise.
37072         * lib/freadahead.h: Likewise.
37073         * lib/freading.c: Likewise.
37074         * lib/freading.h: Likewise.
37075         * lib/free.c: Likewise.
37076         * lib/freopen.c: Likewise.
37077         * lib/frexp.c: Likewise.
37078         * lib/frexpl.c: Likewise.
37079         * lib/fseek.c: Likewise.
37080         * lib/fseterr.c: Likewise.
37081         * lib/fseterr.h: Likewise.
37082         * lib/fstatat.c: Likewise.
37083         * lib/fstrcmp.c: Likewise.
37084         * lib/fstrcmp.h: Likewise.
37085         * lib/fsusage.c: Likewise.
37086         * lib/fsusage.h: Likewise.
37087         * lib/ftell.c: Likewise.
37088         * lib/ftello.c: Likewise.
37089         * lib/fts-cycle.c: Likewise.
37090         * lib/fts.c: Likewise.
37091         * lib/fts_.h: Likewise.
37092         * lib/full-read.c: Likewise.
37093         * lib/full-read.h: Likewise.
37094         * lib/full-write.c: Likewise.
37095         * lib/full-write.h: Likewise.
37096         * lib/fwritable.c: Likewise.
37097         * lib/fwritable.h: Likewise.
37098         * lib/fwriteerror.c: Likewise.
37099         * lib/fwriteerror.h: Likewise.
37100         * lib/fwriting.c: Likewise.
37101         * lib/fwriting.h: Likewise.
37102         * lib/gcd.c: Likewise.
37103         * lib/gcd.h: Likewise.
37104         * lib/getcwd.c: Likewise.
37105         * lib/getdate.h: Likewise.
37106         * lib/getdate.y: Likewise.
37107         * lib/getdomainname.c: Likewise.
37108         * lib/getdomainname.h: Likewise.
37109         * lib/getgroups.c: Likewise.
37110         * lib/gethostname.c: Likewise.
37111         * lib/gethrxtime.c: Likewise.
37112         * lib/gethrxtime.h: Likewise.
37113         * lib/getloadavg.c: Likewise.
37114         * lib/getndelim2.c: Likewise.
37115         * lib/getndelim2.h: Likewise.
37116         * lib/getnline.c: Likewise.
37117         * lib/getnline.h: Likewise.
37118         * lib/getopt.c: Likewise.
37119         * lib/getopt.in.h: Likewise.
37120         * lib/getopt1.c: Likewise.
37121         * lib/getopt_int.h: Likewise.
37122         * lib/getpagesize.h: Likewise.
37123         * lib/getsubopt.c: Likewise.
37124         * lib/gettime.c: Likewise.
37125         * lib/getugroups.c: Likewise.
37126         * lib/getugroups.h: Likewise.
37127         * lib/getusershell.c: Likewise.
37128         * lib/gl_anyavltree_list1.h: Likewise.
37129         * lib/gl_anyavltree_list2.h: Likewise.
37130         * lib/gl_anyhash_list1.h: Likewise.
37131         * lib/gl_anyhash_list2.h: Likewise.
37132         * lib/gl_anylinked_list1.h: Likewise.
37133         * lib/gl_anylinked_list2.h: Likewise.
37134         * lib/gl_anyrbtree_list1.h: Likewise.
37135         * lib/gl_anyrbtree_list2.h: Likewise.
37136         * lib/gl_anytree_list1.h: Likewise.
37137         * lib/gl_anytree_list2.h: Likewise.
37138         * lib/gl_anytree_oset.h: Likewise.
37139         * lib/gl_anytreehash_list1.h: Likewise.
37140         * lib/gl_anytreehash_list2.h: Likewise.
37141         * lib/gl_array_list.c: Likewise.
37142         * lib/gl_array_list.h: Likewise.
37143         * lib/gl_array_oset.c: Likewise.
37144         * lib/gl_array_oset.h: Likewise.
37145         * lib/gl_avltree_list.c: Likewise.
37146         * lib/gl_avltree_list.h: Likewise.
37147         * lib/gl_avltree_oset.c: Likewise.
37148         * lib/gl_avltree_oset.h: Likewise.
37149         * lib/gl_avltreehash_list.c: Likewise.
37150         * lib/gl_avltreehash_list.h: Likewise.
37151         * lib/gl_carray_list.c: Likewise.
37152         * lib/gl_carray_list.h: Likewise.
37153         * lib/gl_linked_list.c: Likewise.
37154         * lib/gl_linked_list.h: Likewise.
37155         * lib/gl_linkedhash_list.c: Likewise.
37156         * lib/gl_linkedhash_list.h: Likewise.
37157         * lib/gl_list.c: Likewise.
37158         * lib/gl_list.h: Likewise.
37159         * lib/gl_oset.c: Likewise.
37160         * lib/gl_oset.h: Likewise.
37161         * lib/gl_rbtree_list.c: Likewise.
37162         * lib/gl_rbtree_list.h: Likewise.
37163         * lib/gl_rbtree_oset.c: Likewise.
37164         * lib/gl_rbtree_oset.h: Likewise.
37165         * lib/gl_rbtreehash_list.c: Likewise.
37166         * lib/gl_rbtreehash_list.h: Likewise.
37167         * lib/gl_sublist.c: Likewise.
37168         * lib/gl_sublist.h: Likewise.
37169         * lib/group-member.c: Likewise.
37170         * lib/group-member.h: Likewise.
37171         * lib/hard-locale.c: Likewise.
37172         * lib/hard-locale.h: Likewise.
37173         * lib/hash-pjw.c: Likewise.
37174         * lib/hash-pjw.h: Likewise.
37175         * lib/hash-triple.c: Likewise.
37176         * lib/hash.c: Likewise.
37177         * lib/hash.h: Likewise.
37178         * lib/human.c: Likewise.
37179         * lib/human.h: Likewise.
37180         * lib/i-ring.c: Likewise.
37181         * lib/i-ring.h: Likewise.
37182         * lib/idcache.c: Likewise.
37183         * lib/imaxabs.c: Likewise.
37184         * lib/imaxdiv.c: Likewise.
37185         * lib/inet_pton.c: Likewise.
37186         * lib/inet_pton.h: Likewise.
37187         * lib/intprops.h: Likewise.
37188         * lib/inttostr.c: Likewise.
37189         * lib/inttostr.h: Likewise.
37190         * lib/inttypes.in.h: Likewise.
37191         * lib/isapipe.c: Likewise.
37192         * lib/isdir.c: Likewise.
37193         * lib/isnan.c: Likewise.
37194         * lib/isnan.h: Likewise.
37195         * lib/isnanf.c: Likewise.
37196         * lib/isnanf.h: Likewise.
37197         * lib/isnanl-nolibm.h: Likewise.
37198         * lib/isnanl.c: Likewise.
37199         * lib/isnanl.h: Likewise.
37200         * lib/javacomp.c: Likewise.
37201         * lib/javacomp.h: Likewise.
37202         * lib/javaexec.c: Likewise.
37203         * lib/javaexec.h: Likewise.
37204         * lib/javaversion.c: Likewise.
37205         * lib/javaversion.h: Likewise.
37206         * lib/javaversion.java: Likewise.
37207         * lib/lbrkprop.h: Likewise.
37208         * lib/lchmod.h: Likewise.
37209         * lib/lchown.c: Likewise.
37210         * lib/ldexpl.c: Likewise.
37211         * lib/linebreak.c: Likewise.
37212         * lib/linebreak.h: Likewise.
37213         * lib/linebuffer.c: Likewise.
37214         * lib/linebuffer.h: Likewise.
37215         * lib/locale.in.h: Likewise.
37216         * lib/logl.c: Likewise.
37217         * lib/long-options.c: Likewise.
37218         * lib/long-options.h: Likewise.
37219         * lib/lstat.c: Likewise.
37220         * lib/lstat.h: Likewise.
37221         * lib/math.in.h: Likewise.
37222         * lib/mbchar.c: Likewise.
37223         * lib/mbchar.h: Likewise.
37224         * lib/mbfile.h: Likewise.
37225         * lib/mbiter.h: Likewise.
37226         * lib/mbscasecmp.c: Likewise.
37227         * lib/mbscasestr.c: Likewise.
37228         * lib/mbschr.c: Likewise.
37229         * lib/mbscspn.c: Likewise.
37230         * lib/mbslen.c: Likewise.
37231         * lib/mbsncasecmp.c: Likewise.
37232         * lib/mbsnlen.c: Likewise.
37233         * lib/mbspbrk.c: Likewise.
37234         * lib/mbspcasecmp.c: Likewise.
37235         * lib/mbsrchr.c: Likewise.
37236         * lib/mbssep.c: Likewise.
37237         * lib/mbsspn.c: Likewise.
37238         * lib/mbsstr.c: Likewise.
37239         * lib/mbstok_r.c: Likewise.
37240         * lib/mbswidth.c: Likewise.
37241         * lib/mbswidth.h: Likewise.
37242         * lib/mbuiter.h: Likewise.
37243         * lib/memcasecmp.c: Likewise.
37244         * lib/memcasecmp.h: Likewise.
37245         * lib/memchr.c: Likewise.
37246         * lib/memcmp.c: Likewise.
37247         * lib/memcoll.c: Likewise.
37248         * lib/memcoll.h: Likewise.
37249         * lib/memcpy.c: Likewise.
37250         * lib/memrchr.c: Likewise.
37251         * lib/mkancesdirs.c: Likewise.
37252         * lib/mkdir-p.c: Likewise.
37253         * lib/mkdir-p.h: Likewise.
37254         * lib/mkdir.c: Likewise.
37255         * lib/mkdirat.c: Likewise.
37256         * lib/mkdtemp.c: Likewise.
37257         * lib/mkstemp-safer.c: Likewise.
37258         * lib/mkstemp.c: Likewise.
37259         * lib/modechange.c: Likewise.
37260         * lib/modechange.h: Likewise.
37261         * lib/mountlist.c: Likewise.
37262         * lib/mountlist.h: Likewise.
37263         * lib/mpsort.c: Likewise.
37264         * lib/nanosleep.c: Likewise.
37265         * lib/obstack.c: Likewise.
37266         * lib/obstack.h: Likewise.
37267         * lib/open-safer.c: Likewise.
37268         * lib/open.c: Likewise.
37269         * lib/openat-die.c: Likewise.
37270         * lib/openat-priv.h: Likewise.
37271         * lib/openat-proc.c: Likewise.
37272         * lib/openat.c: Likewise.
37273         * lib/openat.h: Likewise.
37274         * lib/pagealign_alloc.c: Likewise.
37275         * lib/pagealign_alloc.h: Likewise.
37276         * lib/physmem.c: Likewise.
37277         * lib/physmem.h: Likewise.
37278         * lib/pipe-safer.c: Likewise.
37279         * lib/pipe.c: Likewise.
37280         * lib/pipe.h: Likewise.
37281         * lib/posixtm.c: Likewise.
37282         * lib/posixtm.h: Likewise.
37283         * lib/posixver.c: Likewise.
37284         * lib/printf-frexp.c: Likewise.
37285         * lib/printf-frexp.h: Likewise.
37286         * lib/printf-frexpl.c: Likewise.
37287         * lib/printf-frexpl.h: Likewise.
37288         * lib/printf.c: Likewise.
37289         * lib/progname.c: Likewise.
37290         * lib/progname.h: Likewise.
37291         * lib/progreloc.c: Likewise.
37292         * lib/putenv.c: Likewise.
37293         * lib/quote.c: Likewise.
37294         * lib/quote.h: Likewise.
37295         * lib/quotearg.c: Likewise.
37296         * lib/quotearg.h: Likewise.
37297         * lib/raise.c: Likewise.
37298         * lib/readline.c: Likewise.
37299         * lib/readline.h: Likewise.
37300         * lib/readlink.c: Likewise.
37301         * lib/readtokens.c: Likewise.
37302         * lib/readtokens.h: Likewise.
37303         * lib/readtokens0.c: Likewise.
37304         * lib/readtokens0.h: Likewise.
37305         * lib/readutmp.c: Likewise.
37306         * lib/readutmp.h: Likewise.
37307         * lib/realloc.c: Likewise.
37308         * lib/relocwrapper.c: Likewise.
37309         * lib/rename-dest-slash.c: Likewise.
37310         * lib/rename.c: Likewise.
37311         * lib/rmdir.c: Likewise.
37312         * lib/rpmatch.c: Likewise.
37313         * lib/safe-read.c: Likewise.
37314         * lib/safe-read.h: Likewise.
37315         * lib/safe-write.c: Likewise.
37316         * lib/safe-write.h: Likewise.
37317         * lib/same-inode.h: Likewise.
37318         * lib/same.c: Likewise.
37319         * lib/same.h: Likewise.
37320         * lib/save-cwd.c: Likewise.
37321         * lib/save-cwd.h: Likewise.
37322         * lib/savedir.c: Likewise.
37323         * lib/savedir.h: Likewise.
37324         * lib/savewd.c: Likewise.
37325         * lib/savewd.h: Likewise.
37326         * lib/search.in.h: Likewise.
37327         * lib/setenv.c: Likewise.
37328         * lib/setenv.h: Likewise.
37329         * lib/settime.c: Likewise.
37330         * lib/sh-quote.c: Likewise.
37331         * lib/sh-quote.h: Likewise.
37332         * lib/sig2str.c: Likewise.
37333         * lib/sig2str.h: Likewise.
37334         * lib/signal.in.h: Likewise.
37335         * lib/signbitd.c: Likewise.
37336         * lib/signbitf.c: Likewise.
37337         * lib/signbitl.c: Likewise.
37338         * lib/sigprocmask.c: Likewise.
37339         * lib/sincosl.c: Likewise.
37340         * lib/sleep.c: Likewise.
37341         * lib/sprintf.c: Likewise.
37342         * lib/sqrtl.c: Likewise.
37343         * lib/stat-time.h: Likewise.
37344         * lib/stdio--.h: Likewise.
37345         * lib/stdio-safer.h: Likewise.
37346         * lib/stdlib--.h: Likewise.
37347         * lib/stdlib-safer.h: Likewise.
37348         * lib/stdlib.in.h: Likewise.
37349         * lib/stpcpy.c: Likewise.
37350         * lib/stpncpy.c: Likewise.
37351         * lib/strchrnul.c: Likewise.
37352         * lib/strcspn.c: Likewise.
37353         * lib/strerror.c: Likewise.
37354         * lib/strftime.c: Likewise.
37355         * lib/strftime.h: Likewise.
37356         * lib/striconveh.c: Likewise.
37357         * lib/striconveh.h: Likewise.
37358         * lib/striconveha.c: Likewise.
37359         * lib/striconveha.h: Likewise.
37360         * lib/stripslash.c: Likewise.
37361         * lib/strnlen1.c: Likewise.
37362         * lib/strnlen1.h: Likewise.
37363         * lib/strtod.c: Likewise.
37364         * lib/strtoimax.c: Likewise.
37365         * lib/strtok_r.c: Likewise.
37366         * lib/strtol.c: Likewise.
37367         * lib/strtoll.c: Likewise.
37368         * lib/strtoul.c: Likewise.
37369         * lib/strtoull.c: Likewise.
37370         * lib/sysexits.in.h: Likewise.
37371         * lib/tempname.c: Likewise.
37372         * lib/tempname.h: Likewise.
37373         * lib/timespec.h: Likewise.
37374         * lib/tls.c: Likewise.
37375         * lib/tls.h: Likewise.
37376         * lib/tmpdir.c: Likewise.
37377         * lib/tmpdir.h: Likewise.
37378         * lib/tmpfile-safer.c: Likewise.
37379         * lib/tmpfile.c: Likewise.
37380         * lib/trigl.c: Likewise.
37381         * lib/trigl.h: Likewise.
37382         * lib/trim.c: Likewise.
37383         * lib/trim.h: Likewise.
37384         * lib/trunc.c: Likewise.
37385         * lib/truncf.c: Likewise.
37386         * lib/truncl.c: Likewise.
37387         * lib/tsearch.c: Likewise.
37388         * lib/unicodeio.c: Likewise.
37389         * lib/unicodeio.h: Likewise.
37390         * lib/unistd--.h: Likewise.
37391         * lib/unistd-safer.h: Likewise.
37392         * lib/unistdio/ulc-fprintf.c: Likewise.
37393         * lib/unistdio/ulc-vfprintf.c: Likewise.
37394         * lib/unlinkdir.c: Likewise.
37395         * lib/unlinkdir.h: Likewise.
37396         * lib/unlocked-io.h: Likewise.
37397         * lib/unsetenv.c: Likewise.
37398         * lib/userspec.c: Likewise.
37399         * lib/utime.c: Likewise.
37400         * lib/utimecmp.c: Likewise.
37401         * lib/utimecmp.h: Likewise.
37402         * lib/utimens.c: Likewise.
37403         * lib/verify.h: Likewise.
37404         * lib/verror.c: Likewise.
37405         * lib/verror.h: Likewise.
37406         * lib/version-etc-fsf.c: Likewise.
37407         * lib/version-etc.c: Likewise.
37408         * lib/version-etc.h: Likewise.
37409         * lib/vfprintf.c: Likewise.
37410         * lib/vprintf.c: Likewise.
37411         * lib/vsprintf.c: Likewise.
37412         * lib/w32spawn.h: Likewise.
37413         * lib/wait-process.c: Likewise.
37414         * lib/wait-process.h: Likewise.
37415         * lib/wcwidth.c: Likewise.
37416         * lib/write-any-file.c: Likewise.
37417         * lib/xalloc-die.c: Likewise.
37418         * lib/xalloc.h: Likewise.
37419         * lib/xasprintf.c: Likewise.
37420         * lib/xgetcwd.c: Likewise.
37421         * lib/xgetcwd.h: Likewise.
37422         * lib/xgetdomainname.c: Likewise.
37423         * lib/xgetdomainname.h: Likewise.
37424         * lib/xgethostname.c: Likewise.
37425         * lib/xmalloc.c: Likewise.
37426         * lib/xmalloca.c: Likewise.
37427         * lib/xmalloca.h: Likewise.
37428         * lib/xmemcoll.c: Likewise.
37429         * lib/xnanosleep.c: Likewise.
37430         * lib/xreadlink.c: Likewise.
37431         * lib/xreadlink.h: Likewise.
37432         * lib/xsetenv.c: Likewise.
37433         * lib/xsetenv.h: Likewise.
37434         * lib/xstriconv.c: Likewise.
37435         * lib/xstriconv.h: Likewise.
37436         * lib/xstrndup.c: Likewise.
37437         * lib/xstrndup.h: Likewise.
37438         * lib/xstrtod.c: Likewise.
37439         * lib/xstrtod.h: Likewise.
37440         * lib/xstrtol-error.c: Likewise.
37441         * lib/xstrtol.c: Likewise.
37442         * lib/xstrtol.h: Likewise.
37443         * lib/xtime.h: Likewise.
37444         * lib/xvasprintf.c: Likewise.
37445         * lib/xvasprintf.h: Likewise.
37446         * lib/yesno.c: Likewise.
37447         * lib/yesno.h: Likewise.
37448         * posix-modules: Likewise.
37449         * tests/test-alloca-opt.c: Likewise.
37450         * tests/test-arcfour.c: Likewise.
37451         * tests/test-arctwo.c: Likewise.
37452         * tests/test-argmatch.c: Likewise.
37453         * tests/test-argp-2.sh: Likewise.
37454         * tests/test-argp.c: Likewise.
37455         * tests/test-arpa_inet.c: Likewise.
37456         * tests/test-array_list.c: Likewise.
37457         * tests/test-array_oset.c: Likewise.
37458         * tests/test-atexit.c: Likewise.
37459         * tests/test-avltree_list.c: Likewise.
37460         * tests/test-avltree_oset.c: Likewise.
37461         * tests/test-avltreehash_list.c: Likewise.
37462         * tests/test-base64.c: Likewise.
37463         * tests/test-binary-io.c: Likewise.
37464         * tests/test-byteswap.c: Likewise.
37465         * tests/test-c-ctype.c: Likewise.
37466         * tests/test-c-strcasecmp.c: Likewise.
37467         * tests/test-c-strcasestr.c: Likewise.
37468         * tests/test-c-strncasecmp.c: Likewise.
37469         * tests/test-c-strstr.c: Likewise.
37470         * tests/test-canonicalize-lgpl.c: Likewise.
37471         * tests/test-canonicalize.c: Likewise.
37472         * tests/test-carray_list.c: Likewise.
37473         * tests/test-ceilf.c: Likewise.
37474         * tests/test-ceill.c: Likewise.
37475         * tests/test-count-one-bits.c: Likewise.
37476         * tests/test-crc.c: Likewise.
37477         * tests/test-dirname.c: Likewise.
37478         * tests/test-fbufmode.c: Likewise.
37479         * tests/test-fcntl.c: Likewise.
37480         * tests/test-fflush.c: Likewise.
37481         * tests/test-floorf.c: Likewise.
37482         * tests/test-floorl.c: Likewise.
37483         * tests/test-fopen.c: Likewise.
37484         * tests/test-fprintf-posix.c: Likewise.
37485         * tests/test-fprintf-posix.h: Likewise.
37486         * tests/test-fpurge.c: Likewise.
37487         * tests/test-freadable.c: Likewise.
37488         * tests/test-freadahead.c: Likewise.
37489         * tests/test-freading.c: Likewise.
37490         * tests/test-freopen.c: Likewise.
37491         * tests/test-frexp.c: Likewise.
37492         * tests/test-frexpl.c: Likewise.
37493         * tests/test-fseek.c: Likewise.
37494         * tests/test-fseeko.c: Likewise.
37495         * tests/test-fseterr.c: Likewise.
37496         * tests/test-fstrcmp.c: Likewise.
37497         * tests/test-ftell.c: Likewise.
37498         * tests/test-ftello.c: Likewise.
37499         * tests/test-fwritable.c: Likewise.
37500         * tests/test-fwriting.c: Likewise.
37501         * tests/test-getaddrinfo.c: Likewise.
37502         * tests/test-getpass.c: Likewise.
37503         * tests/test-gettimeofday.c: Likewise.
37504         * tests/test-hmac-md5.c: Likewise.
37505         * tests/test-hmac-sha1.c: Likewise.
37506         * tests/test-iconv.c: Likewise.
37507         * tests/test-iconvme.c: Likewise.
37508         * tests/test-inttypes.c: Likewise.
37509         * tests/test-isnan.c: Likewise.
37510         * tests/test-isnanf.c: Likewise.
37511         * tests/test-isnanl-nolibm.c: Likewise.
37512         * tests/test-isnanl.c: Likewise.
37513         * tests/test-isnanl.h: Likewise.
37514         * tests/test-ldexpl.c: Likewise.
37515         * tests/test-linked_list.c: Likewise.
37516         * tests/test-linkedhash_list.c: Likewise.
37517         * tests/test-locale.c: Likewise.
37518         * tests/test-localename.c: Likewise.
37519         * tests/test-lock.c: Likewise.
37520         * tests/test-lseek.c: Likewise.
37521         * tests/test-malloca.c: Likewise.
37522         * tests/test-math.c: Likewise.
37523         * tests/test-mbscasecmp.c: Likewise.
37524         * tests/test-mbscasestr1.c: Likewise.
37525         * tests/test-mbscasestr2.c: Likewise.
37526         * tests/test-mbscasestr3.c: Likewise.
37527         * tests/test-mbscasestr4.c: Likewise.
37528         * tests/test-mbschr.c: Likewise.
37529         * tests/test-mbscspn.c: Likewise.
37530         * tests/test-mbsncasecmp.c: Likewise.
37531         * tests/test-mbspbrk.c: Likewise.
37532         * tests/test-mbspcasecmp.c: Likewise.
37533         * tests/test-mbsrchr.c: Likewise.
37534         * tests/test-mbsspn.c: Likewise.
37535         * tests/test-mbsstr1.c: Likewise.
37536         * tests/test-mbsstr2.c: Likewise.
37537         * tests/test-mbsstr3.c: Likewise.
37538         * tests/test-md5.c: Likewise.
37539         * tests/test-memmem.c: Likewise.
37540         * tests/test-netinet_in.c: Likewise.
37541         * tests/test-open.c: Likewise.
37542         * tests/test-printf-frexp.c: Likewise.
37543         * tests/test-printf-frexpl.c: Likewise.
37544         * tests/test-printf-posix.c: Likewise.
37545         * tests/test-printf-posix.h: Likewise.
37546         * tests/test-rbtree_list.c: Likewise.
37547         * tests/test-rbtree_oset.c: Likewise.
37548         * tests/test-rbtreehash_list.c: Likewise.
37549         * tests/test-read-file.c: Likewise.
37550         * tests/test-rijndael.c: Likewise.
37551         * tests/test-search.c: Likewise.
37552         * tests/test-signbit.c: Likewise.
37553         * tests/test-sleep.c: Likewise.
37554         * tests/test-snprintf-posix.c: Likewise.
37555         * tests/test-snprintf-posix.h: Likewise.
37556         * tests/test-snprintf.c: Likewise.
37557         * tests/test-sprintf-posix.c: Likewise.
37558         * tests/test-sprintf-posix.h: Likewise.
37559         * tests/test-stat-time.c: Likewise.
37560         * tests/test-stdbool.c: Likewise.
37561         * tests/test-stdint.c: Likewise.
37562         * tests/test-stdio.c: Likewise.
37563         * tests/test-stdlib.c: Likewise.
37564         * tests/test-stpncpy.c: Likewise.
37565         * tests/test-strcasestr.c: Likewise.
37566         * tests/test-striconv.c: Likewise.
37567         * tests/test-striconveh.c: Likewise.
37568         * tests/test-striconveha.c: Likewise.
37569         * tests/test-string.c: Likewise.
37570         * tests/test-sys_select.c: Likewise.
37571         * tests/test-sys_socket.c: Likewise.
37572         * tests/test-sys_stat.c: Likewise.
37573         * tests/test-sys_time.c: Likewise.
37574         * tests/test-sysexits.c: Likewise.
37575         * tests/test-time.c: Likewise.
37576         * tests/test-tls.c: Likewise.
37577         * tests/test-trunc.c: Likewise.
37578         * tests/test-truncf.c: Likewise.
37579         * tests/test-truncl.c: Likewise.
37580         * tests/test-unistd.c: Likewise.
37581         * tests/test-vasnprintf-posix.c: Likewise.
37582         * tests/test-vasnprintf-posix2.c: Likewise.
37583         * tests/test-vasnprintf.c: Likewise.
37584         * tests/test-vasprintf-posix.c: Likewise.
37585         * tests/test-vasprintf.c: Likewise.
37586         * tests/test-verify.c: Likewise.
37587         * tests/test-vfprintf-posix.c: Likewise.
37588         * tests/test-vprintf-posix.c: Likewise.
37589         * tests/test-vsnprintf-posix.c: Likewise.
37590         * tests/test-vsnprintf.c: Likewise.
37591         * tests/test-vsprintf-posix.c: Likewise.
37592         * tests/test-wchar.c: Likewise.
37593         * tests/test-wctype.c: Likewise.
37594         * tests/test-wcwidth.c: Likewise.
37595         * tests/test-xstrtol.c: Likewise.
37596         * tests/test-xvasprintf.c: Likewise.
37597         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37598         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37599         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37600         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37601         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37602         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37603         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37604         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37605         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37606         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37607         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37608         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37609         * tests/uniname/test-uninames.c: Likewise.
37610         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37611         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37612         * tests/unistdio/test-u16-printf1.h: Likewise.
37613         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37614         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37615         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37616         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37617         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37618         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37619         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37620         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37621         * tests/unistdio/test-u32-printf1.h: Likewise.
37622         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37623         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37624         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37625         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37626         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37627         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37628         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37629         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37630         * tests/unistdio/test-u8-printf1.h: Likewise.
37631         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37632         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37633         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37634         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37635         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37636         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37637         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37638         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37639         * tests/unistdio/test-ulc-printf1.h: Likewise.
37640         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37641         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37642         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37643         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37644         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37645         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37646         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37647         * tests/uniwidth/test-u16-width.c: Likewise.
37648         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37649         * tests/uniwidth/test-u32-width.c: Likewise.
37650         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37651         * tests/uniwidth/test-u8-width.c: Likewise.
37652         * tests/uniwidth/test-uc_width.c: Likewise.
37653         * config/srclist-update: Likewise.
37654         (fixlicense): Update to GPLv3+.
37655
37656         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37657         * tests/test-tsearch.c: Change copyright notice.
37658
37659         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37660         * lib/c-strcaseeq.h: Change copyright notice.
37661         * lib/streq.h: Likewise.
37662         * lib/uniconv.h: Likewise.
37663         * lib/uniconv/u-conv-from-enc.h: Likewise.
37664         * lib/uniconv/u-conv-to-enc.h: Likewise.
37665         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37666         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37667         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37668         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37669         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37670         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37671         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37672         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37673         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37674         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37675         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37676         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37677         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37678         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37679         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37680         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37681         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37682         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37683         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37684         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37685         * lib/uniname.h: Likewise.
37686         * lib/uniname/uniname.c: Likewise.
37687         * lib/unistdio.h: Likewise.
37688         * lib/unistdio/u-asnprintf.h: Likewise.
37689         * lib/unistdio/u-asprintf.h: Likewise.
37690         * lib/unistdio/u-printf-args.c: Likewise.
37691         * lib/unistdio/u-printf-args.h: Likewise.
37692         * lib/unistdio/u-printf-parse.h: Likewise.
37693         * lib/unistdio/u-snprintf.h: Likewise.
37694         * lib/unistdio/u-sprintf.h: Likewise.
37695         * lib/unistdio/u-vasprintf.h: Likewise.
37696         * lib/unistdio/u-vsnprintf.h: Likewise.
37697         * lib/unistdio/u-vsprintf.h: Likewise.
37698         * lib/unistdio/u16-asnprintf.c: Likewise.
37699         * lib/unistdio/u16-asprintf.c: Likewise.
37700         * lib/unistdio/u16-printf-parse.c: Likewise.
37701         * lib/unistdio/u16-snprintf.c: Likewise.
37702         * lib/unistdio/u16-sprintf.c: Likewise.
37703         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37704         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37705         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37706         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37707         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37708         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37709         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37710         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37711         * lib/unistdio/u16-vasnprintf.c: Likewise.
37712         * lib/unistdio/u16-vasprintf.c: Likewise.
37713         * lib/unistdio/u16-vsnprintf.c: Likewise.
37714         * lib/unistdio/u16-vsprintf.c: Likewise.
37715         * lib/unistdio/u32-asnprintf.c: Likewise.
37716         * lib/unistdio/u32-asprintf.c: Likewise.
37717         * lib/unistdio/u32-printf-parse.c: Likewise.
37718         * lib/unistdio/u32-snprintf.c: Likewise.
37719         * lib/unistdio/u32-sprintf.c: Likewise.
37720         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37721         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37722         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37723         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37724         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37725         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37726         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37727         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37728         * lib/unistdio/u32-vasnprintf.c: Likewise.
37729         * lib/unistdio/u32-vasprintf.c: Likewise.
37730         * lib/unistdio/u32-vsnprintf.c: Likewise.
37731         * lib/unistdio/u32-vsprintf.c: Likewise.
37732         * lib/unistdio/u8-asnprintf.c: Likewise.
37733         * lib/unistdio/u8-asprintf.c: Likewise.
37734         * lib/unistdio/u8-printf-parse.c: Likewise.
37735         * lib/unistdio/u8-snprintf.c: Likewise.
37736         * lib/unistdio/u8-sprintf.c: Likewise.
37737         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37738         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37739         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37740         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37741         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37742         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37743         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37744         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37745         * lib/unistdio/u8-vasnprintf.c: Likewise.
37746         * lib/unistdio/u8-vasprintf.c: Likewise.
37747         * lib/unistdio/u8-vsnprintf.c: Likewise.
37748         * lib/unistdio/u8-vsprintf.c: Likewise.
37749         * lib/unistdio/ulc-asnprintf.c: Likewise.
37750         * lib/unistdio/ulc-asprintf.c: Likewise.
37751         * lib/unistdio/ulc-printf-parse.c: Likewise.
37752         * lib/unistdio/ulc-snprintf.c: Likewise.
37753         * lib/unistdio/ulc-sprintf.c: Likewise.
37754         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37755         * lib/unistdio/ulc-vasprintf.c: Likewise.
37756         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37757         * lib/unistdio/ulc-vsprintf.c: Likewise.
37758         * lib/unistr.h: Likewise.
37759         * lib/unistr/u-cpy-alloc.h: Likewise.
37760         * lib/unistr/u-cpy.h: Likewise.
37761         * lib/unistr/u-endswith.h: Likewise.
37762         * lib/unistr/u-move.h: Likewise.
37763         * lib/unistr/u-set.h: Likewise.
37764         * lib/unistr/u-startswith.h: Likewise.
37765         * lib/unistr/u-stpcpy.h: Likewise.
37766         * lib/unistr/u-stpncpy.h: Likewise.
37767         * lib/unistr/u-strcat.h: Likewise.
37768         * lib/unistr/u-strcpy.h: Likewise.
37769         * lib/unistr/u-strcspn.h: Likewise.
37770         * lib/unistr/u-strdup.h: Likewise.
37771         * lib/unistr/u-strlen.h: Likewise.
37772         * lib/unistr/u-strncat.h: Likewise.
37773         * lib/unistr/u-strncpy.h: Likewise.
37774         * lib/unistr/u-strnlen.h: Likewise.
37775         * lib/unistr/u-strpbrk.h: Likewise.
37776         * lib/unistr/u-strspn.h: Likewise.
37777         * lib/unistr/u-strstr.h: Likewise.
37778         * lib/unistr/u-strtok.h: Likewise.
37779         * lib/unistr/u16-check.c: Likewise.
37780         * lib/unistr/u16-chr.c: Likewise.
37781         * lib/unistr/u16-cmp.c: Likewise.
37782         * lib/unistr/u16-cpy-alloc.c: Likewise.
37783         * lib/unistr/u16-cpy.c: Likewise.
37784         * lib/unistr/u16-endswith.c: Likewise.
37785         * lib/unistr/u16-mblen.c: Likewise.
37786         * lib/unistr/u16-mbsnlen.c: Likewise.
37787         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37788         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37789         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37790         * lib/unistr/u16-mbtouc.c: Likewise.
37791         * lib/unistr/u16-mbtoucr.c: Likewise.
37792         * lib/unistr/u16-move.c: Likewise.
37793         * lib/unistr/u16-next.c: Likewise.
37794         * lib/unistr/u16-prev.c: Likewise.
37795         * lib/unistr/u16-set.c: Likewise.
37796         * lib/unistr/u16-startswith.c: Likewise.
37797         * lib/unistr/u16-stpcpy.c: Likewise.
37798         * lib/unistr/u16-stpncpy.c: Likewise.
37799         * lib/unistr/u16-strcat.c: Likewise.
37800         * lib/unistr/u16-strchr.c: Likewise.
37801         * lib/unistr/u16-strcmp.c: Likewise.
37802         * lib/unistr/u16-strcpy.c: Likewise.
37803         * lib/unistr/u16-strcspn.c: Likewise.
37804         * lib/unistr/u16-strdup.c: Likewise.
37805         * lib/unistr/u16-strlen.c: Likewise.
37806         * lib/unistr/u16-strmblen.c: Likewise.
37807         * lib/unistr/u16-strmbtouc.c: Likewise.
37808         * lib/unistr/u16-strncat.c: Likewise.
37809         * lib/unistr/u16-strncmp.c: Likewise.
37810         * lib/unistr/u16-strncpy.c: Likewise.
37811         * lib/unistr/u16-strnlen.c: Likewise.
37812         * lib/unistr/u16-strpbrk.c: Likewise.
37813         * lib/unistr/u16-strrchr.c: Likewise.
37814         * lib/unistr/u16-strspn.c: Likewise.
37815         * lib/unistr/u16-strstr.c: Likewise.
37816         * lib/unistr/u16-strtok.c: Likewise.
37817         * lib/unistr/u16-to-u32.c: Likewise.
37818         * lib/unistr/u16-to-u8.c: Likewise.
37819         * lib/unistr/u16-uctomb-aux.c: Likewise.
37820         * lib/unistr/u16-uctomb.c: Likewise.
37821         * lib/unistr/u32-check.c: Likewise.
37822         * lib/unistr/u32-chr.c: Likewise.
37823         * lib/unistr/u32-cmp.c: Likewise.
37824         * lib/unistr/u32-cpy-alloc.c: Likewise.
37825         * lib/unistr/u32-cpy.c: Likewise.
37826         * lib/unistr/u32-endswith.c: Likewise.
37827         * lib/unistr/u32-mblen.c: Likewise.
37828         * lib/unistr/u32-mbsnlen.c: Likewise.
37829         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37830         * lib/unistr/u32-mbtouc.c: Likewise.
37831         * lib/unistr/u32-mbtoucr.c: Likewise.
37832         * lib/unistr/u32-move.c: Likewise.
37833         * lib/unistr/u32-next.c: Likewise.
37834         * lib/unistr/u32-prev.c: Likewise.
37835         * lib/unistr/u32-set.c: Likewise.
37836         * lib/unistr/u32-startswith.c: Likewise.
37837         * lib/unistr/u32-stpcpy.c: Likewise.
37838         * lib/unistr/u32-stpncpy.c: Likewise.
37839         * lib/unistr/u32-strcat.c: Likewise.
37840         * lib/unistr/u32-strchr.c: Likewise.
37841         * lib/unistr/u32-strcmp.c: Likewise.
37842         * lib/unistr/u32-strcpy.c: Likewise.
37843         * lib/unistr/u32-strcspn.c: Likewise.
37844         * lib/unistr/u32-strdup.c: Likewise.
37845         * lib/unistr/u32-strlen.c: Likewise.
37846         * lib/unistr/u32-strmblen.c: Likewise.
37847         * lib/unistr/u32-strmbtouc.c: Likewise.
37848         * lib/unistr/u32-strncat.c: Likewise.
37849         * lib/unistr/u32-strncmp.c: Likewise.
37850         * lib/unistr/u32-strncpy.c: Likewise.
37851         * lib/unistr/u32-strnlen.c: Likewise.
37852         * lib/unistr/u32-strpbrk.c: Likewise.
37853         * lib/unistr/u32-strrchr.c: Likewise.
37854         * lib/unistr/u32-strspn.c: Likewise.
37855         * lib/unistr/u32-strstr.c: Likewise.
37856         * lib/unistr/u32-strtok.c: Likewise.
37857         * lib/unistr/u32-to-u16.c: Likewise.
37858         * lib/unistr/u32-to-u8.c: Likewise.
37859         * lib/unistr/u32-uctomb.c: Likewise.
37860         * lib/unistr/u8-check.c: Likewise.
37861         * lib/unistr/u8-chr.c: Likewise.
37862         * lib/unistr/u8-cmp.c: Likewise.
37863         * lib/unistr/u8-cpy-alloc.c: Likewise.
37864         * lib/unistr/u8-cpy.c: Likewise.
37865         * lib/unistr/u8-endswith.c: Likewise.
37866         * lib/unistr/u8-mblen.c: Likewise.
37867         * lib/unistr/u8-mbsnlen.c: Likewise.
37868         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37869         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37870         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37871         * lib/unistr/u8-mbtouc.c: Likewise.
37872         * lib/unistr/u8-mbtoucr.c: Likewise.
37873         * lib/unistr/u8-move.c: Likewise.
37874         * lib/unistr/u8-next.c: Likewise.
37875         * lib/unistr/u8-prev.c: Likewise.
37876         * lib/unistr/u8-set.c: Likewise.
37877         * lib/unistr/u8-startswith.c: Likewise.
37878         * lib/unistr/u8-stpcpy.c: Likewise.
37879         * lib/unistr/u8-stpncpy.c: Likewise.
37880         * lib/unistr/u8-strcat.c: Likewise.
37881         * lib/unistr/u8-strchr.c: Likewise.
37882         * lib/unistr/u8-strcmp.c: Likewise.
37883         * lib/unistr/u8-strcpy.c: Likewise.
37884         * lib/unistr/u8-strcspn.c: Likewise.
37885         * lib/unistr/u8-strdup.c: Likewise.
37886         * lib/unistr/u8-strlen.c: Likewise.
37887         * lib/unistr/u8-strmblen.c: Likewise.
37888         * lib/unistr/u8-strmbtouc.c: Likewise.
37889         * lib/unistr/u8-strncat.c: Likewise.
37890         * lib/unistr/u8-strncmp.c: Likewise.
37891         * lib/unistr/u8-strncpy.c: Likewise.
37892         * lib/unistr/u8-strnlen.c: Likewise.
37893         * lib/unistr/u8-strpbrk.c: Likewise.
37894         * lib/unistr/u8-strrchr.c: Likewise.
37895         * lib/unistr/u8-strspn.c: Likewise.
37896         * lib/unistr/u8-strstr.c: Likewise.
37897         * lib/unistr/u8-strtok.c: Likewise.
37898         * lib/unistr/u8-to-u16.c: Likewise.
37899         * lib/unistr/u8-to-u32.c: Likewise.
37900         * lib/unistr/u8-uctomb-aux.c: Likewise.
37901         * lib/unistr/u8-uctomb.c: Likewise.
37902         * lib/unitypes.h: Likewise.
37903         * lib/uniwidth.h: Likewise.
37904         * lib/uniwidth/cjk.h: Likewise.
37905         * lib/uniwidth/u16-strwidth.c: Likewise.
37906         * lib/uniwidth/u16-width.c: Likewise.
37907         * lib/uniwidth/u32-strwidth.c: Likewise.
37908         * lib/uniwidth/u32-width.c: Likewise.
37909         * lib/uniwidth/u8-strwidth.c: Likewise.
37910         * lib/uniwidth/u8-width.c: Likewise.
37911         * lib/uniwidth/width.c: Likewise.
37912
37913 2007-10-07  Bruno Haible  <bruno@clisp.org>
37914
37915         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37916         The file is still under LGPL (see modules/inttypes).
37917
37918 2007-10-06  Bruno Haible  <bruno@clisp.org>
37919
37920         * modules/trunc (Dependencies): Add 'extensions'.
37921         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37922         Reported by Ben Pfaff <blp@gnu.org>.
37923
37924 2007-10-06  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/freopen-tests: New file.
37927         * tests/test-freopen.c: New file.
37928
37929         * modules/fopen-tests: New file.
37930         * tests/test-fopen.c: New file.
37931
37932         * modules/fopen: New file.
37933         * lib/fopen.c: New file.
37934         * m4/fopen.m4: New file.
37935         * modules/freopen: New file.
37936         * lib/freopen.c: New file.
37937         * m4/freopen.m4: New file.
37938         * lib/stdio.in.h (fopen, freopen): New declarations.
37939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
37940         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37941         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
37942         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37943         * doc/functions/fopen.texi: Mention the 'fopen' module.
37944         * doc/functions/freopen.texi: Mention the 'freopen' module.
37945
37946 2007-10-06  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/open-tests: New file.
37949         * tests/test-open.c: New file.
37950
37951         * modules/open: New file.
37952         * lib/open.c: New file.
37953         * m4/open.m4: New file.
37954         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
37955         lib/open.c does.
37956         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
37957         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
37958         macros.
37959         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37960         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
37961         REPLACE_OPEN.
37962         * doc/functions/open.texi: Mention the 'open' module.
37963
37964 2007-10-04  Bruno Haible  <bruno@clisp.org>
37965
37966         * modules/ceill-tests: New file.
37967         * tests/test-ceill.c: New file.
37968
37969         * modules/ceill: New file.
37970         * lib/ceill.c: Replace entire file.
37971         * m4/ceill.m4: New file.
37972         * lib/math.in.h (ceill): Replace declaration.
37973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
37974         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
37975         * doc/functions/ceill.texi: Mention the 'ceill' module.
37976         * modules/mathl (Files): Remove lib/ceill.c.
37977         (Depends-on): Add ceill.
37978
37979 2007-10-04  Bruno Haible  <bruno@clisp.org>
37980
37981         * modules/ceilf-tests: New file.
37982         * tests/test-ceilf.c: New file.
37983
37984         * modules/ceilf: New file.
37985         * lib/ceil.c: New file.
37986         * lib/ceilf.c: New file.
37987         * m4/ceilf.m4: New file.
37988         * lib/math.in.h (ceilf): New declaration.
37989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
37990         HAVE_DECL_CEILF.
37991         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
37992         HAVE_DECL_CEILF.
37993         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
37994
37995 2007-10-04  Bruno Haible  <bruno@clisp.org>
37996
37997         * modules/floorl-tests: New file.
37998         * tests/test-floorl.c: New file.
37999
38000         * modules/floorl: New file.
38001         * lib/floorl.c: Replace entire file.
38002         * m4/floorl.m4: New file.
38003         * lib/math.in.h (floorl): Replace declaration.
38004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38005         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38006         * doc/functions/floorl.texi: Mention the 'floorl' module.
38007         * modules/mathl (Files): Remove lib/floorl.c.
38008         (Depends-on): Add floorl.
38009
38010 2007-10-04  Bruno Haible  <bruno@clisp.org>
38011
38012         * modules/floorf-tests: New file.
38013         * tests/test-floorf.c: New file.
38014
38015         * modules/floorf: New file.
38016         * lib/floor.c: New file.
38017         * lib/floorf.c: New file.
38018         * m4/floorf.m4: New file.
38019         * lib/math.in.h (floorf): New declaration.
38020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38021         HAVE_DECL_FLOORF.
38022         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38023         HAVE_DECL_FLOORF.
38024         * doc/functions/floorf.texi: Mention the 'floorf' module.
38025
38026 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38027             Bruno Haible  <bruno@clisp.org>
38028
38029         Advertise for the Git server instead of the CVS server.
38030         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38031         repository instead of the CVS one.
38032         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38033         about all VCS systems generically.
38034         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38035
38036 2007-10-04  Bruno Haible  <bruno@clisp.org>
38037
38038         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38039         means.
38040         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38041
38042 2007-10-04  Bruno Haible  <bruno@clisp.org>
38043
38044         * modules/truncl-tests: New file.
38045         * tests/test-truncl.c: New file.
38046
38047         * modules/truncl: New file.
38048         * lib/truncl.c: New file.
38049         * m4/truncl.m4: New file.
38050         * lib/math.in.h (truncl): New declaration.
38051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38052         HAVE_DECL_TRUNCL.
38053         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38054         HAVE_DECL_TRUNCL.
38055         * doc/functions/truncl.texi: Mention the 'truncl' module.
38056
38057 2007-10-04  Bruno Haible  <bruno@clisp.org>
38058
38059         * modules/truncf-tests: New file.
38060         * tests/test-truncf.c: New file.
38061
38062         * modules/truncf: New file.
38063         * lib/trunc.c: Make paramerizable through USE_* macros.
38064         * lib/truncf.c: New file.
38065         * m4/truncf.m4: New file.
38066         * lib/math.in.h (truncf): New declaration.
38067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38068         HAVE_DECL_TRUNCF.
38069         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38070         HAVE_DECL_TRUNCF.
38071         * doc/functions/truncf.texi: Mention the 'truncf' module.
38072
38073 2007-10-03  Bruno Haible  <bruno@clisp.org>
38074
38075         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38076         augmentation also for tests modules.
38077         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38078         * modules/atexit-tests (Makefile.am): Likewise.
38079         * modules/binary-io-tests (Makefile.am): Likewise.
38080         * modules/c-strcase-tests (Makefile.am): Likewise.
38081         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38082         * modules/canonicalize-tests (Makefile.am): Likewise.
38083         * modules/closein-tests (Makefile.am): Likewise.
38084         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38085         * modules/freadahead-tests (Makefile.am): Likewise.
38086         * modules/fseek-tests (Makefile.am): Likewise.
38087         * modules/fseeko-tests (Makefile.am): Likewise.
38088         * modules/ftell-tests (Makefile.am): Likewise.
38089         * modules/ftello-tests (Makefile.am): Likewise.
38090         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38091         * modules/isnanl-tests (Makefile.am): Likewise.
38092         * modules/lseek-tests (Makefile.am): Likewise.
38093         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38094         * modules/mbscasestr-tests (Makefile.am): Likewise.
38095         * modules/mbschr-tests (Makefile.am): Likewise.
38096         * modules/mbscspn-tests (Makefile.am): Likewise.
38097         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38098         * modules/mbspbrk-tests (Makefile.am): Likewise.
38099         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38100         * modules/mbsrchr-tests (Makefile.am): Likewise.
38101         * modules/mbsspn-tests (Makefile.am): Likewise.
38102         * modules/mbsstr-tests (Makefile.am): Likewise.
38103         * modules/printf-posix-tests (Makefile.am): Likewise.
38104         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38105         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38106         * modules/tsearch-tests (Makefile.am): Likewise.
38107         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38108         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38109         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38110         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38111         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38112         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38113         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38114         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38115         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38116         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38117         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38118         * modules/xstrtol-tests (Makefile.am): Likewise.
38119         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38120         * modules/yesno-tests (Makefile.am): Likewise.
38121
38122 2007-10-03  Bruno Haible  <bruno@clisp.org>
38123
38124         * modules/trunc-tests: New file.
38125         * tests/test-trunc.c: New file.
38126
38127         * modules/trunc: New file.
38128         * lib/trunc.c: New file.
38129         * m4/trunc.m4: New file.
38130         * lib/math.in.h (trunc): New declaration.
38131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38132         HAVE_DECL_TRUNC.
38133         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38134         HAVE_DECL_TRUNC.
38135         * doc/functions/trunc.texi: Mention the 'trunc' module.
38136
38137 2007-10-03  Bruno Haible  <bruno@clisp.org>
38138
38139         * tests/test-fpending.c: New file, mostly copied
38140         from coreutils/lib/t-fpending.c.
38141         * modules/fpending-tests: New file.
38142
38143 2007-10-03  Bruno Haible  <bruno@clisp.org>
38144
38145         Port the stdio extensions to QNX (untested).
38146         * lib/fseterr.c (fseterr): Add support for QNX.
38147         * lib/fbufmode.c (fbufmode): Likewise.
38148         * lib/freadable.c (freadable): Likewise.
38149         * lib/fwritable.c (fwritable): Likewise.
38150         * lib/freading.c (freading): Likewise.
38151         * lib/fwriting.c (fwriting): Likewise.
38152         * lib/freadahead.c (freadahed): Likewise.
38153         * lib/fpurge.c (fpurge): Likewise.
38154         * lib/fseeko.c (rpl_fseeko): Likewise.
38155
38156 2007-10-03  Bruno Haible  <bruno@clisp.org>
38157             Jim Meyering  <jim@meyering.net>
38158             Eric Blake  <ebb9@byu.net>
38159
38160         * doc/relocatable.texi: Use @command instead of @program.
38161
38162 2007-10-02  Jim Meyering  <jim@meyering.net>
38163
38164         Perform one more "_.h" -> ".in.h" substitution.
38165         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38166         instead of unistd_.h here, too.
38167
38168 2007-10-01  Bruno Haible  <bruno@clisp.org>
38169
38170         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38171         Needed for the alloca-opt module.
38172
38173 2007-09-30  Bruno Haible  <bruno@clisp.org>
38174
38175         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38176         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38177         alloca_.h.
38178         * lib/argz.in.h: Renamed from lib/argz_.h.
38179         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38180         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38181         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38182         byteswap_.h.
38183         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38184         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38185         dirent_.h.
38186         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38187         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38188         fcntl_.h.
38189         * lib/float.in.h: Renamed from lib/float_.h.
38190         * modules/float (Files, Makefile.am): Use float.in.h instead of
38191         float_.h.
38192         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38193         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38194         fnmatch_.h.
38195         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38196         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38197         getopt_.h.
38198         * lib/glob.in.h: Renamed from lib/glob_.h.
38199         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38200         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38201         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38202         iconv_.h.
38203         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38204         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38205         inttypes_.h.
38206         * lib/locale.in.h: Renamed from lib/locale_.h.
38207         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38208         locale_.h.
38209         * lib/math.in.h: Renamed from lib/math_.h.
38210         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38211         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38212         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38213         of netinet_in_.h. Add dependency.
38214         * lib/poll.in.h: Renamed from lib/poll_.h.
38215         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38216         * lib/search.in.h: Renamed from lib/search_.h.
38217         * modules/search (Files, Makefile.am): Use search.in.h instead of
38218         search_.h.
38219         * lib/signal.in.h: Renamed from lib/signal_.h.
38220         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38221         _signal.h.
38222         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38223         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38224         stdbool_.h.
38225         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38226         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38227         stdint_.h.
38228         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38229         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38230         stdio_.h.
38231         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38232         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38233         stdlib_.h.
38234         * lib/string.in.h: Renamed from lib/string_.h.
38235         * modules/string (Files, Makefile.am): Use string.in.h instead of
38236         string_.h.
38237         * doc/gnulib-tool.texi (Initial import): Update.
38238         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38239         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38240         of sys_select_.h. Add dependency.
38241         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38242         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38243         of sys_socket_.h.
38244         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38245         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38246         sys_stat_.h.
38247         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38248         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38249         sys_time_.h.
38250         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38251         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38252         sysexits_.h.
38253         * lib/time.in.h: Renamed from lib/time_.h.
38254         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38255         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38256         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38257         unistd_.h.
38258         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38259         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38260         wchar_.h.
38261         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38262         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38263         wctype_.h.
38264         * build-aux/bootstrap (slurp): Update.
38265         * lib/.cppi-disable: Update.
38266
38267 2007-09-30  Bruno Haible  <bruno@clisp.org>
38268
38269         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38270         Needed on BeOS.
38271
38272 2007-09-30  Bruno Haible  <bruno@clisp.org>
38273
38274         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38275
38276 2007-09-29  Bruno Haible  <bruno@clisp.org>
38277
38278         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38279
38280 2007-09-29  Bruno Haible  <bruno@clisp.org>
38281
38282         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38283         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38284         * build-aux/install-reloc: Compile also areadlink.c.
38285         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38286
38287 2007-09-29  Bruno Haible  <bruno@clisp.org>
38288
38289         * gnulib-tool (func_emit_initmacro_done): Indentation.
38290
38291 2007-09-29  Bruno Haible  <bruno@clisp.org>
38292
38293         * README: Add CVS checkout update instructions.
38294         Info from Bob Proulx <bob@proulx.com>.
38295
38296 2007-09-28  Eric Blake  <ebb9@byu.net>
38297
38298         Provide move-if-change.
38299         * build-aux/move-if-change: New file, based on best practice
38300         rather than any canonical upstream location.
38301
38302 2007-09-28  Jim Meyering  <jim@meyering.net>
38303
38304         Fix canonicalize loop-detection corner case.
38305         Do not attempt to stat the symlink values stored via seen_triple.
38306         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38307         on linux-2.6.18, (but not 2.6.22).
38308         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38309         triple_compare.  The former compares dev,ino,filename, while the latter
38310         would actually stat dirname(filename) when dev and ino were equal.
38311         * lib/hash-triple.c: Install <string.h>.
38312         (STREQ): Define.
38313         (triple_compare_ino_str): New function.
38314         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38315
38316 2007-09-28  Eric Blake  <ebb9@byu.net>
38317
38318         Enforce that AC_REPLACE_FUNCS files exist.
38319         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38320         override check for typos.
38321
38322         Fix test-closein on Solaris 10.
38323         * tests/test-closein.c (main): Don't assume stdin can be inherited
38324         closed on all systems.
38325         * tests/test-closein.sh: Likewise.
38326         Reported by Piotr Tarnowski.
38327
38328 2007-09-28  Jim Meyering  <jim@meyering.net>
38329
38330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38331
38332 2007-09-27  Jim Meyering  <jim@meyering.net>
38333
38334         canonicalize: Avoid a false-positive cycle failure.
38335         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38336         Sort.  Remove cycle-check.
38337         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38338         not cycle-check.h.
38339         (seen_triple): New function.
38340         (canonicalize_filename_mode): Use it instead of cycle-check.
38341         * tests/test-canonicalize.c: Add a test for this bug.
38342         * tests/test-canonicalize.sh: Set up and run the test.
38343
38344         New module, file-set, from coreutils.
38345         * modules/file-set: Define it.
38346         * lib/file-set.c, lib/file-set.h: Implement.
38347
38348         New module, hash-triple, from coreutils.
38349         * modules/hash-triple: Define it.
38350         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38351
38352 2007-09-25  Eric Blake  <ebb9@byu.net>
38353
38354         Fix strerror on Interix.
38355         * lib/string_.h (strerror): Declare replacement.
38356         * doc/functions/strerror.texi (strerror): Document the Interix
38357         shortcoming.
38358         * modules/string (Makefile.am): Support new hooks.
38359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38360         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38361         gl_FUNC_STRERROR_SEPARATE.
38362         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38363         * lib/strerror.c (rpl_strerror): Provide replacement.
38364         * modules/strerror (Depends-on): Add string.
38365         (configure.ac): Detect use of module.
38366         * tests/test-strerror.c: New file.
38367         * modules/strerror-tests: New test module.
38368         * modules/argp (Depends-on): Add strerror.
38369         * modules/error (Depends-on): Likewise.
38370         Reported by Martin Koeppe.
38371
38372 2007-09-24  Bruno Haible  <bruno@clisp.org>
38373
38374         * README: Update git instructions.
38375
38376 2007-09-24  Eric Blake  <ebb9@byu.net>
38377
38378         Revert fpending breakage from 2007-09-08.
38379         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38380         __fpending.c.
38381
38382 2007-09-24  Jim Meyering  <jim@meyering.net>
38383
38384         filenamecat.c: Add a test.
38385         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38386         showing how the function works when DIR is the empty string.
38387
38388 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38389
38390         * tests/test-canonicalize.sh: Turn on executable bit.
38391
38392 2007-09-19  Eric Blake  <ebb9@byu.net>
38393
38394         * README: Update CVS instructions.
38395
38396 2007-09-18  Bruno Haible  <bruno@clisp.org>
38397
38398         * modules/areadlink: New file.
38399         * lib/areadlink.h (areadlink): New declaration.
38400         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38401
38402 2007-09-17  Jim Meyering  <jim@meyering.net>
38403
38404         * lib/savewd.c (ESTALE) [!defined]: Define.
38405         Reported to be required on Interix by Martin Koeppe.
38406
38407 2007-09-17  Bruno Haible  <bruno@clisp.org>
38408
38409         * gnulib-tool (func_version): Use $version.
38410
38411 2007-09-16  Bruno Haible  <bruno@clisp.org>
38412
38413         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38414         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38415         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38416         Reported by Greg Schafer <gschafer@zip.com.au>.
38417
38418 2007-09-15  Bruno Haible  <bruno@clisp.org>
38419
38420         * gnulib-tool (sed): Try a little harder to make bash understand the
38421         alias.
38422         Reported by Bruce Korb <bruce.korb@gmail.com>.
38423
38424 2007-09-13  Eric Blake  <ebb9@byu.net>
38425
38426         * ChangeLog: Remove conflict markers.
38427
38428 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38429
38430         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38431         Reported by Bruno Haible <bruno@clisp.org>.
38432
38433 2007-09-12  Bruno Haible  <bruno@clisp.org>
38434
38435         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38436         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38437         is not defined.
38438
38439 2007-09-12  Eric Blake  <ebb9@byu.net>
38440
38441         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38442         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38443         Autoconf definition.
38444         * modules/euidaccess (Depends-on): Add extensions, for
38445         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38446         * modules/fnmatch (Depends-on): Likewise.
38447         * modules/getaddrinfo (Depends-on): Likewise.
38448         * modules/getdelim (Depends-on): Likewise.
38449         * modules/getline (Depends-on): Likewise.
38450         * modules/getsubopt (Depends-on): Likewise.
38451         * modules/gettext (Depends-on): Likewise.
38452         * modules/group-member (Depends-on): Likewise.
38453         * modules/mbchar (Depends-on): Likewise.
38454         * modules/memmem (Depends-on): Likewise.
38455         * modules/mempcpy (Depends-on): Likewise.
38456         * modules/memrchr (Depends-on): Likewise.
38457         * modules/pagealign_alloc (Depends-on): Likewise.
38458         * modules/readutmp (Depends-on): Likewise.
38459         * modules/stpcpy (Depends-on): Likewise.
38460         * modules/stpncpy (Depends-on): Likewise.
38461         * modules/strchrnul (Depends-on): Likewise.
38462         * modules/strndup (Depends-on): Likewise.
38463         * modules/strsep (Depends-on): Likewise.
38464         * modules/strverscmp (Depends-on): Likewise.
38465         * modules/vasprintf (Depends-on): Likewise.
38466         * modules/wcwidth (Depends-on): Likewise.
38467         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38468         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38469         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38470         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38472         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38473         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38474         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38475         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38476         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38478         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38479         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38480         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38481         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38482         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38483         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38484         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38485         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38486         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38487         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38488         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38489         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38490         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38491         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38493         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38494         so that lock.m4 can be used in gettext without extensions module.
38495
38496 2007-09-11  Bruno Haible  <bruno@clisp.org>
38497
38498         * m4/isc-posix.m4: Remove file.
38499         Suggested by Eric Blake.
38500
38501 2007-09-11  Eric Blake  <ebb9@byu.net>
38502
38503         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38504
38505 2007-09-10  Bruno Haible  <bruno@clisp.org>
38506
38507         * posix-modules: Fix typo in error message.
38508         Reported by Matt <mkraai@beckman.com>.
38509
38510 2007-09-09  Bruno Haible  <bruno@clisp.org>
38511
38512         * doc/functions/getdelim.texi: Update list of platforms lacking the
38513         function.
38514         * doc/functions/getline.texi: Likewise.
38515
38516 2007-09-09  Jim Meyering  <jim@meyering.net>
38517
38518         * lib/hash.c (hash_initialize): Detect calloc failure.
38519         Reported by Bruno Haible.
38520
38521 2007-09-09  Bruno Haible  <bruno@clisp.org>
38522
38523         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38524         malloc or realloc fails.
38525
38526 2007-09-09  Bruno Haible  <bruno@clisp.org>
38527
38528         * modules/getcwd (Depends-on): Add malloc-posix.
38529         * modules/glob (Depends-on): Likewise.
38530         * modules/putenv (Depends-on): Likewise.
38531         * modules/strdup (Depends-on): Likewise.
38532         * modules/getdelim (Depends-on): Add realloc-posix.
38533         * modules/read-file (Depends-on): Likewise.
38534
38535 2007-09-09  Bruno Haible  <bruno@clisp.org>
38536
38537         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38538         (gl_FUNC_MALLOC_POSIX): Require it.
38539         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38540         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38541         * modules/realloc (Files): Add m4/malloc.m4.
38542         * modules/calloc (Files): Likewise.
38543
38544 2007-09-09  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/malloc-posix: New file.
38547         * modules/malloc (Depends-on): Add malloc-posix.
38548         * lib/malloc.c: Include errno.h.
38549         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38550         and a POSIX-compatible malloc into a single function. Set ENOMEM
38551         when returning NULL.
38552         * m4/malloc.m4: New file.
38553         * doc/functions/malloc.texi: Mention the malloc-posix module.
38554         * lib/stdlib_.h (malloc): New declaration.
38555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38556         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38557         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38558         and HAVE_MALLOC_POSIX.
38559
38560 2007-09-09  Bruno Haible  <bruno@clisp.org>
38561
38562         * modules/realloc-posix: New file.
38563         * modules/realloc (Depends-on): Add realloc-posix.
38564         * lib/realloc.c: Include errno.h.
38565         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38566         and a POSIX-compatible realloc into a single function. Set ENOMEM
38567         when returning NULL.
38568         * m4/realloc.m4: New file.
38569         * doc/functions/realloc.texi: Mention the realloc-posix module.
38570         * lib/stdlib_.h (realloc): New declaration.
38571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38572         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38573         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38574         and HAVE_REALLOC_POSIX.
38575
38576 2007-09-09  Bruno Haible  <bruno@clisp.org>
38577
38578         * modules/calloc-posix: New file.
38579         * modules/calloc (Depends-on): Add calloc-posix.
38580         * lib/calloc.c: Include errno.h.
38581         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38582         and a POSIX-compatible calloc into a single function. Set ENOMEM
38583         when returning NULL.
38584         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38585         * doc/functions/calloc.texi: Mention the calloc-posix module.
38586         * lib/stdlib_.h (calloc): New declaration.
38587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38588         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38589         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38590         and HAVE_CALLOC_POSIX.
38591
38592 2007-09-09  Bruno Haible  <bruno@clisp.org>
38593
38594         Allow for modules to show an arbitrary notice.
38595         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38596         * gnulib-tool: New option --extract-notice.
38597         (func_usage): Document it.
38598         (sed_extract_prog): Update.
38599         (func_get_notice): New function.
38600         (func_modules_notice): New function.
38601         (func_import, func_create_testdir): Invoke it.
38602         Suggested by Jim Meyering.
38603
38604 2007-09-09  Bruno Haible  <bruno@clisp.org>
38605
38606         * gnulib-tool: New options --verbose, --quiet.
38607         (func_usage): Document them.
38608         (verbose): New variable.
38609         (func_execute_command): New function.
38610         (func_import): Don't show the module list and the file list if
38611         $verbose < 0.
38612         (func_create_testdir): Likewise. Use func_execute_command.
38613         (func_create_megatestdir): Use func_execute_command.
38614
38615 2007-09-08  Bruno Haible  <bruno@clisp.org>
38616
38617         * gnulib-tool (func_import): Prefer rsync over wget when available,
38618         for fetching the PO files.
38619
38620 2007-09-08  Bruno Haible  <bruno@clisp.org>
38621
38622         * posix-modules: New file. Portions copied from gnulib-tool.
38623         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38624
38625 2007-09-08  Jim Meyering  <jim@meyering.net>
38626
38627         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38628         * lib/fpending.h: Rename from __fpending.h.
38629         * lib/fpending.c: Rename from __fpending.c.
38630         Include "fpending.h", not "__fpending.h".
38631         * lib/__fpending.h, lib/__fpending.c: Remove files.
38632         * modules/fpending (Files): Reflect new file names.
38633         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38634
38635 2007-09-08  Bruno Haible  <bruno@clisp.org>
38636
38637         * m4/inttypes-h.m4: Remove stub file.
38638
38639 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38640
38641         * doc/headers/stdint.texi: Discuss #include_next issue.
38642
38643 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38644
38645         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38646
38647 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38648
38649         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38650         in variable name.
38651
38652 2007-09-03  Jim Meyering  <jim@meyering.net>
38653
38654         New module: git-version-gen.
38655         * modules/git-version-gen: New file.
38656
38657         Import changes from coreutils for bootstrap script.
38658
38659         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38660
38661         bootstrap: uses rsync to download the .po files
38662         * build-aux/bootstrap (po_download_command_format): New global.
38663         (download_po_files): Use rsync.
38664         (update_po_files): Don't remove .po files after download,
38665         so future rsync runs can take advantage of the copies.
38666
38667         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38668
38669         Solve the unnecessary-.po-file-regeneration problem once and for all.
38670         * build-aux/bootstrap (download_po_files): New function, renamed from
38671         get_translations.  Now, downloads, but doesn't update LINGUAS.
38672         (update_po_files): New function.
38673
38674         bootstrap: Ignore more.
38675         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38676         uniwidth to e.g., lib/.gitignore.
38677         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38678
38679         * build-aux/bootstrap: New setting: vc_ignore.
38680         (insert_sorted_if_absent): Create $file if absent.
38681         Adapt to new, possibly empty, list: $vc_ignore.
38682
38683         bootstrap: generate more ignorable names
38684         * build-aux/bootstrap (slurp): When generating ignorable names,
38685         also map .sin to .sed, .gperf to .c, and .y to .c.
38686
38687 2007-09-03  Jim Meyering  <jim@meyering.net>
38688
38689         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38690         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38691
38692 2007-09-02  Bruno Haible  <bruno@clisp.org>
38693
38694         Fix mis-recognition of 'mcs' on QNX 6.
38695         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38696         output contains the string "Mono".
38697         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38698         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38699
38700 2007-09-01  Bruno Haible  <bruno@clisp.org>
38701
38702         Fix collision between uniwidth/* and linebreak modules.
38703         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38704         u32_width): Remove declarations.
38705         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38706         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38707         streq3, streq2, streq1, streq0): Remove functions.
38708         (STREQ): Remove macro.
38709         (is_cjk_encoding): Remove function.
38710         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38711         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38712         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38713         * NEWS: Document the change.
38714
38715 2007-09-01  Bruno Haible  <bruno@clisp.org>
38716
38717         * lib/streq.h: Add double-inclusion guard.
38718
38719 2007-09-01  Karl Berry  <karl@gnu.org>
38720
38721         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38722
38723 2007-08-28  Jim Meyering  <jim@meyering.net>
38724
38725         Rename mreadlink_with_size to areadlink_with_size.
38726         * NEWS: Document the change.
38727         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38728         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38729         * lib/mreadlink.h: Rename this to...
38730         * lib/areadlink.h: ...this.
38731         * modules/mreadlink-with-size: Rename this to...
38732         * modules/areadlink-with-size: ...this.
38733         * lib/canonicalize.c: Reflect the renaming.
38734         * modules/canonicalize: Likewise.
38735
38736 2007-08-26  Bruno Haible  <bruno@clisp.org>
38737
38738         * gnulib-tool (func_import): When deciding which files to remove,
38739         consider also dangling symbolic links.
38740         Reported by Eric Blake.
38741
38742 2007-08-26  Bruno Haible  <bruno@clisp.org>
38743
38744         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38745
38746 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38747
38748         * lib/readline.c: Don't include getline.h, the prototype is now
38749         found in stdio.h.
38750
38751 2007-08-23  Jim Meyering  <jim@meyering.net>
38752
38753         Getdelim touchup.
38754         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38755         around the funlockfile call, since funlockfile never sets errno.
38756         Don't set errno upon failed realloc.
38757
38758 2007-08-22  Eric Blake  <ebb9@byu.net>
38759
38760         Getline touchups.
38761         * lib/getdelim.c (getdelim): Revert regression that required *n to
38762         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38763         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38764         getdelim, rather than whether implementation is missing.
38765         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38766         * lib/stdio_.h (getline): Also declare if replacement is
38767         required.
38768         * doc/functions/getdelim.texi: New file.
38769         * doc/functions/getline.texi: Likewise.
38770         * doc/gnulib.texi (Function Substitutes): Add new files.
38771         Reported by Bruno Haible.
38772
38773 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38774
38775         * users.txt: Add Guile.
38776
38777 2007-08-22  Eric Blake  <ebb9@byu.net>
38778
38779         * tests/test-getdelim.c (main): Use remove, not unlink.
38780         * tests/test-getline.c (main): Likewise.
38781
38782         Move getline and getdelim into stdio.h, per POSIX 200x.
38783         * modules/getline (Files): Remove getline.h.
38784         (Depends-on): Add stdio.
38785         (configure.ac): Add module indicator.
38786         * modules/getdelim (Files): Remove getdelim.h.
38787         (Depends-on): Add stdio.
38788         (configure.ac): Add module indicator.
38789         * modules/stdio (Makefile.am): Work with new indicators.
38790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38791         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38792         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38793         * lib/getdelim.h: Delete.
38794         * lib/getline.h: Delete.
38795         * lib/stdio_.h (getdelim, getline): Declare.
38796         * modules/getdelim-tests: New module.
38797         * modules/getline-tests: Likewise.
38798         * tests/test-getdelim.c: New file.
38799         * tests/test-getline.c: Likewise.
38800         * NEWS: Document the change.
38801         * lib/getline.c: Update choice of header.
38802         * lib/csharpcomp.c: Likewise.
38803         * lib/getpass.c: Likewise.
38804         * lib/javacomp.c: Likewise.
38805         * lib/javaversion.c: Likewise.
38806         * lib/yesno.c: Likewise.
38807         * lib/getdelim.c: Likewise.
38808         (getdelim): Set errno on failure, and avoid memory leak.
38809
38810 2007-08-19  Bruno Haible  <bruno@clisp.org>
38811
38812         * modules/closein (Depends-on): Add freadahead.
38813         * lib/closein.c: Include freadahead.h.
38814         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38815         is zero.
38816
38817 2007-08-19  Bruno Haible  <bruno@clisp.org>
38818
38819         * modules/freadahead-tests: New file.
38820         * tests/test-freadahead.sh: New file.
38821         * tests/test-freadahead.c: New file.
38822
38823         * modules/freadahead: New file.
38824         * lib/freadahead.h: New file.
38825         * lib/freadahead.c: New file.
38826         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38827         fbufmode, fpurge, freadable, fwritable.
38828
38829 2007-08-19  Eric Blake  <ebb9@byu.net>
38830
38831         Test yesno in combination with closein.
38832         * lib/yesno.c (yesno): Document use of stdin.
38833         * modules/yesno-tests (Files): New module.
38834         * tests/test-yesno.c (main): New file.
38835         * tests/test-yesno.sh: Likewise.
38836
38837 2007-08-19  Bruno Haible  <bruno@clisp.org>
38838
38839         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38840         * lib/fseeko.c (rpl_fseeko): Likewise.
38841         * lib/fseterr.c (fseterr): Likewise.
38842
38843 2007-08-19  Bruno Haible  <bruno@clisp.org>
38844
38845         * tests/test-lseek.c (main): Disable a test for BeOS.
38846         * doc/functions/lseek.texi: Document the BeOS bug.
38847
38848 2007-08-19  Bruno Haible  <bruno@clisp.org>
38849             Eric Blake  <ebb9@byu.net>
38850
38851         * lib/lseek.c: Include <sys/stat.h>.
38852         (rpl_lseek): Add workaround code also for Unix platforms.
38853         Needed for BeOS.
38854         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38855         * doc/functions/lseek.texi: Document BeOS definiency.
38856
38857 2007-08-18  Bruno Haible  <bruno@clisp.org>
38858
38859         * modules/fstrcmp-tests: New file.
38860         * tests/test-fstrcmp.c: New file.
38861
38862 2007-08-18  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/fstrcmp: New file, from GNU gettext with modifications.
38865         * lib/fstrcmp.h: New file, from GNU gettext.
38866         * lib/fstrcmp.c: New file, from GNU gettext.
38867         * MODULES.html.sh (String handling): Add fstrcmp.
38868
38869 2007-08-18  Bruno Haible  <bruno@clisp.org>
38870
38871         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38872         'bool'.
38873         (diag, compareseq): Remove const from the ctxt argument.
38874         (USE_HEURISTIC): Undefine at the end.
38875
38876 2007-08-18  Jim Meyering  <jim@meyering.net>
38877
38878         New file: lib/idcache.h
38879         * NEWS: Mention the addition.
38880         * modules/idcache (Files): Add lib/idcache.h
38881         * lib/idcache.c: Include "idcache.h".
38882         Don't include <sys/types.h>.
38883         Add a FIXME comment.
38884         Move file-scoped "static" declarations to the top.
38885         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38886
38887 2007-08-17  Bruno Haible  <bruno@clisp.org>
38888         and Paul Eggert  <eggert@cs.ucla.edu>
38889
38890         * MODULES.html.sh: Add diffseq.
38891         * modules/diffseq: New file.
38892         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38893         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38894
38895 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38896
38897         Import changes from coreutils for bootstrap script.
38898
38899         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38900
38901         * build-aux/bootstrap (slurp): Work even in environments where
38902         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38903         current code does not slurp files whose names start with ".", and
38904         this looks like it might be a troublesome area.
38905
38906         2007-07-11  Jim Meyering  <jim@meyering.net>
38907
38908         If there's a GPL vN copyright comment, require that N == 3.
38909
38910         2007-07-08  Jim Meyering  <jim@meyering.net>
38911
38912         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38913         * build-aux/bootstrap (mam_template): Move definition out of loop.
38914
38915         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38916
38917         * build-aux/bootstrap (symlink_to_dir): Rename function from
38918         symlink_to_gnulib.  Add a directory parameter.  Update all
38919         callers.
38920         (cp_mark_as_generated): Also check for -- and link to -- files in
38921         gl/.
38922
38923         2007-07-08  Jim Meyering  <jim@meyering.net>
38924
38925         Adapt to deeper hierarchy in gnulib.
38926         * build-aux/bootstrap (symlink_to_dir): If the destination
38927         directory doesn't exist, create it. This is required at least for
38928         "lib/uniwidth/cjk.h".
38929
38930         2007-05-15  Jim Meyering  <jim@meyering.net>
38931
38932         * build-aux/bootstrap: Now that generated Makefile.am files
38933         are no longer under version control, they must be created at
38934         bootstrap time.
38935
38936 2007-08-14  Ben Pfaff  <blp@gnu.org>
38937
38938         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
38939
38940 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38941
38942         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
38943         given the changes below.
38944         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
38945         even on hosts that have padding bits beyond the supported 64.
38946
38947 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38948
38949         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
38950         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
38951         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
38952         depends on it.
38953         (xstrtol_error): Remove.
38954         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
38955         but with a different signature.
38956         (ATTRIBUTE_NORETURN, __attribute__): New macros.
38957         * lib/xstrtol-error.c: Include exitfail.h.
38958         (xstrtol_fatal): New function, with a different signature from the
38959         old xstrtol_error, so that the caller need not worry about passing
38960         in an exit status, or about storage management of the option argument.
38961         (xstrtol_error): Now a static function.  Redo signature to
38962         implement xstrtol_fatal.  Output the correct number of hyphens in
38963         front of the option so that the caller need not worry about
38964         storage management.
38965         (N_): New macro.
38966         (_): Remove; not used now.
38967         * modules/xstrtol: Depend on getopt.
38968         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
38969         of old STRTOL_FATAL_ERROR macro.
38970         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
38971         of test program.
38972         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
38973         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
38974
38975 2007-08-08  Eric Blake  <ebb9@byu.net>
38976
38977         * lib/xstrtol-error.c: Add missing include.
38978
38979         Move xstrtol messages into gnulib domain, when --pobase is used.
38980         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
38981         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
38982         * modules/xstrtol (Files): Distribute new file.
38983         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
38984         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
38985         * tests/test-xstrtol.c: ...into new file.
38986         * tests/test-xstrtoul.c: Also test xstrtoul.
38987         * tests/test-xstrtoimax.c: Also test xstrtoimax.
38988         * tests/test-xstrtoumax.c: Also test xstrtoumax.
38989         * tests/test-xstrtol.sh: Drive the tests.
38990         * tests/test-xstrtoimax.sh: Likewise.
38991         * tests/test-xstrtoumax.sh: Likewise.
38992         * modules/xstrtol-tests: New module.
38993         * modules/xstrtoimax-tests: Likewise.
38994         * modules/xstrtoumax-tests: Likewise.
38995
38996 2007-08-08  Jim Meyering  <jim@meyering.net>
38997
38998         New function: mfile_name_concat.
38999         * lib/filenamecat.c (mfile_name_concat): New function, just like
39000         file_name_concat, but return NULL upon failure rather than exiting
39001         with a diagnostic.
39002         * lib/filenamecat.h: Declare it.
39003
39004 2007-08-07  Bruno Haible  <bruno@clisp.org>
39005
39006         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39007         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39008         warning from gcc.
39009         Reported by Eric Blake.
39010
39011 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39012
39013         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39014         * modules/crypto/arcfour (License): Likewise.
39015         * modules/crypto/des-tests (License): Likewise.
39016         * modules/crypto/gc-arctwo-tests (License): Likewise.
39017         * modules/crypto/gc-des-tests (License): Likewise.
39018         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39019         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39020         * modules/crypto/gc-md2-tests (License): Likewise.
39021         * modules/crypto/gc-md4-tests (License): Likewise.
39022         * modules/crypto/gc-md5-tests (License): Likewise.
39023         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39024         * modules/crypto/gc-rijndael-tests (License): Likewise.
39025         * modules/crypto/gc-sha1-tests (License): Likewise.
39026         * modules/crypto/gc-tests (License): Likewise.
39027         * modules/crypto/hmac-md5 (License): Likewise.
39028         * modules/crypto/hmac-sha1 (License): Likewise.
39029         * modules/crypto/md2-tests (License): Likewise.
39030         * modules/crypto/md4-tests (License): Likewise.
39031         * modules/crypto/md5 (License): Likewise.
39032         * modules/crypto/rijndael (License): Likewise.
39033         * modules/crypto/sha1 (License): Likewise.
39034         * modules/memxor (License): Likewise.
39035
39036 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39037         and Bruno Haible  <bruno@clisp.org>
39038
39039         * NEWS: Describe interface changes to human, xstrtol.
39040         * lib/human.h: Include <xstrtol.h>.
39041         (human_options): Return enum strtol_error, not int.  Remove
39042         bool arg; take int * instead.
39043         * lib/human.c: Don't include "gettext.h".
39044         (_): Remove; no longer used.
39045         Don't include <xstrtol.h>, since human.h does it.
39046         (human_options): Adjust to abovementioned interface changes.
39047         Do not report error to stderr; that's now the caller's
39048         responsibility.
39049         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39050         interface change.
39051         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39052         Str, Argument_type_string.  All uses changed.  Put " argument"
39053         in diagnostics to make them clearer.  Change wording of suffix
39054         message for clarity.
39055         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39056         Argument_type_string.
39057         (STRTOL_FATAL_WARN): Remove; no longer used.
39058         * modules/human (Depends-on): Remove gettext-h.
39059
39060 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39061
39062         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39063
39064 2007-07-31  Bruno Haible  <bruno@clisp.org>
39065
39066         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39067         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39068         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39069
39070 2007-07-31  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39073         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39074
39075 2007-07-30  Bruno Haible  <bruno@clisp.org>
39076
39077         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39078         * modules/c-ctype (License): Likewise.
39079         * modules/c-strcase (License): Likewise.
39080         * modules/check-version (License): Likewise.
39081         * modules/iconv (License): Likewise.
39082         * modules/iconv_open (License): Likewise.
39083         * modules/read-file (License): Likewise.
39084         * modules/striconv (License): Likewise.
39085         * modules/strverscmp (License): Likewise.
39086         * modules/vasprintf (License): Likewise.
39087         * modules/crypto/des (License): Likewise.
39088         * modules/crypto/gc (License): Likewise.
39089         * modules/crypto/gc-arcfour (License): Likewise.
39090         * modules/crypto/gc-arctwo (License): Likewise.
39091         * modules/crypto/gc-des (License): Likewise.
39092         * modules/crypto/gc-hmac-md5 (License): Likewise.
39093         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39094         * modules/crypto/gc-md2 (License): Likewise.
39095         * modules/crypto/gc-md4 (License): Likewise.
39096         * modules/crypto/gc-md5 (License): Likewise.
39097         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39098         * modules/crypto/gc-random (License): Likewise.
39099         * modules/crypto/gc-rijndael (License): Likewise.
39100         * modules/crypto/gc-sha1 (License): Likewise.
39101         * modules/crypto/md2 (License): Likewise.
39102         * modules/crypto/md4 (License): Likewise.
39103
39104 2007-07-30  Jim Meyering  <jim@meyering.net>
39105
39106         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39107         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39108         it has valid stat data.  This bug would cause du not to count the
39109         sizes of inaccessible directories.
39110         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39111         in <http://bugzilla.redhat.com/250077>.
39112
39113 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39114             Bruno Haible  <bruno@clisp.org>
39115
39116         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39117         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39118         #include_next, gives a diagnostic about it, but reports no error in
39119         the exit code.
39120         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39121
39122 2007-07-24  Ben Pfaff  <blp@gnu.org>
39123
39124         Improve name: "count-one-bits" is better than "popcount".
39125         * MODULES.html.sh: Update name.
39126         * lib/popcount.h: Renamed lib/count-one-bits.h.
39127         (popcount): Renamed count_one_bits.
39128         (popcountl): Renamed count_one_bits_l.
39129         (popcountll): Renamed count_one_bits_ll.
39130         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39131         * modules/popcount: Renamed module/count-one-bits.
39132         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39133         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39134
39135 2007-07-23  Ben Pfaff  <blp@gnu.org>
39136
39137         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39138         better code generation, and add U to large constants to avoid
39139         warnings, in non-GCC case.
39140         Suggested by Bruno Haible.
39141
39142 2007-07-23  Ben Pfaff  <blp@gnu.org>
39143
39144         * lib/popcount.h: Use verify_true instead of if...abort.
39145         * modules/popcount: Depend on verify module.
39146         Suggested by Jim Meyering.
39147
39148 2007-07-23  Bruno Haible  <bruno@clisp.org>
39149
39150         * gnulib-tool (func_import): Create a .cvsignore file also when the
39151         directory is not yet in CVS but the toplevel directory is. When
39152         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39153         Reported by Karl Berry.
39154
39155 2007-07-22  Ben Pfaff  <blp@gnu.org>
39156
39157         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39158         case.
39159         Suggested by Eric Blake.
39160
39161 2007-07-22  Ben Pfaff  <blp@gnu.org>
39162
39163         New module: popcount.
39164         * MODULES.html.sh: Add popcount.
39165         * modules/popcount: New file.
39166         * modules/popcount-tests: New file.
39167         * tests/test-popcount.c: New file.
39168         * lib/popcount.h: New file.
39169         * m4/popcount.m4: New file.
39170
39171 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39172
39173         * build-aux/announce-gen: Update to GPLv3.
39174
39175         * build-aux/config.guess: Update from config.
39176
39177 2007-07-21  Bruno Haible  <bruno@clisp.org>
39178
39179         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39180         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39181
39182 2007-07-20  Jim Meyering  <jim@meyering.net>
39183
39184         * check-module: Diagnose a self-dependency.
39185
39186 2007-07-19  Bruno Haible  <bruno@clisp.org>
39187
39188         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39189         empty.
39190         Reported by Eric Blake.
39191
39192 2007-07-18  Bruno Haible  <bruno@clisp.org>
39193
39194         * gnulib-tool: New options --po-base, --po-domain.
39195         (func_usage): Document them.
39196         (pobase, po_domain): New variables.
39197         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39198         DEFAULT_TEXT_DOMAIN.
39199         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39200         (func_import): Consider pobase and po_domain. Create a po/ directory.
39201         (func_create_testdir): Set pobase and po_domain to empty.
39202         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39203         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39204
39205 2007-07-18  Bruno Haible  <bruno@clisp.org>
39206
39207         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39208         EXTRA_DIST augmentation for files in build-aux/.
39209
39210 2007-07-16  Bruno Haible  <bruno@clisp.org>
39211
39212         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39213         * modules/getdelim (License): Likewise.
39214
39215 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39216
39217         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39218         * modules/d-type (License): Likewise.
39219         * modules/extensions (License): Likewise.
39220         * modules/fnmatch (License): Likewise.
39221         * modules/fseeko (License): Likewise.
39222         * modules/getaddrinfo (License): Likewise.
39223         * modules/getline (License): Likewise.
39224         * modules/getlogin_r (License): Likewise.
39225         * modules/getpass (License): Likewise.
39226         * modules/gettimeofday (License): Likewise.
39227         * modules/glob (License): Likewise.
39228         * modules/inet_ntop (License): Likewise.
39229         * modules/malloc (License): Likewise.
39230         * modules/malloca (License): Likewise.
39231         * modules/memmem (License): Likewise.
39232         * modules/mempcpy (License): Likewise.
39233         * modules/memset (License): Likewise.
39234         * modules/minmax (License): Likewise.
39235         * modules/mktime (License): Likewise.
39236         * modules/netinet_in (License): Likewise.
39237         * modules/pathmax (License): Likewise.
39238         * modules/poll (License): Likewise.
39239         * modules/regex (License): Likewise.
39240         * modules/snprintf (License): Likewise.
39241         * modules/stdbool (License): Likewise.
39242         * modules/stdint (License): Likewise.
39243         * modules/stdio (License): Likewise.
39244         * modules/strcase (License): Likewise.
39245         * modules/strcasestr (License): Likewise.
39246         * modules/strdup (License): Likewise.
39247         * modules/string (License): Likewise.
39248         * modules/strndup (License): Likewise.
39249         * modules/strnlen (License): Likewise.
39250         * modules/strpbrk (License): Likewise.
39251         * modules/strptime (License): Likewise.
39252         * modules/strsep (License): Likewise.
39253         * modules/sys_select (License): Likewise.
39254         * modules/sys_socket (License): Likewise.
39255         * modules/sys_stat (License): Likewise.
39256         * modules/sys_time (License): Likewise.
39257         * modules/time (License): Likewise.
39258         * modules/time_r (License): Likewise.
39259         * modules/timegm (License): Likewise.
39260         * modules/unistd (License): Likewise.
39261         * modules/vsnprintf (License): Likewise.
39262         * modules/wctype (License): Likewise.
39263
39264 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39265
39266         * modules/argz (License): LGPLv2+.
39267
39268 2007-07-15  Karl Berry  <karl@gnu.org>
39269
39270         * doc/gnulib.texi: revise node structure per new fdl.texi.
39271
39272 2007-07-14  Bruno Haible  <bruno@clisp.org>
39273
39274         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39275         the output file.
39276         * lib/uniname/uninames.h: Regenerated.
39277
39278 2007-07-14  Karl Berry  <karl@gnu.org>
39279
39280         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39281         omitting sectioning and index commands.
39282
39283 2007-07-13  Bruno Haible  <bruno@clisp.org>
39284
39285         New gnulib-tool option --more-symlinks.
39286         * gnulib-tool (func_usage): Document --more-symlinks.
39287         (do_copyrights): New variable.
39288         Recognize option --more-symlinks.
39289         (func_import): Don't add a copyright notice transform to
39290         sed_transform_lib_file if do_copyrights is empty.
39291
39292 2007-07-13  Bruno Haible  <bruno@clisp.org>
39293
39294         * lib/vasnprintf.c (decimal_point_char): Define also if
39295         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39296         && !NEED_PRINTF_DIRECTIVE_A.
39297         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39298         Gary V. Vaughan <gary@gnu.org>.
39299
39300 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39301
39302         * lib/inttypes_.h: Undo previous change, since it was fixed
39303         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39304
39305 2007-07-13  Bruno Haible  <bruno@clisp.org>
39306
39307         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39308         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39309
39310 2007-07-13  Jim Meyering  <jim@meyering.net>
39311
39312         df: Don't fail for Tru64's "file-on-file mount".
39313         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39314         so we fall through and use statfs instead.  Details here:
39315         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39316         Reported by Albert Chin.
39317
39318 2007-07-13  Bruno Haible  <bruno@clisp.org>
39319
39320         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39321         * modules/configmake (License): Likewise.
39322         * modules/gettext (License): Likewise.
39323         * modules/gettext-h (License): Likewise.
39324         * modules/include_next (License): Likewise.
39325         * modules/link-warning (License): Likewise.
39326         * modules/localcharset (License): Likewise.
39327         * modules/localename (License): Likewise.
39328         * modules/lock (License): Likewise.
39329         * modules/relocatable-lib-lgpl (License): Likewise.
39330         * modules/size_max (License): Likewise.
39331         * modules/vasnprintf (License): Likewise.
39332         * modules/wchar (License): Likewise.
39333         * modules/xsize (License): Likewise.
39334
39335 2007-07-13  Bruno Haible  <bruno@clisp.org>
39336
39337         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39338         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39339
39340 2007-07-12  Bruno Haible  <bruno@clisp.org>
39341
39342         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39343         in the modules files.
39344
39345 2007-07-11  Karl Berry  <karl@gnu.org>
39346
39347         * MODULES.html.sh (func_module): use
39348          sed -e '\|^'"${includefile}"'$|d'
39349          instead of /.../d, to avoid errors on $includefile's containing /.
39350
39351 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39352
39353         * gnulib-tool (func_import): Avoid duplication of --avoid
39354         statements
39355         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39356         names to `_' in variable names.
39357
39358 2007-07-10  Eric Blake  <ebb9@byu.net>
39359
39360         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39361         * NEWS: Document this change.
39362
39363 2007-07-08  Bruno Haible  <bruno@clisp.org>
39364
39365         Update to Unicode 5.0.
39366         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39367         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39368         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39369         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39370         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39371         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39372         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39373         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39374         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39375         U+10A3F, U+1D242..U+1D244.
39376         (nonspacing_table_ind): Update.
39377         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39378         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39379
39380 2007-07-08  Bruno Haible  <bruno@clisp.org>
39381
39382         Update to Unicode 5.0.
39383         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39384         code transform. Extend the name index field of unicode_name_to_code and
39385         unicode_code_to_name from 16 to 24 bits.
39386         * lib/uniname/uniname.c (unicode_character_name,
39387         unicode_name_character): Add the range 0x12xxx to the code transform.
39388         * lib/uniname/uninames.h: Regenerated.
39389         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39390
39391 2007-07-07  Bruno Haible  <bruno@clisp.org>
39392
39393         * modules/wcwidth-tests: New file.
39394         * tests/test-wcwidth.c: New file.
39395
39396         Work around MacOS X wcwidth() bug.
39397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39398         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39399         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39400         original wcwidth in non-UTF-8 locales.
39401         * modules/wcwidth (Depends-on): Add localcharset, streq,
39402         uniwidth/width.
39403         * doc/functions/wcwidth.texi: Update.
39404
39405 2007-07-07  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39408         (wcwidth): New declaration.
39409         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39410         macros.
39411         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39412         here. Prepare for creating <wchar.h> unconditionally.
39413         * modules/wchar (Depends-on): Add link-warning.
39414         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39415         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39416         * lib/wcwidth.h: Remove file.
39417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39418         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39419         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39420         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39421         (Include): Replace wcwidth.h with <wchar.h>.
39422         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39423         * lib/mbchar.h: Don't include wcwidth.h.
39424         * lib/mbswidth.c: Likewise.
39425         * NEWS: Mention the change.
39426
39427 2007-07-07  Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39430         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39431         definition with an external declaration.
39432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39433         defined as a function. Remove AC_C_INLINE requirement.
39434         * modules/wcwidth (Files): Add lib/wcwidth.c.
39435         (Makefile.am): Remove redundant statement.
39436
39437 2007-07-07  Bruno Haible  <bruno@clisp.org>
39438
39439         * MODULES.html.sh (Unicode string functions): Add the new modules.
39440
39441         * tests/uniwidth/test-u32-strwidth.c: New file.
39442         * modules/uniwidth/u32-strwidth-tests: New file.
39443
39444         * lib/uniwidth/u32-strwidth.c: New file.
39445         * modules/uniwidth/u32-strwidth: New file.
39446
39447         * tests/uniwidth/test-u16-strwidth.c: New file.
39448         * modules/uniwidth/u16-strwidth-tests: New file.
39449
39450         * lib/uniwidth/u16-strwidth.c: New file.
39451         * modules/uniwidth/u16-strwidth: New file.
39452
39453         * tests/uniwidth/test-u8-strwidth.c: New file.
39454         * modules/uniwidth/u8-strwidth-tests: New file.
39455
39456         * lib/uniwidth/u8-strwidth.c: New file.
39457         * modules/uniwidth/u8-strwidth: New file.
39458
39459         * tests/uniwidth/test-u32-width.c: New file.
39460         * modules/uniwidth/u32-width-tests: New file.
39461
39462         * lib/uniwidth/u32-width.c: New file.
39463         * modules/uniwidth/u32-width: New file.
39464
39465         * tests/uniwidth/test-u16-width.c: New file.
39466         * modules/uniwidth/u16-width-tests: New file.
39467
39468         * lib/uniwidth/u16-width.c: New file.
39469         * modules/uniwidth/u16-width: New file.
39470
39471         * tests/uniwidth/test-u8-width.c: New file.
39472         * modules/uniwidth/u8-width-tests: New file.
39473
39474         * lib/uniwidth/u8-width.c: New file.
39475         * modules/uniwidth/u8-width: New file.
39476
39477         * tests/uniwidth/test-uc_width.c: New file.
39478         * modules/uniwidth/width-tests: New file.
39479
39480         * lib/uniwidth/width.c: New file, from GNU libiconv.
39481         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39482         * modules/uniwidth/width: New file.
39483
39484         * lib/uniwidth.h: New file, from GNU libiconv.
39485         * modules/uniwidth/base: New file.
39486
39487 2007-07-07  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/uniname.h: New file, from GNU gettext.
39490         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39491         * lib/uniname/uninames.h: New file, from GNU gettext.
39492         * lib/uniname/uniname.c: New file, from GNU gettext.
39493         * tests/uniname/test-uninames.sh: New file.
39494         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39495         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39496         * modules/uniname/base: New file.
39497         * modules/uniname/uniname: New file.
39498         * modules/uniname/uniname-tests: New file.
39499         * MODULES.html.sh (Unicode string functions): Add the new modules.
39500
39501 2007-07-06  Bruno Haible  <bruno@clisp.org>
39502
39503         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39504
39505 2007-07-06  Bruno Haible  <bruno@clisp.org>
39506
39507         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39508         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39509         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39510         include <sys/time.h>.
39511         Reported by Eric Blake.
39512
39513 2007-07-06  Eric Blake  <ebb9@byu.net>
39514
39515         Fix testing canonicalize on cygwin.
39516         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39517         Revert patch from 2007-06-19.
39518         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39519         canonicalize module is also in use.
39520         * tests/test-canonicalize.c: New file.
39521         * tests/test-canonicalize.sh: Likewise.
39522         * modules/canonicalize-tests: Likewise.
39523
39524 2007-07-06  Jim Meyering  <jim@meyering.net>
39525
39526         * lib/getugroups.c (getugroups): Detect getgrent failure.
39527         Adjust comment to reflect reality: this function may return -1.
39528
39529 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39530
39531         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39532         the new TP address.
39533         (usage): Fix typo
39534         (gnulib_mk): New variable.
39535
39536 2007-07-05  Jim Meyering  <jim@meyering.net>
39537
39538         Don't let endgrent clobber errno, no matter how improbable.
39539         * lib/getugroups.c (getugroups): Save and restore errno around
39540         endgrent call.
39541
39542         Close the group DB even when failing with 2^31 or more members.
39543         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39544
39545 2007-07-04  Jim Meyering  <jim@meyering.net>
39546
39547         * lib/getugroups.h: New file.
39548         * lib/getugroups.c: Include "getugroups.h".
39549         Remove uses of "register" keyword.
39550         Move local variable, "cp", down into scope where used.
39551         Give "username" parameter the "const" attribute.
39552         * modules/getugroups (Files): Add lib/getugroups.h
39553
39554 2007-07-04  Karl Berry  <karl@gnu.org>
39555
39556         * MODULES.html.sh (func_all_modules): Complete rename of
39557         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39558
39559 2007-07-02  Bruno Haible  <bruno@clisp.org>
39560
39561         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39562         mode, when inttypes.h comes from gnulib.
39563         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39564
39565 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39566
39567         * NEWS: Mention lgpl module name change.
39568
39569         * modules/lgpl-2.1: Renamed from lgpl.
39570
39571         * NEWS: Mention gpl module name change.
39572
39573         * modules/gpl-3.0: New file, based on gpl-2.0.
39574
39575         * modules/gpl-2.0: Renamed from gpl.
39576
39577         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39578         doc/gpl-2.0.texi.
39579
39580 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39581
39582         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39583         #define __STDC_LIMIT_MACROS temporarily while including
39584         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39585         Problem reported by Joel E. Denny in
39586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39587
39588 2007-07-01  Bruno Haible  <bruno@clisp.org>
39589
39590         * lib/unistdio.h: New file.
39591         * lib/unistdio/u-asnprintf.h: New file.
39592         * lib/unistdio/u-asprintf.h: New file.
39593         * lib/unistdio/u-printf-args.c: New file.
39594         * lib/unistdio/u-printf-args.h: New file.
39595         * lib/unistdio/u-printf-parse.h: New file.
39596         * lib/unistdio/u-snprintf.h: New file.
39597         * lib/unistdio/u-sprintf.h: New file.
39598         * lib/unistdio/u-vasprintf.h: New file.
39599         * lib/unistdio/u-vsnprintf.h: New file.
39600         * lib/unistdio/u-vsprintf.h: New file.
39601         * lib/unistdio/ulc-asnprintf.c: New file.
39602         * lib/unistdio/ulc-asprintf.c: New file.
39603         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39604         * lib/unistdio/ulc-printf-parse.c: New file.
39605         * lib/unistdio/ulc-snprintf.c: New file.
39606         * lib/unistdio/ulc-sprintf.c: New file.
39607         * lib/unistdio/ulc-vasnprintf.c: New file.
39608         * lib/unistdio/ulc-vasprintf.c: New file.
39609         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39610         * lib/unistdio/ulc-vsnprintf.c: New file.
39611         * lib/unistdio/ulc-vsprintf.c: New file.
39612         * lib/unistdio/u8-asnprintf.c: New file.
39613         * lib/unistdio/u8-asprintf.c: New file.
39614         * lib/unistdio/u8-printf-parse.c: New file.
39615         * lib/unistdio/u8-snprintf.c: New file.
39616         * lib/unistdio/u8-sprintf.c: New file.
39617         * lib/unistdio/u8-vasnprintf.c: New file.
39618         * lib/unistdio/u8-vasprintf.c: New file.
39619         * lib/unistdio/u8-vsnprintf.c: New file.
39620         * lib/unistdio/u8-vsprintf.c: New file.
39621         * lib/unistdio/u8-u8-asnprintf.c: New file.
39622         * lib/unistdio/u8-u8-asprintf.c: New file.
39623         * lib/unistdio/u8-u8-snprintf.c: New file.
39624         * lib/unistdio/u8-u8-sprintf.c: New file.
39625         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39626         * lib/unistdio/u8-u8-vasprintf.c: New file.
39627         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39628         * lib/unistdio/u8-u8-vsprintf.c: New file.
39629         * lib/unistdio/u16-asnprintf.c: New file.
39630         * lib/unistdio/u16-asprintf.c: New file.
39631         * lib/unistdio/u16-printf-parse.c: New file.
39632         * lib/unistdio/u16-snprintf.c: New file.
39633         * lib/unistdio/u16-sprintf.c: New file.
39634         * lib/unistdio/u16-vasnprintf.c: New file.
39635         * lib/unistdio/u16-vasprintf.c: New file.
39636         * lib/unistdio/u16-vsnprintf.c: New file.
39637         * lib/unistdio/u16-vsprintf.c: New file.
39638         * lib/unistdio/u16-u16-asnprintf.c: New file.
39639         * lib/unistdio/u16-u16-asprintf.c: New file.
39640         * lib/unistdio/u16-u16-snprintf.c: New file.
39641         * lib/unistdio/u16-u16-sprintf.c: New file.
39642         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39643         * lib/unistdio/u16-u16-vasprintf.c: New file.
39644         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39645         * lib/unistdio/u16-u16-vsprintf.c: New file.
39646         * lib/unistdio/u32-asnprintf.c: New file.
39647         * lib/unistdio/u32-asprintf.c: New file.
39648         * lib/unistdio/u32-printf-parse.c: New file.
39649         * lib/unistdio/u32-snprintf.c: New file.
39650         * lib/unistdio/u32-sprintf.c: New file.
39651         * lib/unistdio/u32-vasnprintf.c: New file.
39652         * lib/unistdio/u32-vasprintf.c: New file.
39653         * lib/unistdio/u32-vsnprintf.c: New file.
39654         * lib/unistdio/u32-vsprintf.c: New file.
39655         * lib/unistdio/u32-u32-asnprintf.c: New file.
39656         * lib/unistdio/u32-u32-asprintf.c: New file.
39657         * lib/unistdio/u32-u32-snprintf.c: New file.
39658         * lib/unistdio/u32-u32-sprintf.c: New file.
39659         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39660         * lib/unistdio/u32-u32-vasprintf.c: New file.
39661         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39662         * lib/unistdio/u32-u32-vsprintf.c: New file.
39663         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39664         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39665         * tests/unistdio/test-ulc-printf1.h: New file.
39666         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39667         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39668         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39669         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39670         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39671         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39672         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39673         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39674         * tests/unistdio/test-u8-asnprintf1.c: New file.
39675         * tests/unistdio/test-u8-asnprintf1.h: New file.
39676         * tests/unistdio/test-u8-printf1.h: New file.
39677         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39678         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39679         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39680         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39681         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39682         * tests/unistdio/test-u8-vasprintf1.c: New file.
39683         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39684         * tests/unistdio/test-u8-vsprintf1.c: New file.
39685         * tests/unistdio/test-u16-asnprintf1.c: New file.
39686         * tests/unistdio/test-u16-asnprintf1.h: New file.
39687         * tests/unistdio/test-u16-printf1.h: New file.
39688         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39689         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39690         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39691         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39692         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39693         * tests/unistdio/test-u16-vasprintf1.c: New file.
39694         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39695         * tests/unistdio/test-u16-vsprintf1.c: New file.
39696         * tests/unistdio/test-u32-asnprintf1.c: New file.
39697         * tests/unistdio/test-u32-asnprintf1.h: New file.
39698         * tests/unistdio/test-u32-printf1.h: New file.
39699         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39700         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39701         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39702         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39703         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39704         * tests/unistdio/test-u32-vasprintf1.c: New file.
39705         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39706         * tests/unistdio/test-u32-vsprintf1.c: New file.
39707         * modules/unistdio/base: New file.
39708         * modules/unistdio/u-printf-args: New file.
39709         * modules/unistdio/ulc-asnprintf: New file.
39710         * modules/unistdio/ulc-asprintf: New file.
39711         * modules/unistdio/ulc-fprintf: New file.
39712         * modules/unistdio/ulc-printf-parse: New file.
39713         * modules/unistdio/ulc-snprintf: New file.
39714         * modules/unistdio/ulc-sprintf: New file.
39715         * modules/unistdio/ulc-vasnprintf: New file.
39716         * modules/unistdio/ulc-vasprintf: New file.
39717         * modules/unistdio/ulc-vfprintf: New file.
39718         * modules/unistdio/ulc-vsnprintf: New file.
39719         * modules/unistdio/ulc-vsprintf: New file.
39720         * modules/unistdio/u8-asnprintf: New file.
39721         * modules/unistdio/u8-asprintf: New file.
39722         * modules/unistdio/u8-printf-parse: New file.
39723         * modules/unistdio/u8-snprintf: New file.
39724         * modules/unistdio/u8-sprintf: New file.
39725         * modules/unistdio/u8-vasnprintf: New file.
39726         * modules/unistdio/u8-vasprintf: New file.
39727         * modules/unistdio/u8-vsnprintf: New file.
39728         * modules/unistdio/u8-vsprintf: New file.
39729         * modules/unistdio/u8-u8-asnprintf: New file.
39730         * modules/unistdio/u8-u8-asprintf: New file.
39731         * modules/unistdio/u8-u8-snprintf: New file.
39732         * modules/unistdio/u8-u8-sprintf: New file.
39733         * modules/unistdio/u8-u8-vasnprintf: New file.
39734         * modules/unistdio/u8-u8-vasprintf: New file.
39735         * modules/unistdio/u8-u8-vsnprintf: New file.
39736         * modules/unistdio/u8-u8-vsprintf: New file.
39737         * modules/unistdio/u16-asnprintf: New file.
39738         * modules/unistdio/u16-asprintf: New file.
39739         * modules/unistdio/u16-printf-parse: New file.
39740         * modules/unistdio/u16-snprintf: New file.
39741         * modules/unistdio/u16-sprintf: New file.
39742         * modules/unistdio/u16-vasnprintf: New file.
39743         * modules/unistdio/u16-vasprintf: New file.
39744         * modules/unistdio/u16-vsnprintf: New file.
39745         * modules/unistdio/u16-vsprintf: New file.
39746         * modules/unistdio/u16-u16-asnprintf: New file.
39747         * modules/unistdio/u16-u16-asprintf: New file.
39748         * modules/unistdio/u16-u16-snprintf: New file.
39749         * modules/unistdio/u16-u16-sprintf: New file.
39750         * modules/unistdio/u16-u16-vasnprintf: New file.
39751         * modules/unistdio/u16-u16-vasprintf: New file.
39752         * modules/unistdio/u16-u16-vsnprintf: New file.
39753         * modules/unistdio/u16-u16-vsprintf: New file.
39754         * modules/unistdio/u32-asnprintf: New file.
39755         * modules/unistdio/u32-asprintf: New file.
39756         * modules/unistdio/u32-printf-parse: New file.
39757         * modules/unistdio/u32-snprintf: New file.
39758         * modules/unistdio/u32-sprintf: New file.
39759         * modules/unistdio/u32-vasnprintf: New file.
39760         * modules/unistdio/u32-vasprintf: New file.
39761         * modules/unistdio/u32-vsnprintf: New file.
39762         * modules/unistdio/u32-vsprintf: New file.
39763         * modules/unistdio/u32-u32-asnprintf: New file.
39764         * modules/unistdio/u32-u32-asprintf: New file.
39765         * modules/unistdio/u32-u32-snprintf: New file.
39766         * modules/unistdio/u32-u32-sprintf: New file.
39767         * modules/unistdio/u32-u32-vasnprintf: New file.
39768         * modules/unistdio/u32-u32-vasprintf: New file.
39769         * modules/unistdio/u32-u32-vsnprintf: New file.
39770         * modules/unistdio/u32-u32-vsprintf: New file.
39771         * modules/unistdio/ulc-asnprintf-tests: New file.
39772         * modules/unistdio/ulc-vasnprintf-tests: New file.
39773         * modules/unistdio/ulc-vasprintf-tests: New file.
39774         * modules/unistdio/ulc-vsnprintf-tests: New file.
39775         * modules/unistdio/ulc-vsprintf-tests: New file.
39776         * modules/unistdio/u8-asnprintf-tests: New file.
39777         * modules/unistdio/u8-vasnprintf-tests: New file.
39778         * modules/unistdio/u8-vasprintf-tests: New file.
39779         * modules/unistdio/u8-vsnprintf-tests: New file.
39780         * modules/unistdio/u8-vsprintf-tests: New file.
39781         * modules/unistdio/u16-asnprintf-tests: New file.
39782         * modules/unistdio/u16-vasnprintf-tests: New file.
39783         * modules/unistdio/u16-vasprintf-tests: New file.
39784         * modules/unistdio/u16-vsnprintf-tests: New file.
39785         * modules/unistdio/u16-vsprintf-tests: New file.
39786         * modules/unistdio/u32-asnprintf-tests: New file.
39787         * modules/unistdio/u32-vasnprintf-tests: New file.
39788         * modules/unistdio/u32-vasprintf-tests: New file.
39789         * modules/unistdio/u32-vsnprintf-tests: New file.
39790         * modules/unistdio/u32-vsprintf-tests: New file.
39791         * MODULES.html.sh (Unicode string functions): Add the new modules.
39792
39793 2007-07-01  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/sprintf.c (sprintf): Limit the available length estimation,
39796         to avoid address wraparound.
39797         * lib/vsprintf.c (vsprintf): Likewise.
39798         * modules/sprintf-posix (Dependencies): Add stdint.
39799         * modules/vsprintf-posix (Dependencies): Likewise.
39800
39801 2007-07-01  Bruno Haible  <bruno@clisp.org>
39802
39803         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39804         Windows PATH as well. Conservative double-quoting. Comments.
39805
39806 2007-07-01  Bruno Haible  <bruno@clisp.org>
39807             Eric Blake  <ebb9@byu.net>
39808             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39809
39810         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39811         empty components in $PATH, denoting '.'.
39812
39813 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39814
39815         * gnulib-tool: Fix indentation.
39816         (func_create_megatestdir): Likewise.
39817         Report by Bruno Haible.
39818
39819 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39820
39821         Sync from Automake.
39822         * build-aux/gnupload: Fix shell portability issues with for loops.
39823         Report by Karl Berry.
39824
39825 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39826
39827         * build-aux/maint.mk (POURL): Use translationproject.org.
39828
39829 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39830             Bruno Haible  <bruno@clisp.org>
39831
39832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39833         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39834         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39835         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39836         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39837
39838 2007-06-27  Bruno Haible  <bruno@clisp.org>
39839
39840         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39841         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39842
39843 2007-06-26  Karl Berry  <karl@gnu.org>
39844
39845         * MODULES.html.sh: remove xreadlink-with-size.
39846
39847 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39848
39849         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39850         method that I hope also handles the double-include problem noted
39851         by Bruno Haible in
39852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39853
39854 2007-06-23  Bruno Haible  <bruno@clisp.org>
39855
39856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39857         Don't let the 'mostlyclean' target fail if the last subdirectory could
39858         not be removed.
39859         Reported by Karl Berry.
39860
39861 2007-06-23  Bruno Haible  <bruno@clisp.org>
39862
39863         * gnulib-tool (echo): Add a speedier workaround for ksh.
39864         * tests/test-echo.sh: Likewise.
39865
39866 2007-06-23  Bruno Haible  <bruno@clisp.org>
39867
39868         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39869         * tests/test-echo.sh: Likewise.
39870
39871 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39872
39873         * gnulib-tool (IFS): Initialize early, so we don't set it to
39874         empty later.
39875         (self_abspathname): Rewrite algorithm to set it, reindent.
39876         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39877         (func_create_megatestdir): Merge some sed scripts.
39878
39879 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39880
39881         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39882         exposed by Sun Studio 11 cc on Solaris 8.
39883
39884 2007-06-22  Bruno Haible  <bruno@clisp.org>
39885
39886         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39887         backslashes.
39888         * tests/test-echo.sh: New file.
39889
39890 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39891
39892         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39893         simplify `sed_replace_build_aux' scripts, they are portable but
39894         echoing them with `echo' is not.
39895         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39896
39897 2007-06-21  Karl Berry  <karl@gnu.org>
39898
39899         * config/srclist.txt: guess we can't handle the licenses via
39900         srclist at the moment.
39901
39902 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39903
39904         * MODULES.html.sh: Add include_next.
39905         * modules/include_next: New file.
39906
39907 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39908
39909         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39910         INCLUDE_NEXT.
39911         (gl_CHECK_NEXT_HEADERS): New macro.
39912         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39913         the obsolescent gl_ABSOLUTE_HEADER.
39914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39915         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39916         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39917         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39918         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39919         * m4/math_h.m4 (gl_MATH_H): Likewise.
39920         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39921         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39922         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39923         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39924         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39925         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39926         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39927         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39931         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39932         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39933         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39934         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39935         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39936         * m4/inttypes.m4 (gl_INTTYPES_H): Define
39937         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
39938         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
39939         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39940         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
39941         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
39942         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
39943         * lib/float_.h: Likewise.
39944         * lib/inttypes_.h: Likewise.
39945         * lib/math_.h: Likewise.
39946         * lib/search_.h: Likewise.
39947         * lib/signal_.h: Likewise.
39948         * lib/stdint_.h: Likewise.
39949         * lib/stdio_.h: Likewise.
39950         * lib/stdlib_.h: Likewise.
39951         * lib/string_.h: Likewise.
39952         * lib/sys_stat_.h: Likewise.
39953         * lib/sys_time_.h: Likewise.
39954         * lib/time_.h: Likewise.
39955         * lib/unistd_.h: Likewise.
39956         * lib/wchar_.h: Likewise.
39957         * lib/wctype_.h: Likewise.
39958         * lib/dirent_.h: Likewise.
39959         * lib/iconv_.h: Likewise.
39960         * lib/locale_.h: Likewise.
39961         * lib/netinet_in_.h: Likewise.
39962         * lib/sys_select_.h: Likewise.
39963         * lib/sys_socket_.h: Likewise.
39964         * lib/sysexits_.h: Likewise.
39965         * modules/fcntl (Depends-on): Depend on include_next, not
39966         absolute_header.
39967         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
39968         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
39969         * modules/fchdir: Likewise.
39970         * modules/float: Likewise.
39971         * modules/iconv_open: Likewise.
39972         * modules/inttypes: Likewise.
39973         * modules/locale: Likewise.
39974         * modules/math: Likewise.
39975         * modules/netinet_in: Likewise.
39976         * modules/search: Likewise.
39977         * modules/signal: Likewise.
39978         * modules/stdint: Likewise.
39979         * modules/stdio: Likewise.
39980         * modules/stdlib: Likewise.
39981         * modules/string: Likewise.
39982         * modules/sys_select: Likewise.
39983         * modules/sys_socket: Likewise.
39984         * modules/sys_stat: Likewise.
39985         * modules/sys_time: Likewise.
39986         * modules/sysexits: Likewise.
39987         * modules/time: Likewise.
39988         * modules/unistd: Likewise.
39989         * modules/wchar: Likewise.
39990         * modules/wctype: Likewise.
39991         * modules/sys_stat: Change maintainer to "all".
39992         * modules/unistd: Likewise.
39993
39994 2007-06-20  Karl Berry  <karl@gnu.org>
39995
39996         * config/srclist.txt: track www changes in license files.
39997
39998 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
39999
40000         * build-aux/bootstrap: Remove stray dot.
40001         Make sure build_aux settings are honored when linking
40002         gnulib_extra_files.
40003
40004 2007-06-19  Eric Blake  <ebb9@byu.net>
40005
40006         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40007         Allow compilation on cygwin.
40008
40009 2007-06-19  Jim Meyering  <jim@meyering.net>
40010
40011         xreadlink-with-size: Remove module.  No longer used.
40012         Ex-callers now use xreadlink or mreadlink-with-size.
40013         * modules/xreadlink-with-size: Remove module.
40014         * lib/xreadlink-with-size.c: Remove file.
40015         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40016         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40017         just before the function definition *is* accurate.
40018
40019         Eliminate one way canonicalize_filename_mode could exit.
40020         * lib/canonicalize.c (canonicalize_filename_mode):
40021         Use mreadlink_with_size, not xreadlink_with_size.
40022
40023 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40024
40025         Detect porting problems to FreeBSD/arm, which has time_t wider than
40026         long int.  Original problem reported for GNU diff by Xin Li in
40027         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40028         * modules/getdate (Depends-on): Add intprops, verify.
40029         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40030         is an integer type no wider than long int.
40031
40032 2007-06-18  Jim Meyering  <jim@meyering.net>
40033
40034         New module: mreadlink-with-size.
40035         * MODULES.html.sh: Add mreadlink-with-size.
40036         * modules/mreadlink-with-size: New module
40037         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40038         not xreadlink-with-size.
40039         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40040
40041 2007-06-16  Bruno Haible  <bruno@clisp.org>
40042
40043         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40044         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40045         Reported by Gary V. Vaughan <gary@gnu.org>.
40046
40047 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40048
40049         Revamp lchown so that it lives in unistd.h where it belongs.
40050         * lib/lchown.h: Remove.
40051         * lib/dirchownmod.c: Don't include lib/lchown.h.
40052         * lib/fchownat.c: Likewise.
40053         * lib/openat.c: Likewise.
40054         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40055         does not follow symlinks.
40056         (EOPNOTSUPP): Define if not defined.
40057         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40058         is defined to 0.
40059         (lchown): New decl.
40060         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40061         Do not check for lchown decl.
40062         Set REPLACE_LCHOWN.
40063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40064         REPLACE_LCHOWN.
40065         * modules/chown: Make it clear it follows symlinks.
40066         * modules/lchown: Make it clear it doesn't follow symlinks.
40067         (Files): Remove lib/lchown.h
40068         (Depends-on): Add unistd.
40069         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40070         (Include): Include <unistd.h>, not "lchown.h".
40071         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40072         REPLACE_LCHOWN.
40073
40074 2007-06-15  Jim Meyering  <jim@meyering.net>
40075
40076         Change license (GPL to LGPL) of fsusage and dependents.
40077         * modules/fsusage (License): Change to LGPL.
40078         * modules/full-read (License): Likewise.
40079         * modules/full-write (License): Likewise.
40080         * modules/safe-read (License): Likewise.
40081         * modules/safe-write (License): Likewise.
40082
40083 2007-06-14  Ben Pfaff  <blp@gnu.org>
40084
40085         Missing part of allocsa -> malloca transition.
40086         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40087         gl_MALLOCA.
40088
40089 2007-06-12  Bruno Haible  <bruno@clisp.org>
40090
40091         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40092         to ia64, x86_64, i386.
40093         Reported by Eric Blake.
40094
40095 2007-06-12  Bruno Haible  <bruno@clisp.org>
40096
40097         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40098         cross-compiling to x86_64.
40099
40100 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40101
40102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40103         glitch reported by Ralf Wildenhues in
40104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40105
40106         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40107         Vin Shelton.
40108
40109 2007-06-11  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40112         replacement string.
40113         Reported by Eric Blake.
40114
40115 2007-06-10  Bruno Haible  <bruno@clisp.org>
40116
40117         Prepare vasnprintf code for use with Unicode strings.
40118         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40119         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40120         TYPE_U32_STRING.
40121         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40122         a_u32_string variants.
40123         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40124         * lib/printf-args.c: Don't include config.h and the specification
40125         header if PRINTF_FETCHARGS is already defined.
40126         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40127         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40128         TYPE_U16_STRING, TYPE_U32_STRING.
40129         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40130         u16_directive, u16_directives, u32_directive, u32_directives): New
40131         types.
40132         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40133         New declarations.
40134         * lib/printf-parse.c: Don't include config.h and the specification
40135         header if PRINTF_PARSE is already defined. Eliminate the set of
40136         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40137         them now. Include c-ctype.h.
40138         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40139         directive and CHAR_T_ONLY_ASCII.
40140         * lib/vasnprintf.c: Don't include config.h and the specification header
40141         if VASNPRINTF is already defined.
40142         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40143         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40144         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40145         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40146         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40147         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40148         code accordingly.
40149         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40150         pad_ourselves also in this case, with the 'c' and 's' directives, and
40151         with a different notion of "width".
40152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40153
40154 2007-06-10  Bruno Haible  <bruno@clisp.org>
40155
40156         * modules/unistr/u32-mbsnlen: New file.
40157         * lib/unistr/u32-mbsnlen.c: New file.
40158
40159         * modules/unistr/u16-mbsnlen: New file.
40160         * lib/unistr/u16-mbsnlen.c: New file.
40161
40162         * modules/unistr/u8-mbsnlen: New file.
40163         * lib/unistr/u8-mbsnlen.c: New file.
40164
40165         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40166         declarations.
40167
40168 2007-06-10  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/string_.h (mbsnlen): New declaration.
40171         * lib/mbsnlen.c: New file.
40172         * m4/mbsnlen.m4: New file.
40173         * modules/mbsnlen: New file.
40174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40175         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40176         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40177
40178 2007-06-10  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40181
40182 2007-06-10  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40185         * lib/mbuiter.h: Likewise.
40186
40187 2007-06-10  Bruno Haible  <bruno@clisp.org>
40188
40189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40190         declaration.
40191
40192 2007-06-10  Karl Berry  <karl@gnu.org>
40193
40194         * config/srclist.txt: remove gettext entries, Bruno prefers
40195         to update individually.
40196
40197 2007-06-10  Bruno Haible  <bruno@clisp.org>
40198
40199         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40200         'maxlen'. Ensure only length + width bytes are allocated, not
40201         length + 1 + width.
40202
40203 2007-06-09  Bruno Haible  <bruno@clisp.org>
40204
40205         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40206         (CHAR_T): Remove macro.
40207         (VASNPRINTF): Update.
40208
40209 2007-06-09  Bruno Haible  <bruno@clisp.org>
40210
40211         * MODULES.html.sh (Unicode string functions): Add the new modules.
40212
40213         * modules/uniconv/u32-conv-to-enc: New file.
40214         * lib/uniconv/u32-conv-to-enc.c: New file.
40215         * modules/uniconv/u32-conv-to-enc-tests: New file.
40216         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40217
40218         * modules/uniconv/u16-conv-to-enc: New file.
40219         * lib/uniconv/u16-conv-to-enc.c: New file.
40220         * lib/uniconv/u-conv-to-enc.h: New file.
40221         * modules/uniconv/u16-conv-to-enc-tests: New file.
40222         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40223
40224         * modules/uniconv/u8-conv-to-enc: New file.
40225         * lib/uniconv/u8-conv-to-enc.c: New file.
40226         * modules/uniconv/u8-conv-to-enc-tests: New file.
40227         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40228
40229         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40230         u32_conv_to_encoding): New declarations.
40231
40232 2007-06-09  Bruno Haible  <bruno@clisp.org>
40233
40234         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40235
40236 2007-06-09  Bruno Haible  <bruno@clisp.org>
40237
40238         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40239         * modules/malloca: Renamed from modules/allocsa, updated.
40240         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40241         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40242         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40243         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40244         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40245         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40246         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40247         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40248         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40249         * modules/c-strcasestr (Depends-on): Update.
40250         * lib/c-strcasestr.c: Update.
40251         * modules/c-strstr (Depends-on): Update.
40252         * lib/c-strstr.c: Update.
40253         * modules/canonicalize-lgpl (Depends-on): Update.
40254         * lib/canonicalize-lgpl.c: Update.
40255         * modules/clean-temp (Depends-on): Update.
40256         * lib/clean-temp.c: Update.
40257         * modules/csharpcomp (Depends-on): Update.
40258         * lib/csharpcomp.c: Update.
40259         * modules/csharpexec (Depends-on): Update.
40260         * lib/csharpexec.c: Update.
40261         * modules/javacomp (Depends-on): Update.
40262         * lib/javacomp.c: Update.
40263         * modules/javaexec (Depends-on): Update.
40264         * lib/javaexec.c: Update.
40265         * modules/mbscasestr (Depends-on): Update.
40266         * lib/mbscasestr.c: Update.
40267         * modules/mbsstr (Depends-on): Update.
40268         * lib/mbsstr.c: Update.
40269         * modules/setenv (Depends-on): Update.
40270         * lib/setenv.c: Update.
40271         * modules/strcasestr (Depends-on): Update.
40272         * lib/strcasestr.c: Update.
40273         * modules/striconveha (Depends-on): Update.
40274         * lib/striconveha.c: Update.
40275         * modules/relocatable-prog-wrapper (Files): Update.
40276         * lib/relocwrapper.c: Update.
40277         * build-aux/install-reloc: Update.
40278         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40279
40280 2007-06-08  Bruno Haible  <bruno@clisp.org>
40281
40282         Port to uClibc.
40283         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40284         * lib/fpurge.c (fpurge): Likewise.
40285         * lib/freading.c (freading): Likewise.
40286         * lib/fseeko.c (rpl_fseeko): Likewise.
40287         * lib/fseterr.c (fseterr): Likewise.
40288         * lib/fwriting.c (fwriting): Likewise.
40289         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40290
40291 2007-06-08  Bruno Haible  <bruno@clisp.org>
40292
40293         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40294         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40295         * modules/gettext (Files): Add m4/intlmacosx.m4.
40296
40297 2007-06-07  Bruno Haible  <bruno@clisp.org>
40298
40299         * modules/localename-tests: New file.
40300         * tests/test-localename.c: New file.
40301
40302         New module 'localename'.
40303         * lib/localename.h: New file.
40304         * lib/localename.c: New file, from GNU gettext.
40305         * m4/localename.m4: New file.
40306         * modules/localename: New file.
40307
40308 2007-06-07  Bruno Haible  <bruno@clisp.org>
40309
40310         Work around the lack of <wchar.h> on some builds of uClibc.
40311         * doc/headers/wchar.texi: Update.
40312         * lib/wchar_.h: Include <wchar.h> only if it exists.
40313         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40314         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40315         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40316         doesn't exist.
40317         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40318         * modules/mbfile (Depends-on): Add wchar.
40319         * modules/mbiter (Depends-on): Likewise.
40320         * modules/mbuiter (Depends-on): Likewise.
40321         Reported by Simon Josefsson.
40322
40323 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40324
40325         Work around problem reported by Steven M. Schweda in
40326         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40327         Tru64 5.1B with the Compaq compiler environment installed declares
40328         an 'isblank' function but does not define it in the C library.
40329         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40330         * lib/regex_internal.h (isblank): Likewise.
40331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40332         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40333
40334 2007-06-05  Bruno Haible  <bruno@clisp.org>
40335
40336         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40337         ia64.
40338         * modules/printf-safe: New file.
40339         * modules/fprintf-posix (Depends-on): Add printf-safe.
40340         * modules/printf-posix (Depends-on): Likewise.
40341         * modules/snprintf-posix (Depends-on): Likewise.
40342         * modules/sprintf-posix (Depends-on): Likewise.
40343         * modules/vasnprintf-posix (Depends-on): Likewise.
40344         * modules/vasprintf-posix (Depends-on): Likewise.
40345         * modules/vfprintf-posix (Depends-on): Likewise.
40346         * modules/vprintf-posix (Depends-on): Likewise.
40347         * modules/vsnprintf-posix (Depends-on): Likewise.
40348         * modules/vsprintf-posix (Depends-on): Likewise.
40349         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40350         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40351         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40352         "no" on i386, x86_64, ia64.
40353         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40354         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40355         on i386, x86_64, ia64.
40356         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40357         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40358         on i386, x86_64, ia64.
40359         * tests/test-vasnprintf-posix.c: Include float.h.
40360         (LDBL80_WORDS): New macro.
40361         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40362         on i386, x86_64, ia64.
40363         * tests/test-vasprintf-posix.c: Include float.h.
40364         (LDBL80_WORDS): New macro.
40365         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40366         on i386, x86_64, ia64.
40367         * tests/test-snprintf-posix.c: Include float.h.
40368         * tests/test-sprintf-posix.c: Likewise.
40369         * tests/test-vsnprintf-posix.c: Likewise.
40370         * tests/test-vsprintf-posix.c: Likewise.
40371
40372 2007-06-05  Bruno Haible  <bruno@clisp.org>
40373
40374         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40375         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40376         non-IEEE numbers on i386, x86_64, ia64.
40377         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40378         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40379         * tests/test-isnanl.h: Include float.h.
40380         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40381
40382 2007-06-05  Bruno Haible  <bruno@clisp.org>
40383
40384         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40385         also the %a / %A. Handle the %a / %A code before this extra handling.
40386
40387 2007-06-05  Bruno Haible  <bruno@clisp.org>
40388
40389         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40390         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40391
40392 2007-06-05  Bruno Haible  <bruno@clisp.org>
40393
40394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40395         typo in variable name.
40396
40397 2007-06-05  Eric Blake  <ebb9@byu.net>
40398
40399         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40400         Reported by Simon Josefsson.
40401
40402 2007-06-04  Bruno Haible  <bruno@clisp.org>
40403
40404         Avoid test failures on some PowerPC platforms.
40405         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40406         Define differently for PowerPC.
40407         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40408         Reported by Gary V. Vaughan <gary@gnu.org>.
40409
40410 2007-06-02  Bruno Haible  <bruno@clisp.org>
40411
40412         Fix test-stdint failure on FreeBSD/ia64.
40413         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40414         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40415         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40416         * doc/headers/stdint.texi: Update.
40417
40418 2007-06-01  Bruno Haible  <bruno@clisp.org>
40419
40420         * tests/test-binary-io.c (main): Pass a third argument to open().
40421         Reported by Gary V. Vaughan <gary@gnu.org>.
40422
40423 2007-06-01  Bruno Haible  <bruno@clisp.org>
40424
40425         * doc/functions/frexpl.texi: Update for mingw.
40426
40427 2007-06-01  Bruno Haible  <bruno@clisp.org>
40428
40429         * tests/test-lseek.c (main): Disable test of errno for invalid third
40430         argument.
40431         * doc/functions/lseek.texi: Update.
40432         Reported by Gary V. Vaughan <gary@gnu.org>.
40433
40434 2007-05-28  Bruno Haible  <bruno@clisp.org>
40435
40436         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40437
40438 2007-05-31  Eric Blake  <ebb9@byu.net>
40439
40440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40441         cross compiling.
40442
40443 2007-05-30  Eric Blake  <ebb9@byu.net>
40444         and Bruno Haible  <bruno@clisp.org>
40445
40446         Work around mingw test failures exposed by m4-1.4.9b.
40447         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40448         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40449         moment.
40450
40451 2007-05-30  Bruno Haible  <bruno@clisp.org>
40452
40453         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40454         assuming that they are closed. Needed on HP-UX 11.
40455
40456 2007-05-29  Bruno Haible  <bruno@clisp.org>
40457
40458         Fix a problem with #include_next.
40459         * lib/dirent_.h: Split the double-inclusion guard.
40460         * lib/fcntl_.h: Likewise.
40461         * lib/float_.h: Likewise.
40462         * lib/iconv_.h: Likewise.
40463         * lib/inttypes_.h: Likewise.
40464         * lib/locale_.h: Likewise.
40465         * lib/math_.h: Likewise.
40466         * lib/netinet_in_.h: Likewise.
40467         * lib/search_.h: Likewise.
40468         * lib/signal_.h: Likewise.
40469         * lib/stdint_.h: Likewise.
40470         * lib/stdio_.h: Likewise.
40471         * lib/stdlib_.h: Likewise.
40472         * lib/string_.h: Likewise.
40473         * lib/sys_select_.h: Likewise.
40474         * lib/sys_socket_.h: Likewise.
40475         * lib/sys_stat_.h: Likewise.
40476         * lib/sys_time_.h: Likewise.
40477         * lib/sysexits_.h: Likewise.
40478         * lib/time_.h: Likewise.
40479         * lib/unistd_.h: Likewise.
40480         * lib/wchar_.h: Likewise.
40481         * lib/wctype_.h: Likewise.
40482
40483 2007-05-29  Bruno Haible  <bruno@clisp.org>
40484
40485         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40486         for the moment.
40487
40488 2007-05-29  Bruno Haible  <bruno@clisp.org>
40489
40490         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40491         invocation.
40492         Reported by Eric Blake.
40493
40494 2007-05-29  Bruno Haible  <bruno@clisp.org>
40495
40496         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40497         compiling case.
40498
40499 2007-05-29  Eric Blake  <ebb9@byu.net>
40500             Bruno Haible  <bruno@clisp.org>
40501
40502         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40503         cross compiles.
40504
40505 2007-05-28  Eric Blake  <ebb9@byu.net>
40506
40507         * modules/closein-tests (test_closein_LDADD): Support test on
40508         cygwin with libtool.
40509
40510 2007-05-28  Bruno Haible  <bruno@clisp.org>
40511
40512         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40513         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40514         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40515         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40516         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40517         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40518         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40519         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40520         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40521
40522 2007-05-28  Eric Blake  <ebb9@byu.net>
40523
40524         Unconditionally include <config.h> in unit tests.
40525         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40526         * tests/test-allocsa.c, tests/test-arcfour.c,
40527         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40528         tests/test-array_list.c, tests/test-array_oset.c,
40529         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40530         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40531         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40532         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40533         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40534         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40535         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40536         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40537         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40538         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40539         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40540         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40541         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40542         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40543         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40544         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40545         test-md5.c, test-memmem.c, test-printf-posix.c,
40546         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40547         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40548         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40549         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40550         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40551         test-vasnprintf-posix2.c, test-vasnprintf.c,
40552         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40553         test-vfprintf-posix.c, test-vprintf-posix.c,
40554         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40555         test-xvasprintf.c: Likewise.
40556
40557 2007-05-28  Bruno Haible  <bruno@clisp.org>
40558
40559         * gnulib-tool (func_import): Remember the --with-tests command-line
40560         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40561         Reported by Eric Blake.
40562
40563 2007-05-28  Bruno Haible  <bruno@clisp.org>
40564
40565         * modules/ftell-tests: New file.
40566         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40567         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40568
40569         * lib/ftell.c: New file.
40570         * modules/ftell: New file.
40571         * m4/ftell.m4: New file.
40572         * doc/functions/ftell.texi: Update.
40573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40574         REPLACE_FTELL.
40575         * lib/stdio_.h (rpl_ftell): New declaration.
40576         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40577         REPLACE_FTELL.
40578
40579 2007-05-28  Eric Blake  <ebb9@byu.net>
40580
40581         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40582
40583 2007-05-28  Bruno Haible  <bruno@clisp.org>
40584
40585         * modules/fseek-tests: New file.
40586         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40587         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40588
40589         * lib/fseek.c: New file.
40590         * modules/fseek: New file.
40591         * m4/fseek.m4: New file.
40592         * doc/functions/fseek.texi: Update.
40593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40594         REPLACE_FSEEK.
40595         * lib/stdio_.h (rpl_fseek): New declaration.
40596         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40597         REPLACE_FSEEK.
40598
40599 2007-05-28  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/stdio_.h (fflush): More comments.
40602
40603 2007-05-28  Bruno Haible  <bruno@clisp.org>
40604
40605         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40606         runtime test.
40607
40608 2007-05-28  Eric Blake  <ebb9@byu.net>
40609
40610         Improve lseek module.
40611         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40612         * lib/unistd_.h (lseek): Scale back link warning message.
40613         * tests/test-lseek.c: Beef up test.
40614         * tests/test-lseek.sh: Exercise more facets of lseek.
40615         Reported by Bruno Haible.
40616
40617 2007-05-28  Bruno Haible  <bruno@clisp.org>
40618
40619         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40620         to define.
40621
40622 2007-05-27  Bruno Haible  <bruno@clisp.org>
40623
40624         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40625
40626 2007-05-27  Bruno Haible  <bruno@clisp.org>
40627
40628         * modules/openmp: New file.
40629         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40630         Noah Misch.
40631
40632 2007-05-26  Bruno Haible  <bruno@clisp.org>
40633
40634         * modules/chdir-long (Depends-on): Add fchdir.
40635         * modules/chdir-safer (Depends-on): Likewise.
40636         * modules/fts (Depends-on): Likewise.
40637         * modules/fts-lgpl (Depends-on): Likewise.
40638         * modules/openat (Depends-on): Likewise.
40639         * modules/savewd (Depends-on): Likewise.
40640
40641 2007-05-24  Eric Blake  <ebb9@byu.net>
40642
40643         Fix lseek on mingw.
40644         * modules/lseek: New module.
40645         * m4/lseek.m4: New file.
40646         * lib/lseek.c: New file.
40647         * modules/lseek-tests: New file.
40648         * tests/test-lseek.c: New file.
40649         * tests/test-lseek.sh: New file.
40650         * MODULES.html.sh: Document lseek module.
40651         * modules/fflush (Depends-on): Add lseek, fseeko.
40652         * modules/fseeko (Depends-on): Likewise.
40653         * modules/ftello (Depends-on): Likewise.
40654         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40655         broken.
40656         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40657         broken.
40658         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40659         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40660         * lib/ftello.c (rpl_ftello): Likewise.
40661         * tests/test-fseeko.c (main): Test this.
40662         * tests/test-fseeko.sh: Likewise.
40663         * tests/test-ftello.c (main): Likewise.
40664         * tests/test-ftello.sh: Likewise.
40665         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40666         implies replacing fseek.
40667         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40668         HAVE_FTELLO.
40669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40670         * modules/unistd (Makefile.am): Likewise.
40671         * lib/unistd_.h (lseek): Declare a replacement.
40672         * doc/functions/lseek.texi (lseek): Document this fix.
40673         * doc/functions/fseek.texi (fseek): Likewise.
40674         * doc/functions/ftell.texi (ftell): Likewise.
40675
40676 2007-05-24  Bruno Haible  <bruno@clisp.org>
40677
40678         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40679         in the printed representation of a NaN.
40680         * tests/test-vasprintf-posix.c (test_function): Likewise.
40681         * tests/test-snprintf-posix.h (test_function): Likewise.
40682         * tests/test-sprintf-posix.h (test_function): Likewise.
40683         Reported by Eric Blake.
40684
40685 2007-05-23  Eric Blake  <ebb9@byu.net>
40686
40687         Fix fseeko/ftello on cygwin 1.5.24.
40688         * doc/functions/fseeko.texi (fseeko): Document the fix.
40689         * doc/functions/ftello.texi (ftello): Document the fix.
40690         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40691         * doc/functions/stdout.text (stdout): New file.
40692         * doc/functions/stderr.text (stderr): New file.
40693         * doc/gnulib.texi (Function Substitutes): Use new files.
40694         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40695         prior to 1.7.0.
40696         * tests/test-ftello.c (main): Likewise for ftello.
40697         * tests/test-fseeko.sh: New file.
40698         * tests/test-ftello.sh: New file.
40699         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40700         with seekable stdin.
40701         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40703         (gl_REPLACE_FSEEKO): New macro.
40704         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40705         * modules/fseeko (Files): Distribute fseeko.c.
40706         * modules/ftello (Files): Distribute ftello.c.
40707         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40708         mode.
40709         * lib/ftello.c (rpl_ftello): New file.
40710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40711         fseeko, ftello.
40712         (gl_STDIN_LARGE_OFFSET): New macro.
40713         * modules/stdio (Makefile.am): Perform the replacement.
40714         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40715
40716 2007-05-23  Bruno Haible  <bruno@clisp.org>
40717
40718         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40719         GNULIB_POSIXCHECK is defined.
40720
40721 2007-05-21  Bruno Haible  <bruno@clisp.org>
40722
40723         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40724         Check also the output for NaN arguments. When cross-compiling, guess
40725         no on IRIX.
40726         * lib/vasnprintf.c: Update comments.
40727         * tests/test-vasnprintf-posix.c (strisnan): New function.
40728         (test_function): Use it.
40729         * tests/test-vasprintf-posix.c (strisnan): New function.
40730         (test_function): Use it.
40731         * tests/test-snprintf-posix.h (strisnan): New function.
40732         (test_function): Use it.
40733         * tests/test-sprintf-posix.h (strisnan): New function.
40734         (test_function): Use it.
40735         Reported by Eric Blake.
40736
40737 2007-05-20  Bruno Haible  <bruno@clisp.org>
40738
40739         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40740         numbers that fails on BeOS.
40741         * doc/functions/frexpl.texi: Update.
40742
40743 2007-05-20  Jim Meyering  <jim@meyering.net>
40744
40745         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40746         forced upon us by glibc-2.6.
40747
40748 2007-05-20  Bruno Haible  <bruno@clisp.org>
40749
40750         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40751         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40752         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40753         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40754         NEED_PRINTF_INFINITE.
40755         (is_infinitel): New function.
40756         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40758         gl_PREREQ_VASNPRINTF_INFINITE.
40759         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40761         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40762         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40763         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40764         gl_PREREQ_VASNPRINTF_INFINITE.
40765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40772         * doc/functions/fprintf.texi: Update.
40773         * doc/functions/printf.texi: Update.
40774         * doc/functions/snprintf.texi: Update.
40775         * doc/functions/sprintf.texi: Update.
40776         * doc/functions/vfprintf.texi: Update.
40777         * doc/functions/vprintf.texi: Update.
40778         * doc/functions/vsnprintf.texi: Update.
40779         * doc/functions/vsprintf.texi: Update.
40780
40781 2007-05-20  Bruno Haible  <bruno@clisp.org>
40782
40783         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40784         was not found in libc.
40785         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40786
40787 2007-05-20  Bruno Haible  <bruno@clisp.org>
40788
40789         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40790         printed as "-nan" instead of "nan".
40791         * tests/test-vasprintf-posix.c (test_function): Likewise.
40792         * tests/test-snprintf-posix.h (test_function): Likewise.
40793         * tests/test-sprintf-posix.h (test_function): Likewise.
40794         Needed for HP-UX 11.
40795
40796 2007-05-20  Jim Meyering  <jim@meyering.net>
40797
40798         Fix buggy test for the fchownat-deref bug.
40799         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40800         symlink required for the run-test.  Without it, this test would
40801         always declare that fchownat doesn't work, and client code would
40802         unnecessarily use the replacement function with fixed libc.
40803         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40804         Reported by Greg Schafer.
40805
40806 2007-05-19  Bruno Haible  <bruno@clisp.org>
40807
40808         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40809         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40810         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40811         Needed for IRIX 6.5 and Solaris 2.5.1.
40812
40813 2007-05-19  Bruno Haible  <bruno@clisp.org>
40814
40815         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40816         (test_function): Skip tests involving -0.0 on platforms where
40817         -0.0 = 0.0.
40818         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40819         (test_function): Skip tests involving -0.0 on platforms where
40820         -0.0 = 0.0.
40821         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40822         (test_function): Skip tests involving -0.0 on platforms where
40823         -0.0 = 0.0.
40824         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40825         (test_function): Skip tests involving -0.0 on platforms where
40826         -0.0 = 0.0.
40827         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40828         tests.
40829         * tests/test-printf-posix.h (test_function): Likewise.
40830         * tests/test-printf-posix.output: Remove all -0.0 related results.
40831         Needed for IRIX 6.5.
40832
40833 2007-05-19  Bruno Haible  <bruno@clisp.org>
40834
40835         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40836         printed as "nan0x7fffffff" instead of "nan".
40837         * tests/test-vasprintf-posix.c (test_function): Likewise.
40838         * tests/test-snprintf-posix.h (test_function): Likewise.
40839         * tests/test-sprintf-posix.h (test_function): Likewise.
40840         * tests/test-fprintf-posix.h (NaN): Remove macro.
40841         (test_function): Remove all NaN related tests.
40842         * tests/test-printf-posix.h (NaN): Remove macro.
40843         (test_function): Remove all NaN related tests.
40844         * tests/test-printf-posix.output: Remove all NaN related results.
40845         Needed for IRIX 6.5.
40846
40847 2007-05-19  Bruno Haible  <bruno@clisp.org>
40848
40849         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40851
40852 2007-05-19  Bruno Haible  <bruno@clisp.org>
40853
40854         * lib/float_.h: New file.
40855         * m4/float_h.m4: New file.
40856         * modules/float: New file.
40857         * modules/isnanl (Dependencies): Add float.
40858         * modules/isnanl-nolibm (Dependencies): Likewise.
40859         * modules/mathl (Dependencies): Likewise.
40860         * modules/printf-frexpl (Dependencies): Likewise.
40861         * modules/signbit (Dependencies): Likewise.
40862         * modules/vasnprintf (Dependencies): Likewise.
40863         * doc/headers/float.texi: Update.
40864
40865 2007-05-19  Jim Meyering  <jim@meyering.net>
40866
40867         * lib/utimens.c (gl_futimens): Rename from futimens,
40868         now that glibc-2.6 declares futimens.
40869         * lib/utimens.h: Likewise.
40870
40871 2007-05-19  Bruno Haible  <bruno@clisp.org>
40872
40873         Avoid test failures on mingw.
40874         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40875         * tests/test-printf-posix.sh: Likewise.
40876         * tests/test-vfprintf-posix.sh: Likewise.
40877         * tests/test-vprintf-posix.sh: Likewise.
40878
40879 2007-05-19  Bruno Haible  <bruno@clisp.org>
40880
40881         Fix *printf result for NaN, Inf, -0.0 on mingw.
40882         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40883         * lib/vasnprintf.c: Include math.h and isnan.h.
40884         (is_infinite_or_zero): New function.
40885         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40886         values in the %f, %F, %e, %E, %g, %G directives.
40887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40888         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40889         gl_PRINTF_INFINITE and test its result. Invoke
40890         gl_PREREQ_VASNPRINTF_INFINITE.
40891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40898         * doc/functions/fprintf.texi: Update.
40899         * doc/functions/printf.texi: Update.
40900         * doc/functions/snprintf.texi: Update.
40901         * doc/functions/sprintf.texi: Update.
40902         * doc/functions/vfprintf.texi: Update.
40903         * doc/functions/vprintf.texi: Update.
40904         * doc/functions/vsnprintf.texi: Update.
40905         * doc/functions/vsprintf.texi: Update.
40906
40907 2007-05-19  Bruno Haible  <bruno@clisp.org>
40908
40909         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40910         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40911         Instead of multiplying with 10^k, set extra_zeroes to k.
40912         (scale10_round_long_double): Remove function.
40913
40914 2007-05-18  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40917         introduced on 2007-05-06.
40918
40919 2007-05-18  Bruno Haible  <bruno@clisp.org>
40920
40921         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40922         %g directives.
40923         * tests/test-vasprintf-posix.c (test_function): Likewise.
40924         * tests/test-snprintf-posix.h (test_function): Likewise.
40925         * tests/test-sprintf-posix.h (test_function): Likewise.
40926
40927 2007-05-18  Bruno Haible  <bruno@clisp.org>
40928
40929         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40930         (strmatch): New function.
40931         (test_function): Test the %f directive on numbers of various exponents.
40932         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40933         (strmatch): New function.
40934         (test_function): Test the %f directive on numbers of various exponents.
40935         * tests/test-snprintf-posix.h (strmatch): New function.
40936         (test_function): Test the %f directive on numbers of various exponents.
40937         * tests/test-sprintf-posix.h (strmatch): New function.
40938         (test_function): Test the %f directive on numbers of various exponents.
40939         * tests/test-snprintf-posix.c (SIZEOF): New macro.
40940         * tests/test-sprintf-posix.c (SIZEOF): New macro.
40941         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
40942         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
40943
40944 2007-05-18  Bruno Haible  <bruno@clisp.org>
40945
40946         Add support for 'long double' number output.
40947         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
40948         * lib/vasnprintf.c: Include math.h and float+.h.
40949         (mp_limb_t): New type.
40950         (GMP_LIMB_BITS): New macro.
40951         (mp_twolimb_t): New type.
40952         (GMP_TWOLIMB_BITS): New macro.
40953         (mpn_t): New type.
40954         (multiply, divide, convert_to_decimal, decode_long_double,
40955         scale10_round_long_double, scale10_round_decimal_long_double,
40956         floorlog10l): New functions.
40957         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
40958         for the %f, %F, %e, %E, %g, %G directives.
40959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
40960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40961         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
40962         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
40963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40970         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
40971         * modules/snprintf-posix (Depends-on): Likewise.
40972         * modules/sprintf-posix (Depends-on): Likewise.
40973         * modules/vasnprintf-posix (Depends-on): Likewise.
40974         * modules/vasprintf-posix (Depends-on): Likewise.
40975         * modules/vfprintf-posix (Depends-on): Likewise.
40976         * modules/vsnprintf-posix (Depends-on): Likewise.
40977         * modules/vsprintf-posix (Depends-on): Likewise.
40978         * modules/vasnprintf (Files): Add lib/float+.h.
40979         * doc/functions/fprintf.texi: Update.
40980         * doc/functions/printf.texi: Update.
40981         * doc/functions/snprintf.texi: Update.
40982         * doc/functions/sprintf.texi: Update.
40983         * doc/functions/vfprintf.texi: Update.
40984         * doc/functions/vprintf.texi: Update.
40985         * doc/functions/vsnprintf.texi: Update.
40986         * doc/functions/vsprintf.texi: Update.
40987
40988 2007-05-18  Bruno Haible  <bruno@clisp.org>
40989
40990         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
40991
40992 2007-05-18  Bruno Haible  <bruno@clisp.org>
40993
40994         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
40995         for printing 64-bit integers. Needed for mingw.
40996
40997 2007-05-18  Bruno Haible  <bruno@clisp.org>
40998
40999         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41000         gl_FUNC_FREXPL_WORKS.
41001         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41002
41003 2007-05-18  Bruno Haible  <bruno@clisp.org>
41004
41005         * modules/frexpl-nolibm-tests: New file.
41006
41007         * modules/frexpl-nolibm: New file.
41008         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41009
41010 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41011
41012         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41013         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41014         GCC 4.2, which otherwise issues a lot of warnings.
41015         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41016         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41017         Likewise.
41018         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41019         * modules/iconv_open (iconv.h): Likewise.
41020         * modules/locale (locale.h): Likewise.
41021         * modules/netinet_in (netinet/in.h): Likewise.
41022         * modules/sys_select (sys_select.h): Likewise.
41023         * modules/sys_socket (sys/socket.h): Likewise.
41024         * modules/sys_stat (sys/stat.h): Likewise.
41025         * modules/sysexits (sysexits.h): Likewise.
41026         * modules/unistd (unistd.h): Likewise.
41027
41028 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41029
41030         * modules/closein-tests (Makefile.am): Distribute
41031         `test-closein.sh'.
41032
41033 2007-05-17  Bruno Haible  <bruno@clisp.org>
41034
41035         * tests/test-printf-posix.output: Renamed from
41036         tests/test-fprintf-posix.out.
41037         * modules/fprintf-posix-tests: Update.
41038         * modules/printf-posix-tests: Update.
41039         * modules/vfprintf-posix-tests: Update.
41040         * modules/vprintf-posix-tests: Update.
41041         * tests/test-fprintf-posix.sh: Update.
41042         * tests/test-printf-posix.sh: Update.
41043         * tests/test-vfprintf-posix.sh: Update.
41044         * tests/test-vprintf-posix.sh: Update.
41045         Reported by Ralf Wildenhues.
41046
41047 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41048
41049         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41050         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41051         GCC 4.2, which otherwise issues a lot of warnings.
41052         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41053         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41054         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41055         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41056         it should no longer be needed.
41057         * lib/string_.h: Likewise.
41058         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41059         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41060         * modules/inttypes (inttypes.h): Likewise.
41061         * modules/math (math.h): Likewise.
41062         * modules/search (search.h): Likewise.
41063         * modules/signal (signal.h): Likewise.
41064         * modules/stdint (stdint.h): Likewise.
41065         * modules/stdio (stdio.h): Likewise.
41066         * modules/stdlib (stdlib.h): Likewise.
41067         * modules/string (string.h): Likewise.
41068         * modules/sys_time (sys/time.h): Likewise.
41069         * modules/time (time.h): Likewise.
41070         * modules/wchar (wchar.h): Likewise.
41071         * modules/wctype (wtype.h): Likewise.
41072
41073 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41074
41075         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41076
41077 2007-05-13  Bruno Haible  <bruno@clisp.org>
41078
41079         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41080         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41081         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41082         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41083         (gl_PREREQ_STRTOK_R): Don't require it here.
41084
41085 2007-05-13  Bruno Haible  <bruno@clisp.org>
41086
41087         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41088         when used in C++ mode.
41089
41090 2007-05-12  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/linebuffer.h: Tweak doc.
41093         * lib/linebuffer.c: Likewise.
41094
41095 2007-05-12  James Youngman  <jay@gnu.org>
41096
41097         * lib/linebuffer.c (readlinebuffer_delim): New function,
41098         like readlinebuffer, but use a caller-specified delimiter.
41099         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41100         as the delimiter.
41101         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41102
41103 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41104
41105         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41106         * modules/openat (Files): Remove openat-die.c.
41107         (Depends-on): Add openat-die.
41108         * modules/openat-die: New module.
41109
41110 2007-05-06  Bruno Haible  <bruno@clisp.org>
41111
41112         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41113         Update with info about Cygwin.
41114         * doc/functions/fprintf.texi: Update.
41115         * doc/functions/printf.texi: Update.
41116         * doc/functions/snprintf.texi: Update.
41117         * doc/functions/sprintf.texi: Update.
41118         * doc/functions/vfprintf.texi: Update.
41119         * doc/functions/vprintf.texi: Update.
41120         * doc/functions/vsnprintf.texi: Update.
41121         * doc/functions/vsprintf.texi: Update.
41122         Reported by Eric Blake.
41123
41124 2007-05-06  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41127         padding ourselves for the floating-point directives.
41128         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41131         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41132         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41133         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41135         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41137         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41140         * tests/test-snprintf-posix.h (test_function): Also check the width
41141         and some flags in the %f directive.
41142         * tests/test-sprintf-posix.h (test_function): Likewise.
41143         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41144         * tests/test-vasprintf-posix.c (test_function): Likewise.
41145         * doc/functions/fprintf.texi: Update.
41146         * doc/functions/printf.texi: Update.
41147         * doc/functions/snprintf.texi: Update.
41148         * doc/functions/sprintf.texi: Update.
41149         * doc/functions/vfprintf.texi: Update.
41150         * doc/functions/vprintf.texi: Update.
41151         * doc/functions/vsnprintf.texi: Update.
41152         * doc/functions/vsprintf.texi: Update.
41153
41154 2007-05-06  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41157         pass the ' flag character to sprintf or snprintf.
41158         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41161         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41162         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41170         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41171         flag.
41172         * tests/test-sprintf-posix.h (test_function): Likewise.
41173         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41174         * tests/test-vasprintf-posix.c (test_function): Likewise.
41175         * doc/functions/fprintf.texi: Update.
41176         * doc/functions/printf.texi: Update.
41177         * doc/functions/snprintf.texi: Update.
41178         * doc/functions/sprintf.texi: Update.
41179         * doc/functions/vfprintf.texi: Update.
41180         * doc/functions/vprintf.texi: Update.
41181         * doc/functions/vsnprintf.texi: Update.
41182         * doc/functions/vsprintf.texi: Update.
41183
41184 2007-05-01  Bruno Haible  <bruno@clisp.org>
41185
41186         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41187
41188 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41189
41190         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41191         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41192
41193 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41194
41195         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41196         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41198
41199 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41200
41201         * lib/argp-help.c (struct hol_entry): New member `ord'.
41202         (HOL_ENTRY_PTRCMP): Use ord for comparison
41203         (hol_sort): Initialize ord.
41204
41205 2007-05-01  Bruno Haible  <bruno@clisp.org>
41206
41207         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41208         Reported by Eric Blake.
41209         * doc/gnulib.texi (Function Substitutes): Update.
41210
41211 2007-05-01  Bruno Haible  <bruno@clisp.org>
41212
41213         * doc/functions.texi: Remove file, now redundant through
41214         doc/functions/*.texi.
41215
41216 2007-05-01  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/argp (Depends-on): Add sleep.
41219
41220 2007-05-01  Bruno Haible  <bruno@clisp.org>
41221
41222         * modules/sleep-tests: New file.
41223         * tests/test-sleep.c: New file.
41224
41225         * modules/sleep: New file.
41226         * lib/sleep.c: New file.
41227         * m4/sleep.m4: New file.
41228         * lib/unistd_.h (sleep): New declaration.
41229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41230         HAVE_SLEEP.
41231         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41232         * doc/functions/sleep.texi: Document the sleep module.
41233
41234 2007-05-01  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/sigprocmask.h: Remove file.
41237         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41238         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41239         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41240         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41241         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41242         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41243         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41244         HAVE_SIGSET_T as a shell variable.
41245         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41246         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41247         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41248         (Depends-on): Add signal. Remove verify.
41249         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41250         (Include): Mention <signal.h> instead of sigprocmask.h.
41251         * NEWS: Mention the change.
41252         * lib/fatal-signal.c: Don't include sigprocmask.h.
41253
41254 2007-05-01  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/signal: New file.
41257         * lib/signal_.h: New file.
41258         * m4/signal_h.m4: New file.
41259
41260 2007-05-01  Bruno Haible  <bruno@clisp.org>
41261
41262         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41263         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41264         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41265         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41266
41267 2007-05-01  Bruno Haible  <bruno@clisp.org>
41268
41269         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41270         configure time.
41271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41272         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41273         * modules/sys_stat (Makefile.am): Substitute their values into
41274         sys/stat.h.
41275
41276 2007-05-01  Bruno Haible  <bruno@clisp.org>
41277
41278         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41279         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41280         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41281
41282 2007-05-01  Bruno Haible  <bruno@clisp.org>
41283
41284         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41285         'assert' module here.
41286
41287 2007-05-01  Bruno Haible  <bruno@clisp.org>
41288
41289         * doc/functions/*.texi: New files.
41290         * doc/functions/google-ranking.txt: New file.
41291         * doc/gnulib.texi (Function Substitutes): New chapter.
41292         (ctime, inet_ntoa): Remove sections.
41293         * doc/ctime.texi: Remove file.
41294         * doc/inet_ntoa.texi: Remove file.
41295         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41296         dependencies.
41297         (%.info): New rule, specifying a --reference-limit.
41298
41299 2007-05-01  Bruno Haible  <bruno@clisp.org>
41300
41301         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41302
41303 2007-05-01  Bruno Haible  <bruno@clisp.org>
41304
41305         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41306         the portability of 'mkdir' to mingw systems.
41307
41308 2007-05-01  Bruno Haible  <bruno@clisp.org>
41309
41310         * doc/headers/google-ranking.txt: New file.
41311
41312 2007-04-30  Eric Blake  <ebb9@byu.net>
41313
41314         Prefer fseeko to fseek.
41315         * modules/getpass (Depends-on): Add fseeko.
41316         * lib/getpass.c (getpass): Use fseeko, not fseek.
41317
41318 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41319
41320         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41321         assumes the sorting is stable, while most qsort implementations
41322         are not.  Use argument addresses to ensure they never compare as
41323         equal.
41324
41325         * tests/test-argp-2.sh (usage-indent test): Fix output
41326         (func_compare): Restore diff options
41327         * tests/test-argp.c: Restore #include "progname.h"
41328
41329 2007-04-29  Bruno Haible  <bruno@clisp.org>
41330
41331         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41332         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41333         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41335         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41336         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41337         (TESTS, check_PROGRAMS): Add test-snprintf.
41338         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41339         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41340         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41341         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41342         assertions that fail on HP-UX, OSF/1, or IRIX.
41343         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41344
41345 2007-04-29  Bruno Haible  <bruno@clisp.org>
41346
41347         * MODULES.html.sh (posix_functions): Remove 'contents'.
41348
41349 2007-04-29  Karl Berry  <karl@gnu.org>
41350
41351         * config/srclist.txt (gendocs_template_min): new entry.
41352
41353 2007-04-29  Bruno Haible  <bruno@clisp.org>
41354
41355         Work around fpurge bug on BSD systems.
41356         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41357         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41358         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41359         fpurge to rpl_fpurge if the system already has this function.
41360         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41361         the case where the system already has this function. Correct invariants
41362         on BSD systems.
41363         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41364         BSD systems.
41365
41366 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41367
41368         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41369         proposed by Sven Verdoolaege.
41370
41371         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41372         options.
41373         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41374         (usage and help tests): Update
41375
41376 2007-04-29  Bruno Haible  <bruno@clisp.org>
41377
41378         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41379         Print more information in case of failure. Disable a test on BeOS.
41380
41381 2007-04-29  Bruno Haible  <bruno@clisp.org>
41382
41383         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41384         This helps debugging on systems on which no gdb is available.
41385
41386 2007-04-29  Bruno Haible  <bruno@clisp.org>
41387
41388         * lib/freading.h: Improve comments.
41389         * lib/fwriting.h: Likewise.
41390         * tests/test-freading.c (main): Don't check freading immediately after
41391         repositioning. Needed for glibc.
41392
41393 2007-04-29  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/freading.c (freading): Trivial simplification.
41396
41397 2007-04-28  Bruno Haible  <bruno@clisp.org>
41398
41399         * tests/test-fwriting.c (main): Also test the interaction between
41400         fflush and fwriting.
41401         * modules/fwriting-tests (Depends-on): Add fflush.
41402
41403         * tests/test-freading.c (main): Also test the interaction between
41404         fflush and freading.
41405         * modules/freading-tests (Depends-on): Add fflush.
41406
41407 2007-04-28  Bruno Haible  <bruno@clisp.org>
41408
41409         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41410         fseeko and ftello.
41411         Suggested by Eric Blake.
41412
41413 2007-04-28  Jim Meyering  <jim@meyering.net>
41414
41415         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41416         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41417         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41418
41419 2007-04-27  Eric Blake  <ebb9@byu.net>
41420
41421         * doc/headers/assert.texi (assert.h): Document assert module use.
41422
41423 2007-04-27  Bruno Haible  <bruno@clisp.org>
41424
41425         * doc/headers/*.texi: New files.
41426         * doc/gnulib.texi (Header File Substitutes): New chapter.
41427         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41428         dependencies.
41429         (standards.info ,standards.html, standards.dvi): Update dependencies.
41430         (mostlyclean, clean): New targets.
41431
41432 2007-04-27  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41435         * modules/sysexits (Files, Makefile.am): Update.
41436
41437         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41438         * modules/sys_socket (Files, Makefile.am): Update.
41439
41440         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41441         * modules/sys_stat (Files, Makefile.am): Update.
41442
41443 2007-04-27  Eric Blake  <ebb9@byu.net>
41444
41445         * lib/freading.h: Improve comments.
41446         * lib/fwriting.h: Likewise.
41447         * lib/fflush.c: Likewise.
41448
41449         Fix closein for mingw.
41450         * modules/closein-tests: Add tests for closein.
41451         * tests/test-closein.c: New file.
41452         * tests/test-closein.sh: Likewise.
41453         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41454         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41455
41456 2007-04-27  Bruno Haible  <bruno@clisp.org>
41457
41458         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41459         version is < 6.
41460         * lib/math_.h [__DECC]: Likewise.
41461         * lib/stdio_.h [__DECC]: Likewise.
41462         * lib/stdlib_.h [__DECC]: Likewise.
41463         * lib/string_.h [__DECC]: Likewise.
41464         * lib/time_.h [__DECC]: Likewise.
41465         * lib/wchar_.h [__DECC]: Likewise.
41466         * lib/wctype_.h [__DECC]: Likewise.
41467
41468 2007-04-27  Bruno Haible  <bruno@clisp.org>
41469
41470         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41471
41472 2007-04-27  Bruno Haible  <bruno@clisp.org>
41473
41474         * lib/fflush.c: Add comments.
41475         * modules/fpurge-tests (Depends-on): Add fflush.
41476         * modules/freadable-tests (Depends-on): Likewise.
41477         * modules/fwritable-tests (Depends-on): Likewise.
41478
41479 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41480
41481         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41482         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41483         Report by Bruno Haible <bruno@clisp.org>.
41484
41485 2007-04-26  Eric Blake  <ebb9@byu.net>
41486
41487         Fix fflush on mingw.
41488         * modules/fflush (Depends-on): Add freading.
41489         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41490         but unread data.
41491
41492 2007-04-26  Eric Blake  <ebb9@byu.net>
41493         and Bruno Haible  <bruno@clisp.org>
41494
41495         Implement freading and fwriting.
41496         * lib/freading.c: New file.
41497         * lib/freading.h: Likewise.
41498         * m4/freading.m4: Likewise.
41499         * modules/freading: Likewise.
41500         * modules/freading-tests: Likewise.
41501         * tests/test-freading.c: Likewise.
41502         * lib/fwriting.c: New file.
41503         * lib/fwriting.h: Likewise.
41504         * m4/fwriting.m4: Likewise.
41505         * modules/fwriting: Likewise.
41506         * modules/fwriting-tests: Likewise.
41507         * tests/test-fwriting.c: Likewise.
41508         * MODULES.html.sh (File stream based Input/Output): Mention them.
41509
41510 2007-04-26  Bruno Haible  <bruno@clisp.org>
41511
41512         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41513         'long' when we assume it.
41514         Suggested by Eric Blake.
41515
41516 2007-04-26  Bruno Haible  <bruno@clisp.org>
41517
41518         Ensure fseeko, ftello are declared on glibc systems.
41519         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41520         * modules/fseeko (configure.ac-early): Likewise.
41521         * modules/ftello (configure.ac-early): Likewise.
41522         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41523         AC_FUNC_FSEEKO for this.
41524         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41525         (gl_CHECK_FSEEKO): Remove macro.
41526
41527 2007-04-26  Bruno Haible  <bruno@clisp.org>
41528
41529         * tests/test-fflush.c (main): Also check the ftell result after
41530         fflush and fseek/fseeko.
41531         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41532         file descriptor position cache in the stream.
41533         * lib/fseeko.c (rpl_fseeko): Likewise.
41534
41535 2007-04-26  Bruno Haible  <bruno@clisp.org>
41536
41537         * modules/fflush-tests (Depends-on): Add fseeko.
41538
41539 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41540             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41541
41542         * lib/argz_.h: ensure error_t definition is obtained in same
41543         mechanism system argz.h would have.
41544         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41545         argz facilities are known bad.  Err on the side of caution if
41546         cross-compiling.
41547
41548 2007-04-25  Eric Blake  <ebb9@byu.net>
41549
41550         * lib/fpurge.c (includes): Use stdlib.h for free.
41551         * tests/test-fflush.c (main): Also test fflush-fseeko.
41552
41553 2007-04-25  Bruno Haible  <bruno@clisp.org>
41554
41555         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41556         * lib/fseeko.c: New file.
41557         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41558         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41559         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41560         gl_FUNC_FSEEKO.
41561         (gl_FUNC_FSEEKO): Invoke it.
41562         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41563         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41564         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41565
41566 2007-04-25  Bruno Haible  <bruno@clisp.org>
41567
41568         * modules/fflush (Depends-on): Add ftello.
41569
41570 2007-04-25  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/ftello-tests: New file.
41573         * tests/test-ftello.c: New file.
41574
41575         * modules/ftello: New file.
41576         * m4/ftello.m4: New file.
41577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41578         HAVE_FTELLO.
41579         * lib/stdio_.h (ftello): New declaration.
41580         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41581         HAVE_FTELLO.
41582
41583 2007-04-25  Bruno Haible  <bruno@clisp.org>
41584
41585         * modules/fseeko-tests: New file.
41586         * tests/test-fseeko.c: New file.
41587
41588         * modules/fseeko: New file.
41589         * m4/fseeko.m4: New file.
41590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41591         HAVE_FSEEKO.
41592         * lib/stdio_.h (fseeko): New declaration.
41593         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41594         HAVE_FSEEKO.
41595
41596 2007-04-25  Bruno Haible  <bruno@clisp.org>
41597
41598         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41599
41600 2007-04-25  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41603         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41604         * tests/test-unistd.c: Likewise.
41605         * tests/test-fcntl.c: Likewise.
41606
41607 2007-04-23  Eric Blake  <ebb9@byu.net>
41608
41609         * lib/fflush.c: Fix missing include.
41610         Reported by Bruno Haible.
41611
41612 2007-04-23  Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41615         Reported by Eric Blake.
41616
41617 2007-04-23  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41620
41621 2007-04-23  Bruno Haible  <bruno@clisp.org>
41622
41623         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41624
41625 2007-04-23  Bruno Haible  <bruno@clisp.org>
41626
41627         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41628         Needed on HP-UX 11.
41629
41630 2007-04-16  Eric Blake  <ebb9@byu.net>
41631
41632         Make fflush rely on fpurge.
41633         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41634         open coding all variants.
41635         * modules/fflush (Depends-on): Add fpurge and unistd.
41636         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41637         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41638
41639         Fix --with-tests compilation on cygwin.
41640         * modules/argmatch-tests (Makefile.am): List gnulib library first
41641         in LDADD.
41642         * modules/argp-tests (Makefile.am): Likewise.
41643         * modules/array-list-tests (Makefile.am): Likewise.
41644         * modules/array-oset-tests (Makefile.am): Likewise.
41645         * modules/avltree-list-tests (Makefile.am): Likewise.
41646         * modules/avltree-oset-tests (Makefile.am): Likewise.
41647         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41648         * modules/carray-list-tests (Makefile.am): Likewise.
41649         * modules/dirname-tests (Makefile.am): Likewise.
41650         * modules/frexp-tests (Makefile.am): Likewise.
41651         * modules/isnanl-tests (Makefile.am): Likewise.
41652         * modules/linked-list-tests (Makefile.am): Likewise.
41653         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41654         * modules/lock-tests (Makefile.am): Likewise.
41655         * modules/rbtree-list-tests (Makefile.am): Likewise.
41656         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41657         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41658         * modules/tls-tests (Makefile.am): Likewise.
41659         * modules/tsearch-tests (Makefile.am): Likewise.
41660         * modules/xvasprintf-tests (Makefile.am): Likewise.
41661
41662         Fix fpurge for cygwin.
41663         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41664         value.
41665         * modules/fpurge-tests (Depends-on): Clean up trash.
41666
41667 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41668
41669         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41670
41671         * m4/autobuild.m4: Re-indent.
41672
41673 2007-04-13  Bruno Haible  <bruno@clisp.org>
41674
41675         * modules/fpurge-tests: New file.
41676         * tests/test-fpurge.c: New file.
41677
41678         * modules/fpurge: New file.
41679         * lib/fpurge.h: New file.
41680         * lib/fpurge.c: New file.
41681         * m4/fpurge.m4: New file.
41682
41683 2007-04-13  Bruno Haible  <bruno@clisp.org>
41684
41685         * modules/fbufmode-tests: New file.
41686         * tests/test-fbufmode.c: New file.
41687
41688         * modules/fbufmode: New file.
41689         * lib/fbufmode.h: New file.
41690         * lib/fbufmode.c: New file.
41691         * m4/fbufmode.m4: New file.
41692
41693 2007-04-13  Bruno Haible  <bruno@clisp.org>
41694
41695         * modules/fwritable-tests: New file.
41696         * tests/test-fwritable.c: New file.
41697
41698         * modules/fwritable: New file.
41699         * lib/fwritable.h: New file.
41700         * lib/fwritable.c: New file.
41701         * m4/fwritable.m4: New file.
41702
41703 2007-04-13  Bruno Haible  <bruno@clisp.org>
41704
41705         * modules/freadable-tests: New file.
41706         * tests/test-freadable.c: New file.
41707
41708         * modules/freadable: New file.
41709         * lib/freadable.h: New file.
41710         * lib/freadable.c: New file.
41711         * m4/freadable.m4: New file.
41712
41713 2007-04-13  Bruno Haible  <bruno@clisp.org>
41714
41715         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41716         MOSTLYCLEANFILES.
41717
41718 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41719
41720         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41721         gzip bootstrap.conf to avoid dragging in i18n machinery.
41722         (gnulib_tool_option): Use it.
41723
41724 2007-04-13  Bruno Haible  <bruno@clisp.org>
41725
41726         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41727         %F directives.
41728         * tests/test-vasprintf-posix.c (test_function): Likewise.
41729         * tests/test-snprintf-posix.h (test_function): Likewise.
41730         * tests/test-sprintf-posix.h (test_function): Likewise.
41731         * tests/test-fprintf-posix.h (test_function): Likewise.
41732         * tests/test-printf-posix.h (test_function): Likewise.
41733         * tests/test-fprintf-posix.out: Likewise.
41734
41735 2007-04-13  Bruno Haible  <bruno@clisp.org>
41736
41737         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41738         * modules/tls-tests (configure.ac): Likewise.
41739         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41740
41741 2007-04-13  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/tls.c (glthread_tls_get): Fix return type.
41744         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41745
41746 2007-04-12  Eric Blake  <ebb9@byu.net>
41747
41748         * modules/gettime (Depends-on): Remove gettime.
41749         Reported by Dmitry V. Levin.
41750
41751 2007-04-12  Bruno Haible  <bruno@clisp.org>
41752
41753         * modules/fflush (Include): Mention <stdio.h>.
41754         * modules/strtoimax (Include): Mention <inttypes.h>.
41755         * modules/strtoumax (Include): Likewise.
41756
41757 2007-04-12  Eric Blake  <ebb9@byu.net>
41758
41759         * .cvsignore: New file.
41760         * .gitignore: Likewise.
41761
41762 2007-04-12  Bruno Haible  <bruno@clisp.org>
41763
41764         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41765         not before, since $(LDADD) often contains libgnu.a.
41766         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41767         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41768         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41769         Needed on Cygwin.
41770
41771 2007-04-12  Eric Blake  <ebb9@byu.net>
41772
41773         Work around glibc's failure to flush stdin on fclose.
41774         * lib/closein.c (close_stdin): Flush stdin before closing.
41775
41776         Work around glibc's failure to reset seekable stdin on exit.
41777         * modules/closein: New module.
41778         * lib/closein.c: New file.
41779         * lib/closein.h: Likewise.
41780         * m4/closein.m4: Likewise.
41781         * MODULES.html.sh (File stream based Input/Output): Document it.
41782
41783 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41784
41785         * gnulib-tool: Rename generated 'autobuild' script to
41786         'do-autobuild' in --create-megatestdir output.
41787
41788         * doc/gnulib.texi (Build robot for gnulib): Fix.
41789
41790 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41791
41792         * modules/sysexits (Depends-on): Add absolute-header.
41793
41794 2007-04-12  Eric Blake  <ebb9@byu.net>
41795
41796         No need to preserve errno on success.
41797         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41798         Reported by Bruno Haible.
41799
41800 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41801
41802         * MODULES.html.sh (Support for maintaining and releasing
41803         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41804
41805 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41806
41807         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41808
41809 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41810
41811         * modules/autobuild: New module.
41812
41813         * m4/autobuild.m4: New file.
41814
41815 2007-04-11  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41818         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41819         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41827         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41828         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41829         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41831         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41832         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41834         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41835         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41837         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41838         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41840         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41841         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41842         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41843         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41844         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41845         Reported by Eric Blake.
41846
41847 2007-04-11  Bruno Haible  <bruno@clisp.org>
41848
41849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41850
41851 2007-04-10  Bruno Haible  <bruno@clisp.org>
41852
41853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41854         for NaN and Infinity. Needed on FreeBSD 6.1.
41855         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41856         regarding results for "%010a" of Infinity and NaN.
41857         * tests/test-vasprintf-posix.c (test_function): Likewise.
41858         * tests/test-snprintf-posix.h (test_function): Likewise.
41859         * tests/test-sprintf-posix.h (test_function): Likewise.
41860         * tests/test-fprintf-posix.h (test_function): Likewise.
41861         * tests/test-printf-posix.h (test_function): Likewise.
41862         * tests/test-fprintf-posix.out: Likewise.
41863
41864 2007-04-10  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/locale-tests: New file.
41867         * tests/test-locale.c: New file.
41868
41869         * modules/locale: New file.
41870         * lib/locale_.h: New file.
41871         * m4/locale_h.m4: New file.
41872
41873 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41874             Bruno Haible  <bruno@clisp.org>
41875
41876         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41877         be determined, test for availability of the copysignf, copysign,
41878         copysignl functions.
41879         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41880         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41881         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41882
41883 2007-04-09  Eric Blake  <ebb9@byu.net>
41884
41885         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41886         * modules/stdio (Makefile.am): Support fflush.
41887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41888         * modules/fflush: New file.
41889         * lib/fflush.c: Likewise.
41890         * m4/fflush.m4: Likewise.
41891         * modules/fflush-tests: New test.
41892         * tests/test-fflush.c: Likewise.
41893         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41894
41895 2007-04-06  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41898         (VASNPRINTF): Use signbit for faster determination whether to print a
41899         minus sign.
41900         * modules/vasnprintf (Files): Remove lib/float+.h.
41901         * modules/fprintf-posix (Depends-on): Add signbit.
41902         * modules/snprintf-posix (Depends-on): Likewise.
41903         * modules/sprintf-posix (Depends-on): Likewise.
41904         * modules/vasnprintf-posix (Depends-on): Likewise.
41905         * modules/vasprintf-posix (Depends-on): Likewise.
41906         * modules/vfprintf-posix (Depends-on): Likewise.
41907         * modules/vsnprintf-posix (Depends-on): Likewise.
41908         * modules/vsprintf-posix (Depends-on): Likewise.
41909
41910 2007-04-06  Bruno Haible  <bruno@clisp.org>
41911
41912         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41913         * tests/test-frexpl.c (main): Likewise.
41914         * tests/test-ldexpl.c (main): Likewise.
41915         * modules/frexp-tests (Depends-on): Add signbit.
41916         * modules/frexpl-tests (Depdends-on): Likewise.
41917         * modules/ldexpl-tests (Depdends-on): Likewise.
41918
41919 2007-04-06  Bruno Haible  <bruno@clisp.org>
41920
41921         * modules/signbit-tests: New file.
41922         * tests/test-signbit.c: New file.
41923
41924         * modules/signbit: New file.
41925         * lib/signbitf.c: New file.
41926         * lib/signbitd.c: New file.
41927         * lib/signbitl.c: New file.
41928         * m4/signbit.m4: New file.
41929         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41930         (signbit): New macro.
41931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41932         REPLACE_SIGNBIT.
41933         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41934         REPLACE_FREXPL into math.h.
41935
41936 2007-04-06  Bruno Haible  <bruno@clisp.org>
41937
41938         * modules/isnanf-nolibm-tests: New file.
41939         * tests/test-isnanf.c: New file.
41940
41941         * modules/isnanf-nolibm: New file.
41942         * lib/isnanf.h: New file.
41943         * lib/isnanf.c: New file.
41944         * lib/isnan.c: Consider the USE_FLOAT macro.
41945         * m4/isnanf.m4: New file.
41946
41947 2007-04-06  Bruno Haible  <bruno@clisp.org>
41948
41949         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
41950         (Link): New section.
41951
41952         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
41953
41954 2007-04-06  Bruno Haible  <bruno@clisp.org>
41955
41956         Assume the 'long double' type.
41957         * m4/longdouble.m4: Remove file.
41958         * config/srclist.txt: Don't mention longdouble.m4.
41959         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
41960         * lib/float+.h: Likewise.
41961         * lib/frexp.c: Likewise.
41962         * lib/printf-args.h: Likewise.
41963         * lib/printf-args.c: Likewise.
41964         * lib/printf-frexp.c: Likewise.
41965         * lib/printf-parse.c: Likewise.
41966         * lib/vasnprintf.c: Likewise.
41967         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
41968         * m4/intl.m4: Likewise.
41969         * m4/isnanl.m4: Likewise.
41970         * m4/printf.m4: Likewise.
41971         * m4/printf-frexpl.m4: Likewise.
41972         * m4/vasnprintf.m4: Likewise.
41973         * modules/allocsa (Files): Remove m4/longdouble.m4.
41974         * modules/gettext (Files): Likewise.
41975         * modules/relocatable-prog-wrapper (Files): Likewise.
41976         * modules/vasnprintf (Files): Likewise.
41977         * modules/isnanl (Files): Likewise.
41978         (Include): Simplify.
41979         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
41980         (Include): Simplify.
41981         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
41982         (Include): Simplify.
41983         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
41984         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41985         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
41986         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41987         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41988         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41989         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
41990         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41991         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41992         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41993         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
41994         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41995         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
41996         * tests/test-isnanl.c: Likewise.
41997         * tests/test-snprintf-posix.h: Likewise.
41998         * tests/test-sprintf-posix.h: Likewise.
41999         * tests/test-vasnprintf-posix.c: Likewise.
42000         * tests/test-vasnprintf-posix2.c: Likewise.
42001         * tests/test-vasprintf-posix.c: Likewise.
42002
42003 2007-04-06  Bruno Haible  <bruno@clisp.org>
42004
42005         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42006         * lib/math_.h [__DECC]: Include the overridden include file through
42007         #include_next, outside the double-inclusion guard.
42008         * lib/stdio_.h [__DECC]: Likewise.
42009         * lib/stdlib_.h [__DECC]: Likewise.
42010         * lib/string_.h [__DECC]: Likewise.
42011         * lib/time_.h [__DECC]: Likewise.
42012         * lib/wchar_.h [__DECC]: Likewise.
42013         * lib/wctype_.h [__DECC]: Likewise.
42014         * lib/inttypes_.h [__DECC]: Likewise.
42015         Reported by Albert Chin <china@thewrittenword.com> in
42016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42017
42018 2007-04-04  Eric Blake  <ebb9@byu.net>
42019
42020         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42021         1.5.x.
42022
42023 2007-04-04  Bruno Haible  <bruno@clisp.org>
42024
42025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42026         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42027
42028 2007-04-04  Bruno Haible  <bruno@clisp.org>
42029
42030         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42031         results for "%010a" of Infinity and NaN.
42032         * tests/test-vasprintf-posix.c (test_function): Likewise.
42033         * tests/test-snprintf-posix.h (test_function): Likewise.
42034         * tests/test-sprintf-posix.h (test_function): Likewise.
42035         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42036         * tests/test-printf-posix.h (test_function): Likewise.
42037         * tests/test-fprintf-posix.out: Update.
42038         Needed for FreeBSD 6.1.
42039
42040 2007-04-04  Bruno Haible  <bruno@clisp.org>
42041
42042         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42043         directly used by the gnulib modules nor by gnulib-tool.
42044
42045 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         * DEPENDENCIES: Give overall description of version dependency
42048         desirability.  Use more-typical names for apps.
42049         Add shell, coreutils, diffutils, grep, tar, gzip.
42050
42051 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42052
42053         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42054
42055 2007-04-04  Karl Berry  <karl@gnu.org>
42056
42057         * MODULES.html.sh (func_module): missing '.
42058
42059 2007-04-03  Bruno Haible  <bruno@clisp.org>
42060
42061         * modules/argmatch-tests (Makefile.am): New variable
42062         test_argmatch_LDADD.
42063         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42064         * modules/array-list-tests (Makefile.am): New variable
42065         test_array_list_LDADD.
42066         * modules/array-oset-tests (Makefile.am): New variable
42067         test_array_oset_LDADD.
42068         * modules/avltree-list-tests (Makefile.am): New variable
42069         test_avltree_list_LDADD.
42070         * modules/avltree-oset-tests (Makefile.am): New variable
42071         test_avltree_oset_LDADD.
42072         * modules/avltreehash-list-tests (Makefile.am): New variable
42073         test_avltreehash_list_LDADD.
42074         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42075         test_canonicalize_lgpl_LDADD.
42076         * modules/carray-list-tests (Makefile.am): New variable
42077         test_carray_list_LDADD.
42078         * modules/dirname-tests (Makefile.am): New variable
42079         test_dirname_LDADD.
42080         * modules/linked-list-tests (Makefile.am): New variable
42081         test_linked_list_LDADD.
42082         * modules/linkedhash-list-tests (Makefile.am): New variable
42083         test_linkedhash_list_LDADD.
42084         * modules/rbtree-list-tests (Makefile.am): New variable
42085         test_rbtree_list_LDADD.
42086         * modules/rbtree-oset-tests (Makefile.am): New variable
42087         test_rbtree_oset_LDADD.
42088         * modules/rbtreehash-list-tests (Makefile.am): New variable
42089         test_rbtreehash_list_LDADD.
42090         * modules/xvasprintf-tests (Makefile.am): New variable
42091         test_xvasprintf_LDADD.
42092         Reported by Eric Blake.
42093
42094 2007-04-03  Eric Blake  <ebb9@byu.net>
42095
42096         * DEPENDENCIES: Weaken m4 requirements.
42097
42098 2007-04-03  Bruno Haible  <bruno@clisp.org>
42099
42100         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42101         * modules/isnanl-tests (configure.ac): Likewise.
42102
42103 2007-04-03  Ben Pfaff  <blp@gnu.org>
42104
42105         * modules/iconv_open: Add $(srcdir)/ to source directory
42106         references in Makefile fragments that call gperf, to fix VPATH
42107         builds.
42108
42109 2007-04-03  Bruno Haible  <bruno@clisp.org>
42110
42111         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42112         * lib/ldexpl.c: Undo last change.
42113
42114 2007-04-03  Bruno Haible  <bruno@clisp.org>
42115
42116         * modules/printf-frexpl (Depends-on): Undo last change.
42117         (Files): Add m4/ldexpl.m4.
42118
42119 2007-04-03  Bruno Haible  <bruno@clisp.org>
42120
42121         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42122         * modules/isnanl (Link): New section.
42123
42124         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42125         * modules/frexp (Link): New section.
42126
42127         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42128         * modules/frexpl (Link): New section.
42129
42130         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42131         * modules/ldexpl (Link): New section.
42132
42133 2007-04-03  Bruno Haible  <bruno@clisp.org>
42134
42135         * modules/TEMPLATE-EXTENDED: New file.
42136         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42137
42138 2007-04-03  Bruno Haible  <bruno@clisp.org>
42139
42140         * DEPENDENCIES: New file.
42141         Suggested by Simon Josefsson.
42142
42143 2007-04-03  Bruno Haible  <bruno@clisp.org>
42144
42145         * doc/gnulib.texi: Escape @.
42146
42147 2007-04-03  James Youngman  <jay@gnu.org>
42148         and Paul Eggert  <eggert@cs.ucla.edu>
42149
42150         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42151         birthtime on all systems that have birthtime, not just those which
42152         use st_birthtimensec rather than st_birthtim.  Putting zero in
42153         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42154         that the birth time is not available for files on an NFS mount.
42155
42156 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42157
42158         * modules/memxor: Move back from crypto/, suggested by Bruno.
42159         * modules/crypto/hmac-sha1: Fix memxor dependency.
42160
42161         * modules/crypto/gc: Moved from ../.
42162
42163 2007-04-02  Eric Blake  <ebb9@byu.net>
42164
42165         * lib/ldexpl.c (includes): Avoid libm.
42166
42167         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42168
42169 2007-04-02  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42172         on IRIX.
42173
42174 2007-04-02  Bruno Haible  <bruno@clisp.org>
42175
42176         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42177         x86 or x86_64 platforms running MacOS X.
42178         Reported by Ryan Schmidt <@ryandesign.com>.
42179
42180 2007-04-02  Bruno Haible  <bruno@clisp.org>
42181
42182         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42183         i386.
42184
42185 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42186
42187         * modules/crypto/arcfour: Moved from ../.
42188         * modules/crypto/arcfour-tests: Moved from ../.
42189         * modules/crypto/arctwo: Moved from ../.
42190         * modules/crypto/arctwo-tests: Moved from ../.
42191         * modules/crypto/des: Moved from ../.
42192         * modules/crypto/des-tests: Moved from ../.
42193         * modules/crypto/gc-arcfour: Moved from ../.
42194         * modules/crypto/gc-arcfour-tests: Moved from ../.
42195         * modules/crypto/gc-arctwo: Moved from ../.
42196         * modules/crypto/gc-arctwo-tests: Moved from ../.
42197         * modules/crypto/gc-des: Moved from ../.
42198         * modules/crypto/gc-des-tests: Moved from ../.
42199         * modules/crypto/gc-hmac-md5: Moved from ../.
42200         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42201         * modules/crypto/gc-hmac-sha1: Moved from ../.
42202         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42203         * modules/crypto/gc-md2: Moved from ../.
42204         * modules/crypto/gc-md2-tests: Moved from ../.
42205         * modules/crypto/gc-md4: Moved from ../.
42206         * modules/crypto/gc-md4-tests: Moved from ../.
42207         * modules/crypto/gc-md5: Moved from ../.
42208         * modules/crypto/gc-md5-tests: Moved from ../.
42209         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42210         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42211         * modules/crypto/gc-random: Moved from ../.
42212         * modules/crypto/gc-rijndael: Moved from ../.
42213         * modules/crypto/gc-rijndael-tests: Moved from ../.
42214         * modules/crypto/gc-sha1: Moved from ../.
42215         * modules/crypto/gc-sha1-tests: Moved from ../.
42216         * modules/crypto/gc-tests: Moved from ../.
42217         * modules/crypto/hmac-md5: Moved from ../.
42218         * modules/crypto/hmac-md5-tests: Moved from ../.
42219         * modules/crypto/hmac-sha1: Moved from ../.
42220         * modules/crypto/hmac-sha1-tests: Moved from ../.
42221         * modules/crypto/md2: Moved from ../.
42222         * modules/crypto/md2-tests: Moved from ../.
42223         * modules/crypto/md4: Moved from ../.
42224         * modules/crypto/md4-tests: Moved from ../.
42225         * modules/crypto/md5: Moved from ../.
42226         * modules/crypto/md5-tests: Moved from ../.
42227         * modules/crypto/memxor: Moved from ../.
42228         * modules/crypto/rijndael: Moved from ../.
42229         * modules/crypto/rijndael-tests: Moved from ../.
42230         * modules/crypto/sha1: Moved from ../.
42231
42232 2007-03-30  James Youngman  <jay@gnu.org>
42233
42234         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42235         rename() to change the ctime of a file (because ctime is unaffected
42236         by rename on jfs2 on AIX 5.1).
42237         (main): Start by doing cleanup, in case a previous run failed leaving
42238         test files behind.
42239
42240 2007-03-31  Bruno Haible  <bruno@clisp.org>
42241
42242         Support old proprietary implementations of iconv.
42243         * modules/iconv_open: New file.
42244         * lib/iconv_.h: New file.
42245         * m4/iconv_h.m4: New file.
42246         * lib/iconv_open.c: New file.
42247         * lib/iconv_open-aix.gperf: New file.
42248         * lib/iconv_open-hpux.gperf: New file.
42249         * lib/iconv_open-irix.gperf: New file.
42250         * lib/iconv_open-osf.gperf: New file.
42251         * m4/iconv_open.m4: New file.
42252         * modules/linebreak (Depends-on): Add iconv_open.
42253         * modules/striconv (Depends-on): Likewise.
42254         * modules/striconveh (Depends-on): Likewise.
42255         * modules/unicodeio (Depends-on): Likewise.
42256         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42257         (iconv_t)(-1).
42258         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42259         conversion if cd is (iconv_t)(-1).
42260         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42261         is not possible.
42262
42263 2007-03-31  Bruno Haible  <bruno@clisp.org>
42264
42265         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42266         work on Solaris either. Protect also second use of "autodetect_jp".
42267
42268 2007-03-31  Bruno Haible  <bruno@clisp.org>
42269
42270         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42271         the function is not present.
42272
42273 2007-03-31  Bruno Haible  <bruno@clisp.org>
42274
42275         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42276         the function is not present.
42277
42278 2007-03-31  Bruno Haible  <bruno@clisp.org>
42279
42280         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42281         a bug in HP-UX iconv_open().
42282
42283 2007-03-31  Bruno Haible  <bruno@clisp.org>
42284
42285         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42286         (Mathematics <math.h>): New section, add fpieee.
42287         (Input/output <stdio.h>): Add fseterr.
42288         (Mathematics <math.h>): New section, add printf-frexp.
42289         (Container data structures): Add sublist.
42290         (Core language properties): Add fpucw, inline.
42291         (Functions for greatest-width integer types <inttypes.h>): Add
42292         imaxabs, imaxdiv, inttypes.
42293         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42294         isnanl-nolibm, ldexp.
42295         (Mathematics <math.h>): New section, add printf-frexpl.
42296         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42297         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42298         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42299         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42300         (Unicode string functions): Add unistr/u*-mbtoucr.
42301         (Java): Add javacomp-script, javaexec-script.
42302         (C#): Add csharpcomp-script, csharpexec-script.
42303         (Support for building libraries and executables): Add havelib,
42304         relocatable-*.
42305         (Support for maintaining and releasing projects): Renamed from
42306         'Support for maintaining and release projects'. Add announce-gen.
42307
42308 2007-03-31  Bruno Haible  <bruno@clisp.org>
42309
42310         * README: Talk primarily about git.
42311         (git and CVS): Renamed from CVS.
42312         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42313         gnulib is available through git.
42314         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42315
42316 2007-03-30  Bruno Haible  <bruno@clisp.org>
42317
42318         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42319         * lib/poll_.h: Likewise.
42320         * lib/stat_.h: Likewise.
42321         * lib/sys_time_.h: Likewise.
42322         * lib/sysexit_.h: Likewise.
42323         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42324         * lib/stdbool_.h: Likewise.
42325         * lib/byteswap_.h: Add double-inclusion guard.
42326
42327 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42328
42329         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42330
42331 2007-03-30  Karl Berry  <karl@gnu.org>
42332
42333         * config/srclist-update: double space after USA in the license
42334         substitution, since that's how it's usually (?) written.
42335
42336 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42337
42338         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42339         reported by Bruno Haible.
42340
42341 2007-03-29  Bruno Haible  <bruno@clisp.org>
42342
42343         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42344         a bug in AIX iconv().
42345
42346 2007-03-29  Bruno Haible  <bruno@clisp.org>
42347
42348         * modules/ldexpl-tests: New file.
42349         * tests/test-ldexpl.c: New file.
42350
42351 2007-03-29  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/ldexpl.c: Include fpucw.h.
42354         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42355         multiplication.
42356         * modules/ldexpl (Depends-on): Add fpucw.
42357
42358 2007-03-29  Bruno Haible  <bruno@clisp.org>
42359
42360         * modules/ldexpl: New file.
42361         * m4/ldexpl.m4: New file.
42362         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42363         set.
42364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42365         REPLACE_LDEXPL.
42366         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42367         REPLACE_LDEXPL.
42368         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42369         gl_FUNC_LDEXPL_WORKS.
42370         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42371         * modules/mathl (Files): Remove lib/ldexpl.c.
42372         (Depends-on): Add ldexpl.
42373
42374 2007-03-29  Bruno Haible  <bruno@clisp.org>
42375
42376         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42377
42378 2007-03-29  Bruno Haible  <bruno@clisp.org>
42379
42380         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42381         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42382         and possibly also HP-UX.
42383         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42384         work on AIX, IRIX, HP-UX, OSF/1.
42385         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42386         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42387         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42388         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42389         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42390         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42391
42392 2007-03-29  Bruno Haible  <bruno@clisp.org>
42393
42394         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42395
42396 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42397
42398         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42399         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42400
42401 2007-03-29  Eric Blake  <ebb9@byu.net>
42402
42403         * lib/acl-internal.h: Remove redundant include.
42404         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42405         Cygwin when a file is locked.
42406
42407 2007-03-29  Bruno Haible  <bruno@clisp.org>
42408
42409         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42410         file.
42411         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42412
42413 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42414
42415         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42416         try to remove a parent directory if the child couldn't be removed
42417         (except for the first rmdir, which could fail because the child
42418         doesn't exist).  Problem reported by Jeff Blaine in
42419         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42420
42421 2007-03-28  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/striconveh.c (utf8conv_carefully): New function.
42424         (mem_cd_iconveh_internal): Invoke it.
42425
42426 2007-03-28  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42429         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42430         input.
42431         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42432         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42433         unistr/u8-uctomb.
42434
42435 2007-03-28  Bruno Haible  <bruno@clisp.org>
42436
42437         * modules/unistr/u8-mbtoucr: New file.
42438         * lib/unistr/u8-mbtoucr.c: New file.
42439         * modules/unistr/u16-mbtoucr: New file.
42440         * lib/unistr/u16-mbtoucr.c: New file.
42441         * modules/unistr/u16-mbtoucr: New file.
42442         * lib/unistr/u16-mbtoucr.c: New file.
42443         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42444
42445 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42446             Bruno Haible  <bruno@clisp.org>
42447
42448         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42449         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42450         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42451
42452         * m4/stdio_h.m4: Add stubs for vasprintf too.
42453
42454         * modules/stdio: Support vasprintf in sed command.
42455
42456         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42457         vasprintf.h.  Add stdio module indicator.
42458
42459         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42460         vasprintf.h.
42461
42462         * lib/vasprintf.h: File removed.
42463
42464         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42465         * lib/vasprintf.c: Ditto.
42466         * lib/xvasprintf.c: Ditto.
42467         * tests/test-vasprintf-posix.c: Ditto.
42468         * tests/test-vasprintf.c: Ditto.
42469
42470 2007-03-27  Bruno Haible  <bruno@clisp.org>
42471
42472         Make vasnprintf multithread-safe.
42473         * lib/vasnprintf.c (decimal_point_char): New function.
42474         (VASNPRINTF): Use it.
42475         Suggested by Simon Josefsson.
42476
42477 2007-03-27  Eric Blake  <ebb9@byu.net>
42478
42479         Support sub-second birthtime on cygwin.
42480         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42481         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42482         (get_stat_birthtime): Also work with st_birthtim.
42483
42484 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42485
42486         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42487         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42488         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42489         (get_stat_birthtime_ns): Simplify compile-time tests.
42490         (get_stat_birthtime): Change the API to look like
42491         get_stat_mtime etc., except return a negative tv_nsec on error.
42492         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42493         Don't check for "spare" fields.
42494         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42495         or for struct stat.st_birthtime, as these tests aren't used.
42496         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42497
42498 2007-03-27  Bruno Haible  <bruno@clisp.org>
42499
42500         * lib/stat-time.h: Include <sys/stat.h>.
42501
42502 2007-03-27  James Youngman  <jay@gnu.org>
42503
42504         * lib/stat-time.h (get_stat_birthtime): New function for
42505           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42506         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42507           and its variants.
42508         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42509         * modules/stat-time-test: New file.
42510         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42511
42512 2007-03-26  Bruno Haible  <bruno@clisp.org>
42513
42514         Better support of signalling NaNs.
42515         * lib/atanl.c: Include isnanl.h.
42516         (atanl): Perform test for NaN at the beginning of the function and
42517         through a call to isnanl.
42518         * lib/cosl.c: Include isnanl.h.
42519         (cosl): Perform test for NaN at the beginning of the function and
42520         through a call to isnanl.
42521         * lib/ldexpl.c: Include isnanl.h.
42522         (ldexpl): Perform test for NaN through a call to isnanl.
42523         * lib/logl.c: Include isnanl.h.
42524         (logl): Perform test for NaN at the beginning of the function and
42525         through a call to isnanl.
42526         * lib/sinl.c: Include isnanl.h.
42527         (sinl): Perform test for NaN at the beginning of the function and
42528         through a call to isnanl.
42529         * lib/sqrtl.c: Include isnanl.h.
42530         (sqrtl): Perform test for NaN at the beginning of the function and
42531         through a call to isnanl.
42532         * lib/tanl.c: Include isnanl.h.
42533         (tanl): Perform test for NaN at the beginning of the function and
42534         through a call to isnanl.
42535         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42536         * modules/mathl (Depends-on): Add isnanl.
42537
42538 2007-03-26  Eric Blake  <ebb9@byu.net>
42539
42540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42541         regression in logic sense of previous patch.
42542
42543 2007-03-26  Bruno Haible  <bruno@clisp.org>
42544
42545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42546         unportable shell command "if ! ...".
42547         Reported by Ralf Wildenhues.
42548
42549 2007-03-25  Bruno Haible  <bruno@clisp.org>
42550
42551         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42552         <sysexits.h> file, and only add EX_CONFIG.
42553         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42554         absolute file name and whether it is sufficient. Substitute also
42555         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42556         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42557         ABSOLUTE_SYSEXITS_H into sysexits.h.
42558
42559 2007-03-25  Bruno Haible  <bruno@clisp.org>
42560
42561         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42562         hints is NULL.
42563
42564 2007-03-25  Bruno Haible  <bruno@clisp.org>
42565
42566         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42567         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42568
42569 2007-03-25  Bruno Haible  <bruno@clisp.org>
42570
42571         * lib/vasnprintf.c: Include langinfo.h.
42572         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42573         multithread-safe.
42574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42583         Reported by Simon Josefsson.
42584
42585 2007-03-25  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42588         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42589         * modules/vasnprintf (Depends-on): Add stdint.
42590
42591 2007-03-25  Bruno Haible  <bruno@clisp.org>
42592
42593         * modules/fpieee: New file.
42594         * m4/fpieee.m4: New file.
42595         * modules/isnan-nolibm (Depends-on): Add fpieee.
42596         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42597         * modules/isnanl (Depends-on): Add fpieee.
42598
42599 2007-03-25  Bruno Haible  <bruno@clisp.org>
42600
42601         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42602
42603 2007-03-25  Bruno Haible  <bruno@clisp.org>
42604
42605         Avoid test failures on IRIX 6.5.
42606         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42607         (main): Use it.
42608         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42609         macros.
42610         (main): Use them.
42611
42612 2007-03-25  Bruno Haible  <bruno@clisp.org>
42613
42614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42615         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42616         exists but doesn't work.
42617         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42618         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42620         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42621
42622 2007-03-25  Bruno Haible  <bruno@clisp.org>
42623
42624         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42625         returns inf. Needed on IRIX 6.5.
42626
42627 2007-03-25  Bruno Haible  <bruno@clisp.org>
42628
42629         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42630         (main): Use isnanl instead of x != x idiom.
42631         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42632
42633         * tests/test-frexp.c: Include isnan.h.
42634         (main): Use isnan instead of x != x idiom.
42635         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42636
42637 2007-03-25  Bruno Haible  <bruno@clisp.org>
42638
42639         * tests/test-frexp.c (NaN): New function/macro.
42640         (main): Use it instead of 0.0 / 0.0.
42641         * tests/test-isnan.c (NaN): New function/macro.
42642         (main): Use it instead of 0.0 / 0.0.
42643         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42644         (test_function): Use it instead of 0.0 / 0.0.
42645         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42646         (test_function): Use it instead of 0.0 / 0.0.
42647         * tests/test-snprintf-posix.h (NaN): New function/macro.
42648         (test_function): Use it instead of 0.0 / 0.0.
42649         * tests/test-sprintf-posix.h (NaN): New function/macro.
42650         (test_function): Use it instead of 0.0 / 0.0.
42651         * tests/test-fprintf-posix.h (NaN): New function/macro.
42652         (test_function): Use it instead of 0.0 / 0.0.
42653         * tests/test-printf-posix.h (NaN): New function/macro.
42654         (test_function): Use it instead of 0.0 / 0.0.
42655
42656         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42657
42658 2007-03-25  Bruno Haible  <bruno@clisp.org>
42659
42660         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42661
42662 2007-03-25  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/regexec.c (merge_state_with_log): Make static.
42665
42666 2007-03-25  Bruno Haible  <bruno@clisp.org>
42667
42668         * lib/trigl.c (kernel_rem_pio2): Make static.
42669
42670 2007-03-25  Bruno Haible  <bruno@clisp.org>
42671
42672         * lib/sincosl.c (sincosl_table): Make static.
42673
42674 2007-03-25  Bruno Haible  <bruno@clisp.org>
42675
42676         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42677         if the compiler does not support C99.
42678
42679 2007-03-25  Bruno Haible  <bruno@clisp.org>
42680
42681         * modules/time (Makefile.am): Ensure all rule action lines start with a
42682         tab.
42683
42684 2007-03-24  Bruno Haible  <bruno@clisp.org>
42685
42686         * modules/tsearch-tests: New file.
42687         * tests/test-tsearch.sh: New file.
42688         * tests/test-tsearch.c: New file, mostly copied from glibc.
42689
42690         * modules/search-tests: New file.
42691         * tests/test-search.c: New file.
42692
42693         * modules/search: New file.
42694         * lib/search_.h: New file, incorporating lib/tsearch.h.
42695         * m4/search_h.m4: New file.
42696         * lib/tsearch.h: Remove file.
42697         * lib/tsearch.c: Include search.h instead of tsearch.h.
42698         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42699         HAVE_TSEARCH.
42700         * modules/tsearch (Files): Remove lib/tsearch.h.
42701         (Depends-on): Add search.
42702         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42703         (Include): Change tsearch.h into search.h.
42704
42705 2007-03-24  Bruno Haible  <bruno@clisp.org>
42706
42707         * modules/fpucw: New file.
42708         * lib/fpucw.h: New file.
42709         * lib/frexp.c: Include fpucw.h.
42710         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42711         (FUNC): Use them.
42712         * lib/printf-frexp.c: Include fpucw.h.
42713         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42714         (FUNC): Use them.
42715         * lib/vasnprintf.c: Include fpucw.h.
42716         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42717         'long double' calculations.
42718         * tests/test-frexpl.c: Include fpucw.h.
42719         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42720         * tests/test-printf-frexpl.c: Include fpucw.h.
42721         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42722         * modules/frexpl (Depends-on): Add fpucw.
42723         * modules/printf-frexpl (Depends-on): Likewise.
42724         * modules/fprintf-posix (Depends-on): Likewise.
42725         * modules/snprintf-posix (Depends-on): Likewise.
42726         * modules/sprintf-posix (Depends-on): Likewise.
42727         * modules/vasnprintf-posix (Depends-on): Likewise.
42728         * modules/vasprintf-posix (Depends-on): Likewise.
42729         * modules/vfprintf-posix (Depends-on): Likewise.
42730         * modules/vsnprintf-posix (Depends-on): Likewise.
42731         * modules/vsprintf-posix (Depends-on): Likewise.
42732         * modules/frexpl-tests (Depends-on): Likewise.
42733         * modules/printf-frexpl-tests (Depends-on): Likewise.
42734
42735 2007-03-24  Bruno Haible  <bruno@clisp.org>
42736
42737         * lib/float+.h: New file.
42738         * lib/isnan.c: Include float+.h.
42739         (SIZE): New macro.
42740         (FUNC): Compare only SIZE bytes of the value.
42741         * lib/vasnprintf.c: Include float+.h.
42742         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42743         SIZEOF_LDBL or SIZEOF_DBL bytes.
42744         * modules/isnan-nolibm (Files): Add lib/float+.h.
42745         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42746         * modules/isnanl (Files): Add lib/float+.h.
42747         * modules/vasnprintf (Files): Add lib/float+.h.
42748
42749 2007-03-24  Bruno Haible  <bruno@clisp.org>
42750
42751         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42752         include isnanl-nolibm.h.
42753
42754 2007-03-24  Bruno Haible  <bruno@clisp.org>
42755
42756         * tests/test-read-file.c (main): Don't produce spurious output for
42757         expected situations. Make the test fail if it encountered unexpected
42758         results.
42759
42760 2007-03-24  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42763         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42764
42765 2007-03-24  Bruno Haible  <bruno@clisp.org>
42766
42767         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42768
42769 2007-03-24  Bruno Haible  <bruno@clisp.org>
42770
42771         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42772         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42773
42774         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42775         * modules/utf8-ucs4: Turn into a symbolic link to module
42776         unistr/u8-mbtouc.
42777
42778         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42779         utf8-ucs4-unsafe.
42780         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42781         unistr/u8-mbtouc-unsafe.
42782
42783         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42784         * modules/utf16-ucs4: Turn into a symbolic link to module
42785         unistr/u16-mbtouc.
42786
42787         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42788         utf16-ucs4-unsafe.
42789         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42790         unistr/u16-mbtouc-unsafe.
42791
42792         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42793         * modules/ucs4-utf8: Turn into a symbolic link to module
42794         unistr/u8-ubtomb.
42795
42796         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42797         * modules/ucs4-utf16: Turn into a symbolic link to module
42798         unistr/u16-ubtomb.
42799
42800 2007-03-24  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42803         Enable the function only if HAVE_INLINE.
42804         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42805         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42806         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42807         Enable the function only if HAVE_INLINE.
42808         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42809         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42810         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42811         Enable the function only if HAVE_INLINE.
42812         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42813         Enable the function only if HAVE_INLINE.
42814         * modules/utf8-ucs4: Update.
42815         * modules/utf8-ucs4-unsafe: Update.
42816         * modules/utf16-ucs4: Update.
42817         * modules/utf16-ucs4-unsafe: Update.
42818         * modules/ucs4-utf8: Update.
42819         * modules/ucs4-utf16: Update.
42820
42821 2007-03-24  Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/utf8-ucs4.h: Remove file.
42824         * lib/utf8-ucs4-unsafe.h: Remove file.
42825         * lib/utf16-ucs4.h: Remove file.
42826         * lib/utf16-ucs4-unsafe.h: Remove file.
42827         * lib/ucs4-utf8.h: Remove file.
42828         * lib/ucs4-utf16.h: Remove file.
42829         * lib/unistr.h: Include their previous contents.
42830         * m4/utf-ucs4.m4: Remove file.
42831         * m4/ucs4-utf.m4: Remove file.
42832         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42833         (Depends-on): Add unistr/base.
42834         (configure.ac): Remove gl_UTF_UCS4.
42835         (Makefile.am): Update.
42836         (Include): Change to unistr.h.
42837         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42838         (Depends-on): Add unistr/base.
42839         (configure.ac): Remove gl_UTF_UCS4.
42840         (Makefile.am): Update.
42841         (Include): Change to unistr.h.
42842         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42843         (Depends-on): Add unistr/base.
42844         (configure.ac): Remove gl_UTF_UCS4.
42845         (Makefile.am): Update.
42846         (Include): Change to unistr.h.
42847         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42848         (Depends-on): Add unistr/base.
42849         (configure.ac): Remove gl_UTF_UCS4.
42850         (Makefile.am): Update.
42851         (Include): Change to unistr.h.
42852         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42853         (Depends-on): Add unistr/base.
42854         (configure.ac): Remove gl_UCS4_UTF.
42855         (Makefile.am): Update.
42856         (Include): Change to unistr.h.
42857         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42858         (Depends-on): Add unistr/base.
42859         (configure.ac): Remove gl_UCS4_UTF.
42860         (Makefile.am): Update.
42861         (Include): Change to unistr.h.
42862         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42863         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42864         utf8-ucs4-unsafe.h.
42865         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42866         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42867         utf16-ucs4-unsafe.h.
42868         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42869         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42870         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42871         * lib/unistr/u8-strchr.c: Likewise.
42872         * lib/unistr/u8-strrchr.c: Likewise.
42873         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42874         * lib/unistr/u16-strchr.c: Likewise.
42875         * lib/unistr/u16-strrchr.c: Likewise.
42876         * lib/striconveh.c: Update.
42877         * lib/linebreak.c: Update.
42878
42879 2007-03-24  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42882         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42883
42884 2007-03-22  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42887
42888 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42889
42890         * MODULES.html.sh (File system functions): New module write-any-file.
42891         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42892         * m4/write-any-file.m4: New files.
42893
42894 2007-03-23  Eric Blake  <ebb9@byu.net>
42895
42896         * gnulib-tool: Rearrange space-tab sequences, since some editors
42897         like to eat them.
42898
42899 2007-03-23  Eric Blake  <ebb9@byu.net>
42900
42901         * lib/version-etc.c (version_etc_va): Update license wording to
42902         be more concise.  Recommended by Richard Stallman.
42903
42904 2007-03-22  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/poll.c (MSG_PEEK): New fallback definition.
42907
42908 2007-03-22  Bruno Haible  <bruno@clisp.org>
42909
42910         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42911         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42912         (main): Update.
42913         Fixes a compilation error on BeOS.
42914
42915 2007-03-22  Bruno Haible  <bruno@clisp.org>
42916
42917         * modules/frexpl-tests: New file.
42918         * tests/test-frexpl.c: New file.
42919
42920         * modules/frexpl: New file.
42921         * m4/frexpl.m4: New file.
42922         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42923         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42925         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42926         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42927         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42928
42929 2007-03-22  Bruno Haible  <bruno@clisp.org>
42930
42931         * lib/frexpl.c: Share code with lib/frexp.c.
42932         * modules/mathl (Files): Add lib/frexp.c.
42933         (Depends-on): Add isnanl-nolibm.
42934
42935 2007-03-22  Bruno Haible  <bruno@clisp.org>
42936
42937         * modules/printf-frexp (Files): Add m4/frexp.m4.
42938         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
42939         only if the found frexp function actually works.
42940
42941 2007-03-22  Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/frexp.c: Remove older implementation that uses divisions.
42944
42945 2007-03-21  Bruno Haible  <bruno@clisp.org>
42946
42947         * modules/frexp-tests: New file.
42948         * tests/test-frexp.c: New file.
42949
42950         * modules/frexp: New file.
42951         * lib/frexp.c: New file.
42952         * m4/frexp.m4: New file.
42953         * lib/math_.h (frexp): New declaration.
42954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
42955         REPLACE_FREXP.
42956         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
42957
42958 2007-03-21  Bruno Haible  <bruno@clisp.org>
42959
42960         * modules/isnanl-tests: New file.
42961         * tests/test-isnanl.c: New file.
42962
42963         * modules/isnanl: New file.
42964         * lib/isnanl.h: New file.
42965         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
42966         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
42967         gl_FUNC_ISNANL_WORKS.
42968         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
42969         New macros.
42970
42971 2007-03-21  Bruno Haible  <bruno@clisp.org>
42972
42973         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
42974         lib/isnanl.h.
42975         (Include): Update.
42976         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
42977         * lib/vasnprintf.c: Update.
42978         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
42979         tests/test-isnanl.h, remove tests/test-isnanl.c.
42980         (Makefile.am): Update.
42981         * tests/test-isnanl-nolibm.c: New file.
42982         * tests/test-isnanl.h: New file.
42983         * tests/test-isnanl.c: Remove file.
42984
42985 2007-03-21  Jim Meyering  <jim@meyering.net>
42986
42987         When trying to open ".", treat ESTALE like EACCES.
42988         * lib/savewd.c (savewd_save): Resort to forking not just upon
42989         failure with EACCES, but also when errno is ESTALE.
42990
42991 2007-03-20  Bruno Haible  <bruno@clisp.org>
42992
42993         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
42994         Needed on AIX 5.1. Reported by Matthew Woehlke.
42995
42996 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42997
42998         Suggestions by Bruno Haible:
42999         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43000         our own.
43001         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43002         * modules/acl (Depends-on): Add gettext.
43003
43004 2007-03-19  Bruno Haible  <bruno@clisp.org>
43005
43006         * modules/iconvme: Remove file.
43007         * lib/iconvme.h: Remove file.
43008         * lib/iconvme.c: Remove file.
43009         * m4/iconvme.m4: Remove file.
43010
43011 2007-03-19  Bruno Haible  <bruno@clisp.org>
43012
43013         * doc/relocatable-maint.texi: Break long shell script line.
43014         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43015
43016 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43017
43018         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43019         handle file_has_acl.
43020         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43021         * lib/acl.c: Move header inclusions and related macro defns into
43022         lib/acl-internal.h.
43023         (S_ISLNK): Remove defn, since that's now done for us.
43024         (file_has_acl): Move to lib/file-has-acl.c.
43025         Call acl_trivial if available.  This is the crucial part of the fix.
43026         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43027         shared within the library.  Rewrite a bit, partly to make it compatible
43028         with the GNU coding style.
43029         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43030         Remove unnecessary double-quotes.
43031         Don't test for acl_to_text; the build will catch that.
43032         Replace acl_entries if it doesn't exist and it is needed.
43033         Check for -lsec and acl_trivial (as used on Solaris 10).
43034         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43035         lib/file-has-acl.c.
43036         (Depends-on): Add sys_stat, for S_ISLNK.
43037
43038 2007-03-19  Ben Pfaff  <blp@gnu.org>
43039
43040         * doc/gnulib.texi: Fix typos.
43041         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43042
43043 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43044
43045         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43046         If size is zero here, buf must be zero.
43047
43048 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43049
43050         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43051         <bruno@clisp.org>.
43052
43053 2007-03-18  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43056         Suggested by Eric Blake.
43057
43058 2007-03-18  Ben Pfaff  <blp@gnu.org>
43059
43060         * doc/relocatable.texi: Recommend using as prefix a directory
43061         that does not exist and will never be created.  Based on
43062         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43063         and others.
43064
43065 2007-03-17  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/fchownat.c: Include lchown.h.
43068
43069 2007-03-17  Bruno Haible  <bruno@clisp.org>
43070
43071         Fix endless loop when the given allocated size was > INT_MAX.
43072         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43073         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43074         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43075         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43076         * lib/sprintf.c (sprintf): Likewise.
43077
43078 2007-03-17  Bruno Haible  <bruno@clisp.org>
43079
43080         * tests/test-argp-2.sh (func_compare): Output a context diff.
43081
43082 2007-03-17  Bruno Haible  <bruno@clisp.org>
43083
43084         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43085         locale's decimal-point character.
43086
43087 2007-03-17  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43090         before comparing it. Needed because on some platforms (e.g. x86) a
43091         'long double' occupies less bytes than sizeof (long double).
43092
43093 2007-03-17  Bruno Haible  <bruno@clisp.org>
43094
43095         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43096         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43097         * tests/test-getaddrinfo.c (simple): Likewise.
43098         * tests/test-read-file.c (main): Likewise.
43099
43100 2007-03-17  Bruno Haible  <bruno@clisp.org>
43101
43102         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43103
43104 2007-03-17  Bruno Haible  <bruno@clisp.org>
43105
43106         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43107         unused variable.
43108
43109 2007-03-17  Bruno Haible  <bruno@clisp.org>
43110
43111         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43112         * tests/test-c-strncasecmp.c: Likewise.
43113
43114 2007-03-17  Bruno Haible  <bruno@clisp.org>
43115
43116         * modules/stdlib (Depends-on): Add unistd.
43117         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43118         Needed for MacOS X 10.3.
43119
43120 2007-03-17  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43123
43124 2007-03-17  Bruno Haible  <bruno@clisp.org>
43125
43126         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43127
43128 2007-03-17  Bruno Haible  <bruno@clisp.org>
43129
43130         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43131         to reflect files copied from gnulib (with or without modifications).
43132         Suggested by Jim Meyering.
43133
43134 2007-03-17  Eric Blake  <ebb9@byu.net>
43135
43136         * NEWS: Document stdlib change from 2007-02-18.
43137
43138 2007-03-17  Jim Meyering  <jim@meyering.net>
43139
43140         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43141         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43142         someone uses a name containing shell meta-characters.
43143         Reported by Alfred M. Szmidt.
43144
43145         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43146
43147 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43148
43149         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43150         and copy gettext configuration files only if configure.ac contains
43151         a use of AM_GNU_GETTEXT_VERSION.
43152
43153 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43154
43155         * build-aux/bootstrap (gnulib_name): New variable.
43156         (gnulib_tool_options): Use it.
43157
43158 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43159
43160         * tests/test-des.c: Use new namespace.
43161
43162 2007-03-15  Bruno Haible  <bruno@clisp.org>
43163
43164         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43165         Reported by James Youngman <jay@gnu.org>.
43166
43167 2007-03-15  Bruno Haible  <bruno@clisp.org>
43168
43169         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43170         declared prototype. Needed with cc on OSF/1 5.1.
43171
43172 2007-03-15  Bruno Haible  <bruno@clisp.org>
43173
43174         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43175         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43176         (struct gl_list_implementation): Add dispose_fn argument to the
43177         'create_empty', 'create' methods.
43178         (struct gl_list_impl_base): Add field 'dispose_fn'.
43179         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43180         argument.
43181         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43182         dispose_fn argument.
43183         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43184         dispose_fn on the dropped values.
43185         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43186         dispose_fn argument.
43187         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43188         dropped values.
43189         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43190         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43191         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43192         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43193         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43194         argument.
43195         (gl_tree_list_free): Call dispose_fn on the dropped values.
43196         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43197         the dropped values.
43198         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43199         Add dispose_fn argument.
43200         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43201         Call dispose_fn on the dropped values.
43202         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43203         Add dispose_fn argument.
43204         (gl_sublist_create): Initialize the 'dispose_fn' field.
43205         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43206         * tests/test-array_list.c (main): Update.
43207         * tests/test-carray_list.c (main): Update.
43208         * tests/test-avltree_list.c (main): Update.
43209         * tests/test-rbtree_list.c (main): Update.
43210         * tests/test-avltreehash_list.c (main): Update.
43211         * tests/test-rbtreehash_list.c (main): Update.
43212         * tests/test-linked_list.c (main): Update.
43213         * tests/test-linkedhash_list.c (main): Update.
43214         * tests/test-array_oset.c (main): Update.
43215
43216 2007-03-15  Bruno Haible  <bruno@clisp.org>
43217
43218         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43219         (gl_oset_create_empty): Add dispose_fn argument.
43220         (struct gl_oset_implementation): Add dispose_fn argument to
43221         'create_empty' method.
43222         (struct gl_oset_impl_base): Add dispose_fn field.
43223         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43224         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43225         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43226         values.
43227         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43228         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43229         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43230         dropped value.
43231         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43232         dropped value.
43233         * tests/test-array_oset.c (main): Update.
43234         * tests/test-avltree_oset.c (main): Update.
43235         * tests/test-rbtree_oset.c (main): Update.
43236         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43237
43238 2007-03-13  Bruno Haible  <bruno@clisp.org>
43239
43240         * tests/test-stdbool.c (i): Update after last patch.
43241
43242 2007-03-12  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43245         the iswprint macro. Needed on Solaris 2.5.1.
43246
43247 2007-03-12  Bruno Haible  <bruno@clisp.org>
43248
43249         * tests/test-printf-frexp.c (main): Declare x as volatile.
43250
43251 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43252
43253         * doc/gnulib.texi (Build robot for gnulib): New section.
43254
43255 2007-03-12  Jim Meyering  <jim@meyering.net>
43256
43257         * build-aux/bootstrap: New file.
43258         * build-aux/bootstrap.conf: New file, from coreutils.
43259
43260 2007-03-11  Bruno Haible  <bruno@clisp.org>
43261
43262         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43263
43264 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43265
43266         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43267         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43268         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43269
43270 2007-03-11  Bruno Haible  <bruno@clisp.org>
43271
43272         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43273         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43274
43275 2007-03-11  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43278         formula. Needed for SunPRO C 5.0.
43279
43280 2007-03-11  Bruno Haible  <bruno@clisp.org>
43281
43282         * modules/long-options (Depends-on): Add getopt.
43283
43284 2007-03-11  Bruno Haible  <bruno@clisp.org>
43285
43286         * modules/modechange (Depends-on): Add stdbool.
43287
43288 2007-03-11  Bruno Haible  <bruno@clisp.org>
43289
43290         * modules/i-ring (Depends-on): Add stdbool.
43291
43292 2007-03-11  Bruno Haible  <bruno@clisp.org>
43293
43294         * modules/gc-des (Depends-on): Add stdbool.
43295
43296 2007-03-11  Bruno Haible  <bruno@clisp.org>
43297
43298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43299
43300 2007-03-11  Bruno Haible  <bruno@clisp.org>
43301
43302         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43303
43304 2007-03-11  Bruno Haible  <bruno@clisp.org>
43305
43306         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43307
43308 2007-03-11  Bruno Haible  <bruno@clisp.org>
43309
43310         * lib/vasnprintf.c (sprintf): Undefine.
43311
43312 2007-03-11  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43315         initializers in SunPRO C and Compaq C compilers.
43316
43317 2007-03-11  Bruno Haible  <bruno@clisp.org>
43318
43319         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43320         decrementing code ANSI C compliant.
43321
43322 2007-03-11  Bruno Haible  <bruno@clisp.org>
43323
43324         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43325         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43326
43327 2007-03-11  Bruno Haible  <bruno@clisp.org>
43328
43329         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43330         <stdbool.h> substitute doesn't pass.
43331
43332 2007-03-11  Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43335
43336 2007-03-11  Bruno Haible  <bruno@clisp.org>
43337
43338         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43339         script, for submission to autobuild.josefsson.org.
43340
43341 2007-03-10  Bruno Haible  <bruno@clisp.org>
43342
43343         * modules/canonicalize-lgpl-tests: New file.
43344         * tests/test-canonicalize-lgpl.sh: New file.
43345         * tests/test-canonicalize-lgpl.c: New file.
43346
43347         * modules/c-strcase-tests: New file.
43348         * tests/test-c-strcase.sh: New file.
43349         * tests/test-c-strcasecmp.c: New file.
43350         * tests/test-c-strncasecmp.c: New file.
43351
43352         * modules/atexit-tests: New file.
43353         * tests/test-atexit.sh: New file.
43354         * tests/test-atexit.c: New file.
43355
43356 2007-03-10  Bruno Haible  <bruno@clisp.org>
43357
43358         * tests/test-binary-io.sh: Use temporary filenames that are not so
43359         likely to clash with those of other tests (in a parallel make).
43360         * tests/test-binary-io.c: Likewise.
43361
43362 2007-03-10  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43365         fallback; use #error instead.
43366         Suggested by Simon Josefsson.
43367
43368 2007-03-10  Bruno Haible  <bruno@clisp.org>
43369
43370         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43371         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43372         first and the last.
43373
43374 2007-03-10  Bruno Haible  <bruno@clisp.org>
43375
43376         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43377
43378 2007-03-10  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43381         "make distcheck".
43382         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43383         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43384         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43385
43386 2007-03-10  Bruno Haible  <bruno@clisp.org>
43387
43388         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43389         variable.
43390         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43391         variable.
43392
43393 2007-03-09  Eric Blake  <ebb9@byu.net>
43394         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43395
43396         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43397         types are not being provided by gnulib.
43398         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43399         types are supported.
43400
43401 2007-03-10  Bruno Haible  <bruno@clisp.org>
43402
43403         * lib/stdio_.h (__attribute__): New macro.
43404         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43405         vsprintf): Specify __attribute__ __format__ for GCC.
43406         Suggested by Eric Blake.
43407
43408 2007-03-09  Bruno Haible  <bruno@clisp.org>
43409
43410         * modules/printf-posix-tests: New file.
43411         * tests/test-printf-posix.sh: New file.
43412         * tests/test-printf-posix.c: New file.
43413
43414         * modules/printf-posix: New file.
43415         * lib/printf.c: New file.
43416         * m4/printf-posix-rpl.m4: New file.
43417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43418         REPLACE_PRINTF.
43419         * lib/stdio_.h (printf): New declaration.
43420         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43421         ____strfmon____): New macros.
43422         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43423         REPLACE_PRINTF.
43424
43425 2007-03-09  Bruno Haible  <bruno@clisp.org>
43426
43427         * tests/test-vasnprintf-posix2.sh: New file.
43428         * tests/test-vasnprintf-posix2.c: New file.
43429         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43430         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43431         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43432
43433         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43434         a locale dependent decimal point, rather than always '.'.
43435
43436 2007-03-09  Eric Blake  <ebb9@byu.net>
43437
43438         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43439         spite of platforms like Tandem/NSK that define it to -1.
43440
43441 2007-03-08  Bruno Haible  <bruno@clisp.org>
43442
43443         * modules/vprintf-posix-tests: New file.
43444         * tests/test-vprintf-posix.sh: New file.
43445         * tests/test-vprintf-posix.c: New file.
43446         * tests/test-printf-posix.h: New file.
43447
43448         * modules/vprintf-posix: New file.
43449         * lib/vprintf.c: New file.
43450         * m4/vprintf-posix.m4: New file.
43451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43452         REPLACE_VPRINTF.
43453         * lib/stdio_.h (vprintf): New declaration.
43454         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43455         REPLACE_VPRINTF.
43456
43457 2007-03-08  Bruno Haible  <bruno@clisp.org>
43458
43459         * modules/fprintf-posix-tests: New file.
43460         * tests/test-fprintf-posix.sh: New file.
43461         * tests/test-fprintf-posix.c: New file.
43462
43463         * modules/fprintf-posix: New file.
43464         * lib/fprintf.c: New file.
43465         * m4/fprintf-posix.m4: New file.
43466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43467         REPLACE_FPRINTF.
43468         * lib/stdio_.h (fprintf): New declaration.
43469         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43470         REPLACE_FPRINTF.
43471
43472 2007-03-08  Bruno Haible  <bruno@clisp.org>
43473
43474         * modules/vfprintf-posix-tests: New file.
43475         * tests/test-vfprintf-posix.sh: New file.
43476         * tests/test-vfprintf-posix.c: New file.
43477         * tests/test-fprintf-posix.h: New file.
43478         * tests/test-fprintf-posix.out: New file.
43479
43480         * modules/vfprintf-posix: New file.
43481         * lib/vfprintf.c: New file.
43482         * m4/vfprintf-posix.m4: New file.
43483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43484         REPLACE_VFPRINTF.
43485         * lib/stdio_.h (vfprintf): New declaration.
43486         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43487         REPLACE_VFPRINTF.
43488
43489 2007-03-08  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43492
43493 2007-03-08  Bruno Haible  <bruno@clisp.org>
43494
43495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43496         instead of 'expr' invocations.
43497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43500         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43501         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43502         Suggested by Paul Eggert.
43503
43504 2007-03-08  Bruno Haible  <bruno@clisp.org>
43505
43506         * modules/fseterr-tests: New file.
43507         * tests/test-fseterr.c: New file.
43508
43509         * modules/fseterr: New file.
43510         * lib/fseterr.h: New file.
43511         * lib/fseterr.c: New file.
43512
43513 2007-03-08  Bruno Haible  <bruno@clisp.org>
43514
43515         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43516         * lib/getopt_.h: Likewise.
43517         * lib/mbswidth.h: Likewise.
43518         * lib/setenv.h: Likewise.
43519         * lib/vasnprintf.h: Likewise.
43520         * lib/vasprintf.h: Likewise.
43521         * lib/verror.h: Likewise.
43522         * lib/xsetenv.h: Likewise.
43523         * lib/xvasprintf.h: Likewise.
43524
43525 2007-03-08  Jim Meyering  <jim@meyering.net>
43526
43527         * users.txt: Add parted.
43528
43529         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43530
43531 2007-03-07  Bruno Haible  <bruno@clisp.org>
43532
43533         * m4/printf.m4: Make the shell script snippets copy&pastable.
43534
43535 2007-03-02  Bruno Haible  <bruno@clisp.org>
43536
43537         * lib/netinet_in_.h: New file.
43538         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43539         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43540         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43541         (Depends-on): Add absolute-header.
43542         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43543         into netinet/in.h.
43544
43545 2007-03-03  Bruno Haible  <bruno@clisp.org>
43546
43547         * lib/sys_select_.h: New file.
43548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43549         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43550         * modules/sys_select (Files): Add lib/sys_select_.h.
43551         (Depends-on): Add absolute-header.
43552         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43553         into sys/select.h.
43554
43555 2007-03-02  Bruno Haible  <bruno@clisp.org>
43556
43557         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43558         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43559         values.
43560         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43561         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43562         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43563         * modules/sys_socket (Depends-on): Add absolute-header.
43564         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43565         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43566         (Include): Remove requirement of inclusion of <sys/types.h>.
43567
43568 2007-03-02  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/byteswap_.h (bswap_32): Fix formula.
43571
43572 2007-03-06  Bruno Haible  <bruno@clisp.org>
43573
43574         * modules/sprintf-posix-tests: New file.
43575         * tests/test-sprintf-posix.c: New file.
43576
43577         * modules/sprintf-posix: New file.
43578         * lib/sprintf.c: New file.
43579         * m4/sprintf-posix.m4: New file.
43580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43581         REPLACE_SPRINTF.
43582         * lib/stdio_.h (sprintf): New declaration.
43583         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43584         REPLACE_SPRINTF.
43585
43586 2007-03-06  Bruno Haible  <bruno@clisp.org>
43587
43588         * modules/vsprintf-posix-tests: New file.
43589         * tests/test-vsprintf-posix.c: New file.
43590         * tests/test-sprintf-posix.h: New file.
43591
43592         * modules/vsprintf-posix: New file.
43593         * lib/vsprintf.c: New file.
43594         * m4/vsprintf-posix.m4: New file.
43595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43596         REPLACE_VSPRINTF.
43597         * lib/stdio_.h (vsprintf): New declaration.
43598         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43599         REPLACE_VSPRINTF.
43600
43601 2007-03-06  Bruno Haible  <bruno@clisp.org>
43602
43603         * modules/vsnprintf (Depend-on): Remove minmax.
43604
43605 2007-03-06  Bruno Haible  <bruno@clisp.org>
43606
43607         * modules/snprintf-posix-tests: New file.
43608         * tests/test-snprintf-posix.c: New file.
43609
43610         * modules/snprintf-posix: New file.
43611         * m4/snprintf-posix.m4: New file.
43612         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43613         gl_FUNC_SNPRINTF.
43614         (gl_FUNC_SNPRINTF): Invoke it.
43615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43616         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43617         is set.
43618         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43619
43620 2007-03-06  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/vsnprintf-posix-tests: New file.
43623         * tests/test-vsnprintf-posix.c: New file.
43624         * tests/test-snprintf-posix.h: New file.
43625
43626         * modules/vsnprintf-posix: New file.
43627         * m4/vsnprintf-posix.m4: New file.
43628         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43629         gl_FUNC_VSNPRINTF.
43630         (gl_FUNC_VSNPRINTF): Invoke it.
43631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43632         * lib/stdio_.h (vsnprintf): Define as a replacement if
43633         REPLACE_VSNPRINTF is set.
43634         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43635
43636 2007-03-06  Bruno Haible  <bruno@clisp.org>
43637
43638         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43640
43641 2007-03-06  Bruno Haible  <bruno@clisp.org>
43642
43643         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43644         (asinl): Declare also if HAVE_DECL_ASINL is set.
43645         (atanl): Declare also if HAVE_DECL_ATANL is set.
43646         (ceill): Declare also if HAVE_DECL_CEILL is set.
43647         (cosl): Declare also if HAVE_DECL_COSL is set.
43648         (expl): Declare also if HAVE_DECL_EXPL is set.
43649         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43650         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43651         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43652         (logl): Declare also if HAVE_DECL_LOGL is set.
43653         (sinl): Declare also if HAVE_DECL_SINL is set.
43654         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43655         (tanl): Declare also if HAVE_DECL_TANL is set.
43656         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43658         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43659         declaration of frexpl, ldexpl.
43660         * modules/printf-frexpl (Depends-on): Add math.
43661         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43662
43663 2007-03-05  Bruno Haible  <bruno@clisp.org>
43664
43665         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43666         frexpl and ldexpl are declared.
43667         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43668
43669 2007-03-05  Bruno Haible  <bruno@clisp.org>
43670
43671         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43672         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43673
43674 2007-03-05  Bruno Haible  <bruno@clisp.org>
43675
43676         * lib/stdio_.h: Include <stddef.h>.
43677
43678 2007-03-05  Bruno Haible  <bruno@clisp.org>
43679
43680         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43681
43682 2007-03-05  Bruno Haible  <bruno@clisp.org>
43683
43684         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43685         NetBSD 4, from Ralf Wildenhues.
43686
43687 2007-03-04  Bruno Haible  <bruno@clisp.org>
43688
43689         * lib/vasprintf.h: Update #if logic for the case when the functions
43690         exist but are overridden.
43691
43692 2007-03-04  Bruno Haible  <bruno@clisp.org>
43693
43694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43695         implementations: glibc-2.4 and MacOS X 10.3.
43696         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43697         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43698         * tests/test-vasprintf-posix.c (test_function): Likewise.
43699
43700 2007-03-04  Bruno Haible  <bruno@clisp.org>
43701
43702         * modules/vasprintf-posix-tests: New file.
43703         * tests/test-vasprintf-posix.c: New file.
43704
43705         * modules/vasprintf-posix: New file.
43706         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43707         defined.
43708         * m4/vasprintf-posix.m4: New file.
43709         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43710         gl_FUNC_VASPRINTF.
43711         (gl_FUNC_VASPRINTF): Invoke it.
43712         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43713         here.
43714         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43715
43716 2007-03-04  Bruno Haible  <bruno@clisp.org>
43717
43718         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43719         REPLACE_GETTIMEOFDAY.
43720         * modules/sys_time (Makefile.am): Likewise.
43721         * m4/sys_time_h.m4: Likewise.
43722         * m4/gettimeofday.m4: Likewise.
43723
43724 2007-03-04  Bruno Haible  <bruno@clisp.org>
43725
43726         * modules/vasnprintf-posix-tests: New file.
43727         * tests/test-vasnprintf-posix.c: New file.
43728
43729         * modules/vasnprintf-posix: New file.
43730         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43731         printf-frexpl.h.
43732         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43733         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43734         REPLACE_VASNPRINTF is defined.
43735         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43736         gl_FUNC_VASNPRINTF.
43737         (gl_FUNC_VASNPRINTF): Invoke it.
43738         * m4/vasnprintf-posix.m4: New file.
43739         * m4/printf.m4: New file.
43740
43741 2007-03-04  Bruno Haible  <bruno@clisp.org>
43742
43743         Compile progreloc.c only if --enable-relocatable is specified.
43744         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43745         if --enable-relocatable was specified.
43746         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43747         lib_SOURCES.
43748
43749 2007-03-04  Jim Meyering  <jim@meyering.net>
43750
43751         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43752         Use it consistently, rather than enumerating errno constants.
43753
43754 2007-03-04  Bruno Haible  <bruno@clisp.org>
43755
43756         * modules/xvasprintf-tests: New file.
43757         * tests/test-xvasprintf.c: New file.
43758
43759         * modules/vasprintf-tests: New file.
43760         * tests/test-vasprintf.c: New file.
43761
43762         * modules/vasnprintf-tests: New file.
43763         * tests/test-vasnprintf.c: New file.
43764
43765         * modules/vsnprintf-tests: New file.
43766         * tests/test-vsnprintf.c: New file.
43767
43768         * modules/snprintf-tests: New file.
43769         * tests/test-snprintf.c: New file.
43770
43771 2007-03-04  Bruno Haible  <bruno@clisp.org>
43772
43773         Compile relocatable.c only if --enable-relocatable is specified.
43774         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43775         gl_RELOCATABLE_LIBRARY.
43776         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43777         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43778         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43779         gl_RELOCATABLE_LIBRARY.
43780         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43781         (Makefile.am): Remove lib_SOURCES.
43782         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43783         gl_RELOCATABLE_LIBRARY.
43784         (Makefile.am): Remove lib_SOURCES.
43785         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43786         always.
43787         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43788         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43789
43790 2007-03-04  Bruno Haible  <bruno@clisp.org>
43791
43792         * modules/argmatch-tests: New file.
43793         * tests/test-argmatch.c: New file.
43794
43795         * tests/test-allocsa.c (main): Halve the number of loop runs.
43796
43797         * modules/alloca-opt-tests: New file.
43798         * tests/test-alloca-opt.c: New file.
43799
43800 2007-03-04  Jim Meyering  <jim@meyering.net>
43801
43802         Work around difference between Linux ACLs and Solaris 10 ZFS.
43803         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43804         for EINVAL.
43805
43806 2007-03-03  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/relocatable-prog (Depends-on): Add back progreloc's
43809         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43810
43811 2007-03-03  Bruno Haible  <bruno@clisp.org>
43812
43813         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43814         * modules/relocatable-lib: New file.
43815
43816 2007-03-03  Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/relocatable-prog: Renamed from modules/relocatable.
43819         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43820
43821 2007-03-03  Bruno Haible  <bruno@clisp.org>
43822
43823         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43824         m4/relocatable-lib.m4.
43825         (Depends-on): Remove 'relocatable'.
43826         (configure.ac): Add gl_RELOCATABLE_NOP.
43827
43828 2007-03-03  Bruno Haible  <bruno@clisp.org>
43829
43830         * modules/relocatable-prog-wrapper: New file.
43831         * modules/relocatable (Depends-on): Add it. Remove all other
43832         dependencies except progname.
43833         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43834
43835         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43836         (gl_FUNC_STRERROR): Nop.
43837         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43838
43839         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43840         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43841
43842         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43843         (gl_FUNC_READLINK): Update.
43844
43845         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43846
43847 2007-03-03  Bruno Haible  <bruno@clisp.org>
43848
43849         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43850         * modules/xreadlink (Depends-on): Add unistd.
43851         * modules/xreadlink-with-size (Depends-on): Likewise.
43852
43853 2007-03-03  Bruno Haible  <bruno@clisp.org>
43854
43855         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43856         extracted from gt_FUNC_SETENV.
43857         (gt_FUNC_SETENV): Remove macro.
43858         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43859         remove gt_FUNC_SETENV.
43860
43861 2007-03-03  Bruno Haible  <bruno@clisp.org>
43862
43863         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43864         ENABLE_RELOCATABLE here.
43865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43866
43867 2007-03-03  Bruno Haible  <bruno@clisp.org>
43868
43869         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43870         * tests/test-rbtreehash_list.c: Include progname.h.
43871         (main): Call set_program_name.
43872
43873         * modules/rbtree-oset-tests (Depends-on): Add progname.
43874         * tests/test-rbtree_oset.c: Include progname.h.
43875         (main): Call set_program_name.
43876
43877         * modules/rbtree-list-tests (Depends-on): Add progname.
43878         * tests/test-rbtree_list.c: Include progname.h.
43879         (main): Call set_program_name.
43880
43881         * modules/linked-list-tests (Depends-on): Add progname.
43882         * tests/test-linked_list.c: Include progname.h.
43883         (main): Call set_program_name.
43884
43885 2007-03-03  Bruno Haible  <bruno@clisp.org>
43886
43887         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43888         All uses of __restrict changed to _Restrict_.
43889         * lib/glob_.h (__restrict): Remove macro.
43890
43891 2007-03-02  Bruno Haible  <bruno@clisp.org>
43892
43893         * modules/gettext (configure.ac): Require gettext infrastructure
43894         from version 0.16.1.
43895
43896 2007-03-02  Bruno Haible  <bruno@clisp.org>
43897
43898         * modules/linkedhash-list-tests (Depends-on): Add progname.
43899         * tests/test-linkedhash_list.c: Include progname.h.
43900         (main): Call set_program_name.
43901
43902         * modules/carray-list-tests (Depends-on): Add progname.
43903         * tests/test-carray_list.c: Include progname.h.
43904         (main): Call set_program_name.
43905
43906         * modules/avltreehash-list-tests (Depends-on): Add progname.
43907         * tests/test-avltreehash_list.c: Include progname.h.
43908         (main): Call set_program_name.
43909
43910         * modules/avltree-oset-tests (Depends-on): Add progname.
43911         * tests/test-avltree_oset.c: Include progname.h.
43912         (main): Call set_program_name.
43913
43914         * modules/avltree-list-tests (Depends-on): Add progname.
43915         * tests/test-avltree_list.c: Include progname.h.
43916         (main): Call set_program_name.
43917
43918         * modules/array-oset-tests (Depends-on): Add progname.
43919         * tests/test-array_oset.c: Include progname.h.
43920         (main): Call set_program_name.
43921
43922         * modules/array-list-tests (Depends-on): Add progname.
43923         * tests/test-array_list.c: Include progname.h.
43924         (main): Call set_program_name.
43925
43926         * modules/argp-tests (Depends-on): Add progname.
43927         * tests/test-argp.c: Include argp.h first. Include progname.h.
43928         (main): Call set_program_name.
43929
43930 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43931
43932         * doc/gnulib-tool.texi (Initial import): Reword description of
43933         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43934         limited effect even if defined after the first system include.
43935
43936 2007-03-01  Bruno Haible  <bruno@clisp.org>
43937
43938         * build-aux/config.libpath: Update to libtool-1.5.22.
43939         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43940
43941 2007-03-01  Bruno Haible  <bruno@clisp.org>
43942
43943         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
43944         foo_CFLAGS.
43945         Reported by Ralf Wildenhues.
43946
43947 2007-03-01  Bruno Haible  <bruno@clisp.org>
43948
43949         * build-aux/install-reloc: Remove object files left over by some
43950         compilers.
43951         Reported by Ralf Wildenhues.
43952
43953 2007-03-01  Bruno Haible  <bruno@clisp.org>
43954
43955         * build-aux/install-reloc: Break long lines.
43956
43957 2007-03-01  Bruno Haible  <bruno@clisp.org>
43958
43959         * doc/relocatable.texi: Document that it may not work on OpenBSD.
43960         Reported by Ralf Wildenhues.
43961
43962 2007-03-01  Bruno Haible  <bruno@clisp.org>
43963
43964         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
43965         include ordering constraints.
43966
43967 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43968
43969         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
43970         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
43971         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
43972         as another example.
43973         * lib/time_.h: Fix misspelling.
43974         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43975         Require gl_HEADER_TIME_H_DEFAULTS.
43976         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
43977         * m4/time_r.m4 (gl_TIME_R): Likewise.
43978         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
43979
43980 2007-03-01  Bruno Haible  <bruno@clisp.org>
43981
43982         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
43983         * m4/utimens.m4 (gl_UTIMENS): Likewise.
43984
43985 2007-03-01  Jim Meyering  <jim@meyering.net>
43986
43987         * modules/xreadlink (Maintainer): Add my name.
43988         * modules/xreadlink-with-size (Depends-on): Alphabetize.
43989
43990 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
43991             Bruno Haible  <bruno@clisp.org>
43992
43993         * build-aux/install-reloc: Compile also c-ctype.c.
43994         * build-aux/relocatable.sh.in: New file.
43995         * doc/relocatable.texi: New file.
43996         * doc/relocatable-maint.texi: New file.
43997         * doc/gnulib.texi: Include relocatable-maint.texi.
43998         * lib/progreloc.c: Include unistd.h unconditionally.
43999         * lib/relocwrapper.c: Include unistd.h unconditionally.
44000         Include c-ctype.h.
44001         (add_dotbin): Use c_tolower.
44002         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44003         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44004         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44005         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44006         to m4/relocatable-lib.m4.
44007         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44008         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44009         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44010         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44011         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44012         * modules/relocatable: New file.
44013         * modules/relocatable-lib: New file.
44014         * modules/relocatable-script: New file.
44015
44016 2007-02-28  Bruno Haible  <bruno@clisp.org>
44017
44018         Import --enable-relocatable infrastructure.
44019         * build-aux/config.libpath: New file, from GNU gettext.
44020         * build-aux/install-reloc: New file, from GNU gettext.
44021         * build-aux/reloc-ldflags: New file, from GNU gettext.
44022         * lib/relocatable.h: New file, from GNU gettext.
44023         * lib/relocatable.c: New file, from GNU gettext.
44024         * lib/relocwrapper.c: New file, from GNU gettext.
44025         * m4/relocatable.m4: New file, from GNU gettext.
44026
44027 2007-02-28  Bruno Haible  <bruno@clisp.org>
44028
44029         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44030
44031         * modules/xreadlink: New file, from GNU gettext with modifications.
44032         * lib/xreadlink.c: New file, from GNU gettext.
44033         * lib/xreadlink.h: Add comments.
44034         (xreadlink): New declaration.
44035
44036         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44037         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44038         lib/xreadlink-with-size.c.
44039         (configure.ac): Remove gl_XREADLINK invocation.
44040         (Makefile.am): Augment lib_SOURCES.
44041         * m4/xreadlink.m4: Remove file.
44042         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44043         (xreadlink_with_size): Renamed from xreadink.
44044         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44045         * modules/canonicalize (Depends-on): Replace xreadlink with
44046         xreadlink-with-size.
44047         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44048
44049 2007-02-25  Jim Meyering  <jim@meyering.net>
44050
44051         * build-aux/announce-gen: When complaining about excess arguments,
44052         list them.
44053
44054 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44055
44056         * README: Document signed integer overflow situation more
44057         accurately.
44058
44059 2007-02-25  Bruno Haible  <bruno@clisp.org>
44060
44061         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44062         'a' or 'A' conversion.
44063
44064 2007-02-25  Bruno Haible  <bruno@clisp.org>
44065
44066         * modules/filename: Renamed from modules/pathname.
44067         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44068         lib/concatpath.c with lib/concat-filename.c.
44069         (Makefile.am): Update.
44070         (Include): Replace pathname.h with filename.h.
44071         * lib/filename.h: Renamed from lib/pathname.h.
44072         (concatenated_filename): Renamed from concatenated_pathname.
44073         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44074         (concatenated_filename): Renamed from concatenated_pathname.
44075         * lib/findprog.c: Include filename.h instead of pathname.h.
44076         (find_in_path): Update.
44077         * lib/javacomp.c: Include filename.h instead of pathname.h.
44078         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44079         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44080         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44081         is_oldgcj_14_13_usable, is_javac_usable): Update.
44082         * lib/javaexec.c: Include filename.h instead of pathname.h.
44083         (execute_java_class): Update.
44084         * modules/findprog: Update.
44085         * modules/javacomp: Update.
44086         * modules/javaexec: Update.
44087         * MODULES.html.sh (File system functions): Add 'filename', remove
44088         'pathname'.
44089
44090 2007-02-25  Bruno Haible  <bruno@clisp.org>
44091
44092         * modules/printf-frexpl-tests: New file.
44093         * tests/test-printf-frexpl.c: New file.
44094
44095         * modules/printf-frexpl: New file.
44096         * lib/printf-frexpl.h: New file.
44097         * lib/printf-frexpl.c: New file.
44098         * m4/printf-frexpl.m4: New file.
44099
44100 2007-02-25  Bruno Haible  <bruno@clisp.org>
44101
44102         * modules/printf-frexp-tests: New file.
44103         * tests/test-printf-frexp.c: New file.
44104
44105         * modules/printf-frexp: New file.
44106         * lib/printf-frexp.h: New file.
44107         * lib/printf-frexp.c: New file.
44108         * m4/printf-frexp.m4: New file.
44109
44110 2007-02-25  Bruno Haible  <bruno@clisp.org>
44111
44112         Assume automake >= 1.10 for the tests.
44113         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44114         * modules/arctwo-tests: Likewise.
44115         * modules/argp-tests: Likewise.
44116         * modules/avltree-list-tests: Likewise.
44117         * modules/avltree-oset-tests: Likewise.
44118         * modules/avltreehash-list-tests: Likewise.
44119         * modules/carray-list-tests: Likewise.
44120         * modules/crc-tests: Likewise.
44121         * modules/des-tests: Likewise.
44122         * modules/gc-arcfour-tests: Likewise.
44123         * modules/gc-arctwo-tests: Likewise.
44124         * modules/gc-des-tests: Likewise.
44125         * modules/gc-hmac-md5-tests: Likewise.
44126         * modules/gc-hmac-sha1-tests: Likewise.
44127         * modules/gc-md2-tests: Likewise.
44128         * modules/gc-md4-tests: Likewise.
44129         * modules/gc-md5-tests: Likewise.
44130         * modules/gc-pbkdf2-sha1-tests: Likewise.
44131         * modules/gc-rijndael-tests: Likewise.
44132         * modules/gc-sha1-tests: Likewise.
44133         * modules/gc-tests: Likewise.
44134         * modules/getaddrinfo-tests: Likewise.
44135         * modules/hmac-md5-tests: Likewise.
44136         * modules/hmac-sha1-tests: Likewise.
44137         * modules/linked-list-tests: Likewise.
44138         * modules/linkedhash-list-tests: Likewise.
44139         * modules/lock-tests: Likewise.
44140         * modules/md2-tests: Likewise.
44141         * modules/md4-tests: Likewise.
44142         * modules/md5-tests: Likewise.
44143         * modules/rbtree-list-tests: Likewise.
44144         * modules/rbtree-oset-tests: Likewise.
44145         * modules/rbtreehash-list-tests: Likewise.
44146         * modules/read-file-tests: Likewise.
44147         * modules/rijndael-tests: Likewise.
44148         * modules/stdint-tests: Likewise.
44149         * modules/tls-tests: Likewise.
44150
44151 2007-02-24  Bruno Haible  <bruno@clisp.org>
44152
44153         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44154         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44155         function; instead check whether isnan with a double argument links.
44156         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44157         function; instead check whether isnan with a 'long double' argument
44158         links.
44159         Reported by Eric Blake <ebb9@byu.net>.
44160
44161 2007-02-24  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44164         defined.
44165         * lib/isnanl.c: Remove all code. Just include isnan.c.
44166         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44167
44168 2007-02-25  Jim Meyering  <jim@meyering.net>
44169
44170         Avoid conflicting types for 'unsetenv' on FreeBSD.
44171         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44172         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44173         in stdlib.h.
44174
44175 2007-02-24  Bruno Haible  <bruno@clisp.org>
44176
44177         * modules/isnanl-nolibm-tests: New file.
44178         * tests/test-isnanl.c: New file.
44179
44180         * modules/isnanl-nolibm: New file.
44181         * lib/isnanl.h: New file.
44182         * lib/isnanl.c: New file.
44183         * m4/isnanl.m4: New file.
44184
44185 2007-02-24  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/isnan-nolibm-tests: New file.
44188         * tests/test-isnan.c: New file.
44189
44190         * modules/isnan-nolibm: New file.
44191         * lib/isnan.h: New file.
44192         * lib/isnan.c: New file.
44193         * m4/isnan.m4: New file.
44194
44195 2007-02-24  Bruno Haible  <bruno@clisp.org>
44196
44197         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44198         assume that an exponent fits in 20 bits.
44199
44200 2007-02-24  Jim Meyering  <jim@meyering.net>
44201
44202         * m4/regex.m4: Update the description of the configure-time option,
44203         --without-included-regex, to state accurately what the defaults are,
44204         and perhaps to give people an idea why using this option is risky.
44205
44206 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44207
44208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44209         loops on small arguments.  This attempts to avoid the problem
44210         Bruno Haible reported for AIX 4.3.2 in
44211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44212
44213 2007-02-23  Bruno Haible  <bruno@clisp.org>
44214
44215         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44216         Needed for help2man.
44217
44218 2007-02-23  Karl Berry  <karl@gnu.org>
44219
44220         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44221         exists, foo.h should be cvs-ignored, not committed.
44222
44223 2007-02-23  Eric Blake  <ebb9@byu.net>
44224
44225         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44226         * lib/stat-time.h (includes): Likewise.
44227         * lib/utimecmp.c (includes): Likewise.
44228         * lib/utimens.h (includes): Likewise.
44229         * lib/getdate.y (includes): Also include "timespec.h" for use
44230         internal to the module.
44231         * modules/utimens (Depends-on): Revert yesterday's patch.
44232         * modules/nanosleep (Depends-on): Add missing dependency.
44233
44234 2007-02-22  Bruno Haible  <bruno@clisp.org>
44235
44236         * lib/glob.c: Don't include getlogin_r.h.
44237
44238 2007-02-22  Jim Meyering  <jim@meyering.net>
44239
44240         * modules/utimens (Depends-on): Add timespec, required for
44241         utimens.h's inclusion of timespec.h.
44242
44243 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44246         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44247         Schwab in
44248         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44249         I'll try to think of a better way to fix the Solaris problem.
44250
44251         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44252         like glibc; on Solaris 10, it fails with errno == EINVAL.
44253         POSIX says the behavior is unspecified if the first argument is NULL,
44254         so play it safe and never pass NULL to the system getcwd.
44255
44256 2007-02-21  Jim Meyering  <jim@meyering.net>
44257
44258         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44259         of gettimeofday.  It would conflict with the one now always
44260         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44261         an IRIX 6.5 build failure.
44262
44263 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44264
44265         Minor fixups to port to Solaris 10 with Sun C 5.8.
44266         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44267         * modules/getcwd (Depends-on): Add dirfd.
44268         * lib/putenv.c (putenv): #undef it.
44269         (rpl_putenv): New decl.
44270         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44271
44272 2007-02-20  Bruno Haible  <bruno@clisp.org>
44273
44274         * modules/stdio-tests: New file.
44275         * tests/test-stdio.c: New file.
44276
44277         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44278         (Depends-on): Add stdio.
44279         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44280         (Include): Use <stdio.h> instead of vsnprintf.h.
44281         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44282         HAVE_DECL_VSNPRINTF.
44283         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44284
44285         * modules/snprintf (Files): Remove lib/snprintf.h.
44286         (Depends-on): Add stdio.
44287         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44288         (Include): Use <stdio.h> instead of snprintf.h.
44289         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44290         HAVE_DECL_SNPRINTF.
44291         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44292         * lib/getaddrinfo.c: Likewise.
44293
44294         * modules/stdio: New file.
44295         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44296         * lib/snprintf.h: Remove file.
44297         * lib/vsnprintf.h: Remove file.
44298         * lib/.cppi-disable: Remove snprintf.h.
44299         * m4/stdio_h.m4: New file.
44300         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44301
44302 2007-02-20  Jim Meyering  <jim@meyering.net>
44303
44304         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44305         used by e.g., mingw.  From Bruno Haible.
44306
44307 2007-02-19  Bruno Haible  <bruno@clisp.org>
44308
44309         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44310         warnings.
44311         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44312
44313 2007-02-19  Bruno Haible  <bruno@clisp.org>
44314
44315         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44316         from mingw users.
44317
44318 2007-02-19  Bruno Haible  <bruno@clisp.org>
44319
44320         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44321         warnings.
44322         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44323
44324 2007-02-19  Jim Meyering  <jim@meyering.net>
44325
44326         Don't use FD after a successful "fdopendir (fd)".
44327         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44328         Reset it by calling dirfd on the just-obtained DIR*.
44329
44330         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44331         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44332
44333 2007-02-18  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/readlink.c: Include <unistd.h>.
44336         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44337         HAVE_READLINK.
44338         * modules/readlink (Depends-on): Add unistd.
44339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44340         (Include): Add <unistd.h>.
44341
44342         * lib/getlogin_r.h: Remove file.
44343         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44344         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44345         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44346         HAVE_DECL_GETLOGIN_R.
44347         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44348         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44349         (Include): Use <unistd.h> instead of getlogin_r.h.
44350
44351         * lib/getcwd.h: Remove file.
44352         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44353         * lib/xgetcwd.c: Likewise.
44354         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44355         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44356         * modules/getcwd (Files): Remove lib/getcwd.h.
44357         (Depends-on): Add unistd.
44358         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44359         (Include): Use <unistd.h> instad of getcwd.h.
44360
44361         * lib/ftruncate.c: Include <unistd.h> first.
44362         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44363         Set HAVE_FTRUNCATE.
44364         * modules/ftruncate (Depends-on): Add unistd.
44365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44366
44367         * lib/fchdir.c: Include <unistd.h> first.
44368         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44370         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44371         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44372         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44373
44374         * lib/dup2.c: Include <unistd.h> first.
44375         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44376         HAVE_DUP2.
44377         * modules/dup2 (Depends-on): Add unistd.
44378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44379
44380         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44381         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44382         REPLACE_CHOWN. Don't define chown as a macro here.
44383         * modules/chown (Depends-on): Add unistd.
44384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44385
44386         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44387         Add definition for GL_LINK_WARNING.
44388         (chown, dup2): New declarations.
44389         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44390         link warning.
44391         (ftruncate): New declaration.
44392         (getcwd): New declaration, taken from old getcwd.h.
44393         (getlogin_r): New declaration, taken from old getlogin_r.h.
44394         (readlink): New declaration.
44395         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44396         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44397         (gl_PREREQ_UNISTD): Remove macro.
44398         (gl_UNISTD_MODULE_INDICATOR): New macro.
44399         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44400         many new variables. Don't set UNISTD_H.
44401         * modules/unistd (Description): Change.
44402         (Depends-on): Add link-warning.
44403         (configure.ac): Update.
44404         (Makefile.am): Create unistd.h always. Substitute many new variables
44405         into it.
44406
44407 2007-02-18  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44410         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44411         HAVE_GETSUBOPT.
44412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44413         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44414         * lib/getsubopt.h: Remove file.
44415         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44416         (Depends-on): Add stdlib.
44417         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44418         (Includes): Use <stdlib.h> instead of getsubopt.h.
44419         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44420         Set HAVE_GETSUBOPT.
44421         * lib/getsubopt.c: Don't include getsubopt.h.
44422
44423 2007-02-18  Bruno Haible  <bruno@clisp.org>
44424
44425         * modules/fchdir (Depends-on): Add dup2.
44426
44427 2007-02-18  Bruno Haible  <bruno@clisp.org>
44428
44429         * lib/stdlib_.h: Handle glibc's special invocation convention
44430         specially.
44431
44432 2007-02-18  Bruno Haible  <bruno@clisp.org>
44433
44434         * modules/stdlib-tests: New file.
44435         * tests/test-stdlib.c: New file.
44436
44437         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44438         (Depends-on): Add stdlib.
44439         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44440         (Includes): Use <stdlib.h> instead of mkstemp.h.
44441         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44442         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44443         * lib/mkstemp.c: Don't include mkstemp.h.
44444         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44445         * lib/stdlib--.h: Don't include mkstemp.h.
44446
44447         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44448         (Depends-on): Add stdlib.
44449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44450         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44451         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44452         HAVE_MKDTEMP.
44453         * lib/mkdtemp.c: Don't include mkdtemp.h.
44454         * lib/clean-temp.c: Don't include mkdtemp.h.
44455
44456         * modules/exit (Files): Remove lib/exit.h.
44457         (Depends-on): Add stdlib.
44458         (Makefile.am): Remove lib_SOURCES.
44459         (Include): Use <stdlib.h> instead of exit.h.
44460         * lib/argmatch.c: Don't include exit.h.
44461         * lib/execute.c: Likewise.
44462         * lib/pagealign_alloc.c: Likewise.
44463         * lib/pipe.c: Likewise.
44464         * lib/wait-process.c: Likewise.
44465         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44466         * lib/exitfail.c: Likewise.
44467         * lib/savewd.c: Likewise.
44468         * lib/xsetenv.c: Likewise.
44469
44470         * modules/stdlib: New file.
44471         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44472         and extra comments about mkstemp().
44473         * lib/exit.h: Remove file.
44474         * lib/mkdtemp.h: Remove file.
44475         * lib/mkstemp.h: Remove file.
44476         * m4/stdlib_h.m4: New file.
44477         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44478
44479 2007-02-18  Bruno Haible  <bruno@clisp.org>
44480
44481         * modules/math-tests: New file.
44482         * tests/test-math.c: New file.
44483
44484         * modules/math: New file.
44485         * modules/mathl (Files): Remove lib/mathl.h.
44486         (Depends-on): Add math.
44487         (Makefile.am): Don't mention mathl.h.
44488         (Include): Use <math.h> instead of mathl.h.
44489         * lib/math_.h: New file.
44490         * lib/mathl.h: Remove file.
44491         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44492         mathl.h.
44493         * lib/asinl.c: Likewise.
44494         * lib/atanl.c: Likewise.
44495         * lib/ceill.c: Likewise.
44496         * lib/cosl.c: Likewise.
44497         * lib/expl.c: Likewise.
44498         * lib/floorl.c: Likewise.
44499         * lib/frexpl.c: Likewise.
44500         * lib/ldexpl.c: Likewise.
44501         * lib/logl.c: Likewise.
44502         * lib/sincosl.c: Likewise.
44503         * lib/sinl.c: Likewise.
44504         * lib/sqrtl.c: Likewise.
44505         * lib/tanl.c: Likewise.
44506         * lib/trigl.c: Likewise.
44507         * m4/math_h.m4: New file.
44508         * MODULES.html.sh (Mathematics): Add math.
44509
44510 2007-02-17  Bruno Haible  <bruno@clisp.org>
44511
44512         * modules/wctype-tests: New file.
44513         * tests/test-wctype.c: New file.
44514
44515         * modules/wchar-tests: New file.
44516         * tests/test-wchar.c: New file.
44517
44518         * modules/unistd-tests: New file.
44519         * tests/test-unistd.c: New file.
44520
44521         * modules/time-tests: New file.
44522         * tests/test-time.c: New file.
44523
44524         * modules/sysexits-tests: New file.
44525         * tests/test-sysexits.c: New file.
44526
44527         * modules/sys_time-tests: New file.
44528         * tests/test-sys_time.c: New file.
44529
44530         * modules/sys_stat-tests: New file.
44531         * tests/test-sys_stat.c: New file.
44532
44533         * modules/sys_socket-tests: New file.
44534         * tests/test-sys_socket.c: New file.
44535
44536         * modules/sys_select-tests: New file.
44537         * tests/test-sys_select.c: New file.
44538
44539         * modules/string-tests: New file.
44540         * tests/test-string.c: New file.
44541
44542         * modules/stdbool-tests: New file.
44543         * tests/test-stdbool.c: New file.
44544
44545         * modules/netinet_in-tests: New file.
44546         * tests/test-netinet_in.c: New file.
44547
44548         * modules/inttypes-tests: New file.
44549         * tests/test-inttypes.c: New file.
44550
44551         * modules/fcntl-tests: New file.
44552         * tests/test-fcntl.c: New file.
44553
44554         * modules/byteswap-tests: New file.
44555         * tests/test-byteswap.c: New file.
44556
44557         * modules/arpa_inet-tests: New file.
44558         * tests/test-arpa_inet.c: New file.
44559
44560 2007-02-17  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44563         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44564         if the corresponding module is not enabled. Emit link warnings if
44565         the function is used nevertheless.
44566         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44567         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44568         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44569         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44570         * modules/inttypes (Depends-on): Add link-warning.
44571         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44572         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44573         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44574         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44575         * modules/imaxdiv (configure.ac): Likewise.
44576         * modules/strtoimax (configure.ac): Likewise.
44577         * modules/strtoumax (configure.ac): Likewise.
44578
44579 2007-02-17  Bruno Haible  <bruno@clisp.org>
44580
44581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44582         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44583         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44584         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44585
44586 2007-02-17  Bruno Haible  <bruno@clisp.org>
44587
44588         * modules/link-warning: New file.
44589         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44590         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44591         * modules/string (Depends-on): Add link-warning.
44592         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44593         string.h.
44594         * MODULES.html.sh (Support for building libraries and executables): Add
44595         link-warning.
44596
44597 2007-02-17  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44600         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44601         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44602         long lines.
44603
44604 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44605             Bruno Haible  <bruno@clisp.org>
44606
44607         * modules/tmpfile: New file.
44608         * lib/tmpfile.c: New file.
44609         * m4/tmpfile.m4: New file.
44610         * MODULES.html.sh (func_all_modules): New section "Input/output".
44611
44612 2007-02-15  Bruno Haible  <bruno@clisp.org>
44613
44614         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44615         (supports_delete_on_close): New function.
44616         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44617
44618 2007-02-14  Bruno Haible  <bruno@clisp.org>
44619
44620         * modules/mbspcasecmp-tests: New file.
44621         * tests/test-mbspcasecmp.sh: New file.
44622         * tests/test-mbspcasecmp.c: New file.
44623
44624         New module mbspcasecmp.
44625         * modules/mbspcasecmp: New file.
44626         * lib/mbspcasecmp.c: New file.
44627         * lib/string_.h (strncasecmp): Change warning message.
44628         (mbspcasecmp): New declaration.
44629         * m4/mbspcasecmp.m4: New file.
44630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44631         GNULIB_MBSPCASECMP.
44632         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44633         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44634
44635 2007-02-14  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/mbsncasecmp-tests: New file.
44638         * tests/test-mbsncasecmp.sh: New file.
44639         * tests/test-mbsncasecmp.c: New file.
44640
44641         New module mbsncasecmp.
44642         * modules/mbsncasecmp: New file.
44643         * lib/mbsncasecmp.c: New file.
44644         * lib/string_.h (mbsncasecmp): New declaration.
44645         * m4/mbsncasecmp.m4: New file.
44646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44647         GNULIB_MBSNCASECMP.
44648         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44649         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44650
44651 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44654         Verify that it doesn't overlap with our flags.
44655         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44656         do not have the desired effect in multibyte locales; instead, use
44657         mbscasecmp.
44658         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44659         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44660         we don't require GNU fnmatch ourselves (if our users require it, they
44661         should do so explicitly).
44662
44663         Fix regex code so it doesn't rely on strcasecmp.
44664         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44665         Otherwise, include gnulib's langinfo.h.
44666         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44667         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44668         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44669         * modules/regex (FILES): Remove m4/codeset.m4.
44670         (Depends-on): Add localcharset.  Remove strcase.
44671
44672 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44673
44674         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44675         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44676
44677 2007-02-13  Bruno Haible  <bruno@clisp.org>
44678
44679         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44681
44682 2007-02-12  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44685         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44686         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44687         time warning rather than a link error.
44688
44689 2007-02-12  Bruno Haible  <bruno@clisp.org>
44690
44691         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44692         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44694
44695 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44696
44697         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44698         args, not 2.
44699
44700 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44701
44702         New module 'time', so that apps can include <time.h> as per
44703         POSIX and GNU instead of separate include files like time_r.h
44704         and timegm.h.  This implementation tries out a simpler approach
44705         for replacing decls in standard include files (as compared to
44706         the string module), somewhat as an experiment.
44707
44708         * config/srclist.txt: Comment out mktime.c for now.
44709         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44710         since it doesn't apply any more.  Use generic wording instead.
44711         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44712         'time'.
44713         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44714         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44715         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44716         Don't include <sys/types.h>; no longer needed since we assume C89.
44717         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44718         * lib/strftime.c: Likewise.
44719         * lib/time_r.c: Likewise.
44720         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44721         * lib/nanosleep.c: Include <time.h> first, to check interface.
44722         * lib/strptime.c: Likewise.
44723         * lib/time_r.c: Likewise.
44724         * lib/timegm.c: Likewise.
44725         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44726         needed.
44727         * lib/timegm.c: Don't include timegm.h; no longer needed.
44728         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44729         time.h now handles any problems in that area.
44730         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44731         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44732         that time.h defines struct timespec.
44733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44734         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44735         handles that.
44736         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44737         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44738         needed.  Set REPLACE_LOCALTIME.
44739         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44740         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44741         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44742         nanosleep; time_h.m4 now does that.  Don't require
44743         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44744         module handles this now.
44745         * modules/getdate (Depends-on): Remove timespec.  Add time.
44746         * modules/nanosleep (Depends-on): Likewise.
44747         * modules/stat-time (Depends-on): Likewise.
44748         * modules/nanosleep (Include): Include time.h, not timespec.h.
44749         * modules/strptime (Files): Remove lib/strptime.h.
44750         (Depends-on): Add extensions, time.
44751         (Include): Include time.h, not strptime.h.
44752         * modules/time_r (Files): Remove lib/time_r.h.
44753         (Depends-on): Add time.
44754         (Include): Include time.h, not time_r.h.
44755         * modules/timegm: Likewise.
44756         * modules/timespec (Description): Now does timespec-related decls
44757         of our own, instead of struct timespec itself.
44758         (Depends-on): Add time; remove extensions.
44759         (Maintainer): Add self.
44760         * modules/utimecmp (Depends-on): Add time; remove timespec.
44761         * modules/utimens (Depends-on): Likewise.
44762         * modules/xnanosleep (Depends-on): Likewise.
44763
44764 2007-02-11  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/c-strstr.c: Include allocsa.h.
44767         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44768         * lib/c-strcasestr.c: Include allocsa.h.
44769         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44770         * lib/strcasestr.c: Include allocsa.h.
44771         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44772         * lib/mbsstr.c: Include allocsa.h.
44773         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44774         allocsa/freesa instead of malloc/free.
44775         * lib/mbscasestr.c: Include allocsa.h.
44776         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44777         allocsa/freesa instead of malloc/free.
44778         * modules/c-strstr (Depends-on): Add allocsa.
44779         * modules/c-strcasestr (Depends-on): Likewise.
44780         * modules/strcasestr (Depends-on): Likewise.
44781         * modules/mbsstr (Depends-on): Likewise.
44782         * modules/mbscasestr (Depends-on): Likewise.
44783
44784 2007-02-11  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44787
44788         * modules/mbsspn-tests: New file.
44789         * tests/test-mbsspn.sh: New file.
44790         * tests/test-mbsspn.c: New file.
44791
44792 2007-02-11  Bruno Haible  <bruno@clisp.org>
44793
44794         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44795
44796         * modules/mbspbrk-tests: New file.
44797         * tests/test-mbspbrk.sh: New file.
44798         * tests/test-mbspbrk.c: New file.
44799
44800 2007-02-11  Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44803         unneeded cast.
44804
44805         * modules/mbscspn-tests: New file.
44806         * tests/test-mbscspn.sh: New file.
44807         * tests/test-mbscspn.c: New file.
44808
44809 2007-02-11  Bruno Haible  <bruno@clisp.org>
44810
44811         * modules/mbscasecmp-tests: New file.
44812         * tests/test-mbscasecmp.sh: New file.
44813         * tests/test-mbscasecmp.c: New file.
44814
44815 2007-02-11  Bruno Haible  <bruno@clisp.org>
44816
44817         Ensure O(n) worst-case complexity of mbscasestr.
44818         * lib/mbscasestr.c: Include stdbool.h.
44819         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44820         functions.
44821         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44822         the bookkeeping indicates that it's worth it.
44823         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44824
44825         * modules/mbscasestr-tests: New file.
44826         * tests/test-mbscasestr1.c: New file.
44827         * tests/test-mbscasestr2.sh: New file.
44828         * tests/test-mbscasestr2.c: New file.
44829         * tests/test-mbscasestr3.sh: New file.
44830         * tests/test-mbscasestr3.c: New file.
44831         * tests/test-mbscasestr4.sh: New file.
44832         * tests/test-mbscasestr4.c: New file.
44833         * m4/locale-tr.m4: New file.
44834
44835 2007-02-11  Bruno Haible  <bruno@clisp.org>
44836
44837         Ensure O(n) worst-case complexity of mbsstr.
44838         * lib/mbsstr.c: Include stdbool.h.
44839         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44840         functions.
44841         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44842         bookkeeping indicates that it's worth it.
44843         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44844
44845         * modules/mbsstr-tests: New file.
44846         * tests/test-mbsstr1.c: New file.
44847         * tests/test-mbsstr2.sh: New file.
44848         * tests/test-mbsstr2.c: New file.
44849         * tests/test-mbsstr3.sh: New file.
44850         * tests/test-mbsstr3.c: New file.
44851         * m4/locale-fr.m4: New file.
44852
44853 2007-02-11  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/mbsrchr.c (mbsrchr): Fix bug.
44856
44857         * modules/mbsrchr-tests: New file.
44858         * tests/test-mbsrchr.sh: New file.
44859         * tests/test-mbsrchr.c: New file.
44860
44861 2007-02-11  Bruno Haible  <bruno@clisp.org>
44862
44863         * lib/mbschr.c (mbschr): Fix bug.
44864
44865         * modules/mbschr-tests: New file.
44866         * tests/test-mbschr.sh: New file.
44867         * tests/test-mbschr.c: New file.
44868         * m4/locale-zh.m4: New file.
44869
44870 2007-02-11  Bruno Haible  <bruno@clisp.org>
44871
44872         Support for copying multibyte string iterators.
44873         * lib/mbiter.h: Include <string.h>.
44874         (mbiter_multi_copy): New function.
44875         (mbi_copy): New macro.
44876         * lib/mbuiter.h: Include <string.h>.
44877         (mbuiter_multi_copy): New function.
44878         (mbui_copy): New macro.
44879
44880 2007-02-11  Bruno Haible  <bruno@clisp.org>
44881
44882         New module mbslen.
44883         * modules/mbslen: New file.
44884         * lib/mbslen.c: New file.
44885         * lib/string_.h (mbslen): New declaration.
44886         * m4/mbslen.m4: New file.
44887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44888         GNULIB_MBSLEN.
44889         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44890         * MODULES.html.sh (Internationalization functions): Add mbslen.
44891
44892 2007-02-11  Bruno Haible  <bruno@clisp.org>
44893
44894         Ensure O(n) worst-case complexity of strcasestr substitute.
44895         * lib/strcasestr.c: Include stdbool.h.
44896         (knuth_morris_pratt): New function.
44897         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44898         bookkeeping indicates that it's worth it.
44899         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44900
44901         * modules/strcasestr-tests: New file.
44902         * tests/test-strcasestr.c: New file.
44903
44904 2007-02-11  Bruno Haible  <bruno@clisp.org>
44905
44906         Ensure O(n) worst-case complexity of c_strcasestr.
44907         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44908         (knuth_morris_pratt): New function.
44909         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44910         the bookkeeping indicates that it's worth it.
44911         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44912
44913         * modules/c-strcasestr-tests: New file.
44914         * tests/test-c-strcasestr.c: New file.
44915
44916 2007-02-11  Bruno Haible  <bruno@clisp.org>
44917
44918         Ensure O(n) worst-case complexity of c_strstr.
44919         * lib/c-strstr.c: Include stdbool.h, string.h.
44920         (knuth_morris_pratt): New function.
44921         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44922         bookkeeping indicates that it's worth it.
44923         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44924
44925         * lib/c-strstr.c: Complete rewrite for maintainability.
44926
44927         * modules/c-strstr-tests: New file.
44928         * tests/test-c-strstr.c: New file.
44929
44930 2007-02-11  Bruno Haible  <bruno@clisp.org>
44931
44932         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44933         5.2.1 and earlier, whereby \055 was treated just like the range
44934         delimiter '-'.
44935         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44936
44937 2007-02-08  Bruno Haible  <bruno@clisp.org>
44938
44939         * modules/regex (Depends-on): Add stdbool.
44940         Reported by Dalibor Topic <robilad@kaffe.org>.
44941
44942 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44943
44944         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
44945         Prefer returning from main to exiting from it.
44946         Remove unnecessary parens after sizeof.
44947
44948 2007-02-05  Bruno Haible  <bruno@clisp.org>
44949
44950         New module mbssep.
44951         * modules/mbssep: New file.
44952         * lib/mbssep.c: New file.
44953         * lib/string_.h (strsep): Add a conditional link warning.
44954         (mbssep): New declaration.
44955         * m4/mbssep.m4: New file.
44956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44957         GNULIB_MBSSEP.
44958         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
44959         * MODULES.html.sh (Internationalization functions): Add mbssep.
44960
44961 2007-02-05  Bruno Haible  <bruno@clisp.org>
44962
44963         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
44964         Optimize search in case of 1 delimiter.
44965
44966 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44967
44968         * lib/acl.h: Include sys/types.h before sys/acl.h.
44969
44970 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44971
44972         Merge upstream fix for glibc bugzilla #3957:
44973
44974         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
44975
44976         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
44977         bit for RE_HAT_LISTS_NOT_NEWLINE.
44978         (build_charclass_op): Remove bogus comment.
44979
44980 2007-02-05  Simon Josefsson  <simon@josefsson.org>
44981
44982         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
44983
44984 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44985
44986         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
44987         * lib/memmem.c [!defined _LIBC]: Include config.h.
44988
44989 2007-02-04  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
44992         warning message.
44993
44994 2007-02-04  Bruno Haible  <bruno@clisp.org>
44995
44996         New module mbstok_r.
44997         * modules/mbstok_r: New file.
44998         * lib/mbstok_r.c: New file.
44999         * lib/string_.h (strtok_r): Change argument names to match the
45000         comments. Add a conditional link warning.
45001         (mbstok_r): New declaration.
45002         * m4/mbstok_r.m4: New file.
45003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45004         GNULIB_MBSTOK_R.
45005         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45006         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45007
45008 2007-02-04  Bruno Haible  <bruno@clisp.org>
45009
45010         New module mbsspn.
45011         * modules/mbsspn: New file.
45012         * lib/mbsspn.c: New file.
45013         * lib/string_.h (strspn): Add a conditional link warning.
45014         (mbsspn): New declaration.
45015         * m4/mbsspn.m4: New file.
45016         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45017         GNULIB_MBSSPN.
45018         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45019         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45020
45021 2007-02-04  Bruno Haible  <bruno@clisp.org>
45022
45023         New module mbspbrk.
45024         * modules/mbspbrk: New file.
45025         * lib/mbspbrk.c: New file.
45026         * lib/string_.h (strpbrk): Add a conditional link warning.
45027         (mbspbrk): New declaration.
45028         * m4/mbspbrk.m4: New file.
45029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45030         GNULIB_MBSPBRK.
45031         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45032         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45033
45034 2007-02-04  Bruno Haible  <bruno@clisp.org>
45035
45036         New module mbscspn.
45037         * modules/mbscspn: New file.
45038         * lib/mbscspn.c: New file.
45039         * lib/string_.h (strcspn): Add a conditional link warning.
45040         (mbscspn): New declaration.
45041         * m4/mbscspn.m4: New file.
45042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45043         GNULIB_MBSCSPN.
45044         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45045         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45046
45047 2007-02-04  Bruno Haible  <bruno@clisp.org>
45048
45049         New module mbscasestr, reduced goal of strcasestr.
45050         * modules/mbscasestr: New file.
45051         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45052         (mbscasestr): Renamed from strcasestr.
45053         * lib/strcasestr.c: Don't include mbuiter.h.
45054         (strcasestr): Remove support for multibyte locales.
45055         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45056         Change the conditional link warning.
45057         (mbscasestr): New declaration.
45058         * m4/mbscasestr.m4: New file.
45059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45060         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45061         REPLACE_STRCASESTR.
45062         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45064         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45065         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45066         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45067         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45068         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45069         (Depends-on): Remove mbuiter.
45070         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45071
45072 2007-02-04  Bruno Haible  <bruno@clisp.org>
45073
45074         Simplify handling of strncasecmp.
45075         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45076         the conditional link warning.
45077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45078         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45079         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45080         * modules/strcase (configure.ac): Don't invoke
45081         gl_STRING_MODULE_INDICATOR.
45082         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45083
45084 2007-02-04  Bruno Haible  <bruno@clisp.org>
45085
45086         New module mbscasecmp, reduced goal of strcasecmp.
45087         * modules/mbscasecmp: New file.
45088         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45089         (mbscasecmp): Renamed from strcasecmp.
45090         * lib/strcasecmp.c: Don't include mbuiter.h.
45091         (strcasecmp): Remove support for multibyte locales.
45092         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45093         Change the conditional link warning.
45094         (mbscasecmp): New declaration.
45095         * m4/mbscasecmp.m4: New file.
45096         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45097         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45098         REPLACE_STRCASECMP.
45099         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45101         GNULIB_MBSCASECMP.
45102         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45103         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45104         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45105         (Depends-on): Remove mbuiter.
45106         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45107
45108 2007-02-04  Bruno Haible  <bruno@clisp.org>
45109
45110         New module mbsstr. Remove module strstr.
45111         * modules/mbsstr: New file.
45112         * modules/strstr: Remove file.
45113         * lib/mbsstr.c: Renamed from lib/strstr.c.
45114         (mbsstr): Renamed from strstr.
45115         * lib/string_.h (strstr): Remove declaration. Change the conditional
45116         link warning.
45117         (mbsstr): New declaration.
45118         * m4/mbsstr.m4: New file.
45119         * m4/strstr.m4: Remove file.
45120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45121         REPLACE_STRSTR.
45122         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45123         Don't initialize GNULIB_STRSTR.
45124         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45125         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45126         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45127         (Support for systems lacking ANSI C 89): Remove strstr.
45128
45129 2007-02-04  Bruno Haible  <bruno@clisp.org>
45130
45131         New module mbsrchr.
45132         * modules/mbsrchr: New file.
45133         * lib/mbsrchr.c: New file.
45134         * lib/string_.h (strrchr): Add a conditional link warning.
45135         (mbsrchr): New declaration.
45136         * m4/mbsrchr.m4: New file.
45137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45138         GNULIB_MBSRCHR.
45139         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45140         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45141
45142 2007-02-04  Bruno Haible  <bruno@clisp.org>
45143
45144         New module mbschr.
45145         * modules/mbschr: New file.
45146         * lib/mbschr.c: New file.
45147         * lib/string_.h (strchr): Add a conditional link warning.
45148         (mbschr): New declaration.
45149         * m4/mbschr.m4: New file.
45150         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45151         GNULIB_MBSCHR.
45152         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45153         * MODULES.html.sh (Internationalization functions): Add mbschr.
45154
45155 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45156
45157         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45158
45159         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45160
45161 2007-02-04  Bruno Haible  <bruno@clisp.org>
45162
45163         New module description section 'configure.ac-early'.
45164         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45165         (func_get_autoconf_early_snippet): New function.
45166         (func_import, func_create_testdir): Use it. Remove special cases for
45167         modules 'extensions' and 'lock'.
45168         * modules/extensions (configure.ac-early): Require
45169         gl_USE_SYSTEM_EXTENSIONS.
45170         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45171
45172 2007-02-04  Bruno Haible  <bruno@clisp.org>
45173
45174         Make use of gcj-4.3's -fsource and -ftarget option.
45175         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45176         and if so try the options -fsource and -ftarget.
45177         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45178         source_version, ftarget_option, target_version arguments.
45179         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45180         (is_envjavac_oldgcj_14_14_usable): Renamed from
45181         is_envjavac_gcj_14_14_usable.
45182         (is_envjavac_oldgcj_14_13_usable): Renamed from
45183         is_envjavac_gcj_14_13_usable.
45184         (is_gcj_present): Update.
45185         (is_gcj_43, is_gcj43_usable): New functions.
45186         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45187         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45188         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45189         try the options -fsource and -ftarget.
45190
45191 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45192
45193         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45194         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45195         larger value.
45196
45197 2007-02-03  Jim Meyering  <jim@meyering.net>
45198
45199         Give tools a better chance to allocate space for very large buffers.
45200         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45201
45202         Make pwd and readlink work also when run with an unreadable parent dir
45203         on systems with openat support.
45204         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45205         provided getcwd function, even when we have openat support.
45206         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45207
45208 2007-02-02  Bruno Haible  <bruno@clisp.org>
45209
45210         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45211         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45212         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45213         portability problems if one of these functions is only used on specific
45214         platforms.
45215         Reported by Paul Eggert.
45216
45217 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45218
45219         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45220         is causing more trouble than it's curing.
45221         * lib/regex_internal.h (__mempcpy): Remove.
45222         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45223         (and make the code a tad smaller to boot).
45224         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45225
45226 2007-02-02  Jim Meyering  <jim@meyering.net>
45227
45228         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45229         section, not in the Makefile.am: one.
45230
45231 2007-02-02  Eric Blake  <ebb9@byu.net>
45232
45233         * lib/strchrnul.c: Always include config.h first.
45234
45235         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45236         gnulib strstr is not necessary here.
45237
45238 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45239
45240         * m4/socklen.m4: Fix typo.
45241
45242 2007-02-02  Eric Blake  <ebb9@byu.net>
45243
45244         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45245         * modules/netinet_in (Makefile.am): Likewise.
45246
45247 2007-02-01  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/string_.h (GL_LINK_WARNING): New macro.
45250         (strcasecmp, strstr, strcasestr): If provided by the system,
45251         conditionally define as a macro that leads to a warning instead of to
45252         an error.
45253         (strncasecmp): Conditionally define as a macro that leads to a warning.
45254
45255 2007-02-01  Karl Berry  <karl@gnu.org>
45256
45257         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45258
45259 2007-02-01  Bruno Haible  <bruno@clisp.org>
45260
45261         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45262         renamings.
45263
45264 2007-02-01  Eric Blake  <ebb9@byu.net>
45265
45266         * modules/regex (Depends-on): Revert dependence on mempcpy.
45267         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45268         module's definition of mempcpy.
45269         Reported by Paul Eggert.
45270
45271 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45272
45273         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45274         the symbol XYZ before redefining it.  This fixes a problem with
45275         programs that don't use XYZ, when compiled on systems that define
45276         XYZ to something else.
45277
45278 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45279
45280         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45281         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45282         writeable to group or other and (2) is intended to have a special
45283         mode bit that is set or cleared.  In such a case, the directory
45284         should be neither group- nor other-writeable until the special
45285         mode bits are right.
45286
45287 2007-01-31  Eric Blake  <ebb9@byu.net>
45288
45289         * modules/mountlist (Depends-on): Add strstr.
45290
45291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45292         bug.
45293         * modules/string (Makefile.am): Remove redundant replacement.
45294         * modules/regex (Depends-on): Add mempcpy.
45295
45296 2007-01-31  Bruno Haible  <bruno@clisp.org>
45297
45298         New module description field 'Link'.
45299         * gnulib-tool (func_usage): Document --extract-link-directive.
45300         (sed_extract_prog): Recognize 'Link' directive.
45301         (func_get_link_directive): New function.
45302         (func_import): Show summary of link directives.
45303         Handle --extract-link-directive option.
45304         * modules/acl (Link): New section.
45305         * modules/clock-time (Link): New section.
45306         * modules/euidaccess (Link): New section.
45307         * modules/gettext (Link): New section.
45308         * modules/iconv (Link): New section.
45309         * modules/lock (Link): New section.
45310         * modules/nanosleep (Link): New section.
45311         * modules/readline (Link): New section.
45312
45313 2007-01-27  Bruno Haible  <bruno@clisp.org>
45314
45315         Enforce the use of gnulib modules for unportable <string.h> functions.
45316         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45317         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45318         (gl_HEADER_STRING_H_BODY): Require it.
45319         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45320         the symbol XYZ to one that gives a link error.
45321         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45322         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45323         * modules/mempcpy (configure.ac): Likewise.
45324         * modules/memrchr (configure.ac): Likewise.
45325         * modules/stpcpy (configure.ac): Likewise.
45326         * modules/stpncpy (configure.ac): Likewise.
45327         * modules/strcase (configure.ac): Likewise.
45328         * modules/strcasestr (configure.ac): Likewise.
45329         * modules/strchrnul (configure.ac): Likewise.
45330         * modules/strdup (configure.ac): Likewise.
45331         * modules/strndup (configure.ac): Likewise.
45332         * modules/strnlen (configure.ac): Likewise.
45333         * modules/strpbrk (configure.ac): Likewise.
45334         * modules/strsep (configure.ac): Likewise.
45335         * modules/strstr (configure.ac): Likewise.
45336         * modules/strtok_r (configure.ac): Likewise.
45337
45338 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45339
45340         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45341
45342 2007-01-30  Jim Meyering  <jim@meyering.net>
45343
45344         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45345
45346 2007-01-29  Bruno Haible  <bruno@clisp.org>
45347
45348         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45349         * lib/execute.c: Likewise.
45350         * lib/pipe.c: Likewise.
45351         * lib/printf-args.h: Likewise.
45352         * lib/printf-args.c: Likewise.
45353         * lib/printf-parse.c: Likewise.
45354         * lib/vasnprintf.c: Likewise.
45355
45356 2007-01-29  Eric Blake  <ebb9@byu.net>
45357
45358         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45359         declaration.
45360
45361 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45362
45363         * lib/strptime.h (strptime): Use 'restrict' for args where
45364         POSIX requires this.
45365         * lib/strptime.c (strptime): Likewise.
45366         Change license notice from LGPL to GPL, since gnulib-tool will
45367         change this as needed.
45368         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45369         defined.
45370         Include "strptime.h" first, to check interface.
45371         Do not #undef _LIBC and _NL_CURRENT.
45372         Do not include <stdlib.h>; no longer needed.
45373         Include "time_r.h" and declare ptime_locale_status
45374         only if _LIBC is not defined.
45375         (__P): Remove unused macro.
45376         (match_string): Bring back glibc version, but use it only if _LIBC
45377         is defined.
45378         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45379         Remove unnecessary assertion and abort() call.
45380         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45381         * m4/strptime.m4: Fix serial number comment.
45382         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45383         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45384         (Depends-on): Add time_r.
45385
45386 2007-01-29  Bruno Haible  <bruno@clisp.org>
45387
45388         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45389         strptime.
45390         * modules/strptime (Depends-on): Add stdbool.
45391         * lib/strptime.h: Include <time.h> always. Add comments.
45392
45393 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45394
45395         * modules/strptime: New file.
45396         * lib/strptime.h: New file.
45397         * lib/strptime.c: New file.
45398         * m4/strptime.m4: New file.
45399
45400 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45401
45402         * MODULES.html.sh: New module mpsort.
45403         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45404
45405         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45406         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45407         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45408         All uses changed.
45409         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45410         All uses changed.
45411         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45412         to _Restrict_.
45413         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45414         the parameter matches the prototype.
45415
45416 2007-01-28  Jim Meyering  <jim@meyering.net>
45417
45418         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45419         sys/time.h here, reverting that part of the previous patch:
45420         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45421
45422 2007-01-28  Bruno Haible  <bruno@clisp.org>
45423
45424         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45425         value of $(SYS_TIME_H).
45426         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45427         remove it conditionally, too. [added by Jim Meyering]
45428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45429         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45430         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45431         GETTIMEOFDAY_REPLACEMENT to 1.
45432
45433 2007-01-28  Bruno Haible  <bruno@clisp.org>
45434
45435         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45436         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45438         Set UNISTD_H instead of UNISTD_H2.
45439         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45440
45441 2007-01-28  Bruno Haible  <bruno@clisp.org>
45442
45443         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45444         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45445
45446 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45447
45448         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45449         (func_create_testdir): Ensure C locale for `grep' and `tr'
45450         character ranges.
45451         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45452         ACLOCAL_AMFLAGS parsing state machine.
45453
45454 2007-01-27  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/unistr/base: Update.
45457
45458 2007-01-27  Bruno Haible  <bruno@clisp.org>
45459
45460         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45461         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45462         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45463         modules/unistr/u32-mbtouc.
45464         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45465         * lib/unistr.h: Update.
45466         * lib/linebreak.c: Update.
45467         * modules/unistr/u32-mbtouc: Renamed from
45468         modules/unistr/u32-mbtouc-safe.
45469         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45470         * lib/unistr.h: Update.
45471         * lib/unistr/u32-to-u8.c: Update.
45472         * lib/unistr/u32-to-u16.c: Update.
45473
45474 2007-01-27  Bruno Haible  <bruno@clisp.org>
45475
45476         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45477         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45478         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45479         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45480         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45481         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45482         modules/unistr/u16-mbtouc.
45483         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45484         * lib/unistr.h: Update.
45485         * lib/linebreak.c: Update.
45486         * modules/linebreak: Update.
45487         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45488         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45489         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45490         * modules/unistr/u16-mbtouc: Renamed from
45491         modules/unistr/u16-mbtouc-safe.
45492         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45493         * lib/unistr.h: Update.
45494         * lib/unistr/u16-to-u8.c: Update.
45495         * modules/unistr/u16-to-u8: Update.
45496         * lib/unistr/u16-to-u32.c: Update.
45497         * modules/unistr/u16-to-u32: Update.
45498
45499 2007-01-27  Bruno Haible  <bruno@clisp.org>
45500
45501         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45502         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45503         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45504         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45505         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45506         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45507         modules/unistr/u8-mbtouc.
45508         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45509         * lib/unistr.h: Update.
45510         * lib/striconveh.c: Update.
45511         * modules/striconveh: Update.
45512         * lib/linebreak.c: Update.
45513         * modules/linebreak: Update.
45514         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45515         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45516         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45517         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45518         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45519         * lib/unistr.h: Update.
45520         * lib/striconveh.c: Update.
45521         * modules/striconveh: Update.
45522         * lib/unistr/u8-to-u16.c: Update.
45523         * modules/unistr/u8-to-u16: Update.
45524         * lib/unistr/u8-to-u32.c: Update.
45525         * modules/unistr/u8-to-u32: Update.
45526
45527 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45528
45529         Sync from Libtool.
45530         * lib/argz.c: Do not include strings.h nor memory.h, include
45531         string.h unconditionally.  Patch by Simon Josefsson.
45532
45533 2007-01-27  Bruno Haible  <bruno@clisp.org>
45534
45535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45536         from gl_HEADER_STRING_H_BODY.
45537         (gl_HEADER_STRING_H_BODY): Require it.
45538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45540         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45541         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45542         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45543         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45545         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45546         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45548         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45549         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45550         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45551         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45552         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45553
45554 2007-01-27  Bruno Haible  <bruno@clisp.org>
45555
45556         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45557         check_PROGRAMS into noinst_PROGRAMS.
45558         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45559         check_PROGRAMS in this case.
45560         (func_import): Set for_test to false.
45561         (func_create_testdir): Set for_test to true.
45562
45563 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45564             Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45567         (Depends-on): Add string.
45568         (Includes): Use <string.h> instead of strcasestr.h.
45569         * modules/string (Makefile.am): Also substitute the value of
45570         REPLACE_STRCASESTR.
45571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45572         assume strcasestr is declared in <string.h> not <strings.h>. Also
45573         set REPLACE_STRCASESTR.
45574         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45575         REPLACE_STRCASESTR.
45576         * lib/strcasestr.h: Remove file.
45577         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45578         * lib/string_.h (strcasestr): New declaration.
45579
45580 2007-01-27  Bruno Haible  <bruno@clisp.org>
45581
45582         * lib/string_.h: Use 'extern'.
45583
45584 2007-01-27  Jim Meyering  <jim@meyering.net>
45585
45586         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45587         of set-but-not-used local, "q".
45588
45589         * lib/mempcpy.c: Include <config.h> before <string.h>.
45590         This fixes a compilation error on HP-UX, due to the system's
45591         "restrict"-using mempcpy prototype.
45592
45593 2007-01-26  Bruno Haible  <bruno@clisp.org>
45594
45595         Small optimization.
45596         * lib/javacomp.c: Include c-strstr.h.
45597          (is_envjavac_gcj): Use c_strstr instead of strstr.
45598         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45599
45600 2007-01-26  Bruno Haible  <bruno@clisp.org>
45601
45602         * MODULES.html.sh (Unicode string functions): Add the new modules.
45603
45604         * modules/uniconv/u32-strconv-to-locale: New file.
45605         * lib/uniconv/u32-strconv-to-locale.c: New file.
45606
45607         * modules/uniconv/u16-strconv-to-locale: New file.
45608         * lib/uniconv/u16-strconv-to-locale.c: New file.
45609
45610         * modules/uniconv/u8-strconv-to-locale: New file.
45611         * lib/uniconv/u8-strconv-to-locale.c: New file.
45612
45613         * modules/uniconv/u32-strconv-from-locale: New file.
45614         * lib/uniconv/u32-strconv-from-locale.c: New file.
45615
45616         * modules/uniconv/u16-strconv-from-locale: New file.
45617         * lib/uniconv/u16-strconv-from-locale.c: New file.
45618
45619         * modules/uniconv/u8-strconv-from-locale: New file.
45620         * lib/uniconv/u8-strconv-from-locale.c: New file.
45621
45622         * modules/uniconv/u32-strconv-to-enc: New file.
45623         * lib/uniconv/u32-strconv-to-enc.c: New file.
45624         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45625         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45626
45627         * modules/uniconv/u16-strconv-to-enc: New file.
45628         * lib/uniconv/u16-strconv-to-enc.c: New file.
45629         * lib/uniconv/u-strconv-to-enc.h: New file.
45630         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45631         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45632
45633         * modules/uniconv/u8-strconv-to-enc: New file.
45634         * lib/uniconv/u8-strconv-to-enc.c: New file.
45635         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45636         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45637
45638         * modules/uniconv/u32-strconv-from-enc: New file.
45639         * lib/uniconv/u32-strconv-from-enc.c: New file.
45640         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45641         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45642
45643         * modules/uniconv/u16-strconv-from-enc: New file.
45644         * lib/uniconv/u16-strconv-from-enc.c: New file.
45645         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45646         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45647
45648         * modules/uniconv/u8-strconv-from-enc: New file.
45649         * lib/uniconv/u8-strconv-from-enc.c: New file.
45650         * lib/uniconv/u-strconv-from-enc.h: New file.
45651         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45652         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45653
45654         * modules/uniconv/u32-conv-from-enc: New file.
45655         * lib/uniconv/u32-conv-from-enc.c: New file.
45656         * modules/uniconv/u32-conv-from-enc-tests: New file.
45657         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45658
45659         * modules/uniconv/u16-conv-from-enc: New file.
45660         * lib/uniconv/u16-conv-from-enc.c: New file.
45661         * lib/uniconv/u-conv-from-enc.h: New file.
45662         * modules/uniconv/u16-conv-from-enc-tests: New file.
45663         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45664
45665         * modules/uniconv/u8-conv-from-enc: New file.
45666         * lib/uniconv/u8-conv-from-enc.c: New file.
45667         * modules/uniconv/u8-conv-from-enc-tests: New file.
45668         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45669
45670         * modules/uniconv/base: New file.
45671         * lib/uniconv.h: New file.
45672
45673 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45674
45675         * doc/gnulib-tool.texi (Initial import): Update to match current
45676         behavior with strdup module.
45677         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45678         * lib/memmem.h: Remove; all uses removed.  This is now done
45679         by <string.h>.
45680         * lib/mempcpy.h: Likewise.
45681         * lib/memrchr.h: Likewise.
45682         * lib/stpcpy.h: Likewise.
45683         * lib/stpncpy.h: Likewise.
45684         * lib/strcase.h: Likewise.
45685         * lib/strchrnul.h: Likewise.
45686         * lib/strdup.h: Likewise.
45687         * lib/strndup.h: Likewise.
45688         * lib/strnlen.h: Likewise.
45689         * lib/strpbrk.h: Likewise.
45690         * lib/strsep.h: Likewise.
45691         * lib/strstr.h: Likewise.
45692         * lib/strtok_r.h: Likewise.
45693         * lib/string_.h: New file.
45694         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45695         Rely on <string.h> instead.
45696         * lib/canon-host.c: Likewise.
45697         * lib/chdir-long.c: Likewise.
45698         * lib/concatpath.c: Likewise.
45699         * lib/exclude.c: Likewise.
45700         * lib/fchdir.c: Likewise.
45701         * lib/getaddrinfo.c: Likewise.
45702         * lib/getcwd.c: Likewise.
45703         * lib/getsubopt.c: Likewise.
45704         * lib/glob.c: Likewise.
45705         * lib/hard-locale.c: Likewise.
45706         * lib/iconvme.c: Likewise.
45707         * lib/javacomp.c: Likewise.
45708         * lib/mempcpy.c: Likewise.
45709         * lib/memrchr.c: Likewise.
45710         * lib/regex_internal.h: Likewise.
45711         * lib/stpncpy.c: Likewise.
45712         * lib/strcasecmp.c: Likewise.
45713         * lib/strchrnul.c: Likewise.
45714         * lib/strdup.c: Likewise.
45715         * lib/striconv.c: Likewise.
45716         * lib/striconveh.c: Likewise.
45717         * lib/striconveha.c: Likewise.
45718         * lib/strncasecmp.c: Likewise.
45719         * lib/strndup.c: Likewise.
45720         * lib/strnlen.c: Likewise.
45721         * lib/strsep.c: Likewise.
45722         * lib/strstr.c: Likewise.
45723         * lib/strtok_r.c: Likewise.
45724         * lib/userspec.c: Likewise.
45725         * lib/w32spawn.h: Likewise.
45726         * lib/xstrndup.c: Likewise.
45727         * lib/mountlist.c (strstr): Remove decl.
45728         * m4/string_h.m4: New file.
45729         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45730         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45731         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45732         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45733         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45734         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45735         Set REPLACE_STRCASECMP if necessary.
45736         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45737         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45738         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45739         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45740         HAVE_DECL_STRDUP if necessary.
45741         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45742         since gl_FUNC_STRNDUP does that now.
45743         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45744         Check for decl here...
45745         (gl_PREREQ_STRNLEN): ... not here.
45746         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45747         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45748         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45750         necessary.
45751         * modules/string: New file.
45752         * modules/memmem (Files): Remove special-purpose include file.
45753         (Depends-on): Add string.
45754         (Include): Include <string.h>, not the removed file.
45755         * modules/mempcpy: Likewise.
45756         * modules/memrchr: Likewise.
45757         * modules/stpcpy: Likewise.
45758         * modules/stpncpy: Likewise.
45759         * modules/strcase: Likewise.
45760         * modules/strchrnul: Likewise.
45761         * modules/strdup: Likewise.
45762         * modules/strndup: Likewise.
45763         * modules/strnlen: Likewise.
45764         * modules/strpbrk: Likewise.
45765         * modules/strsep: Likewise.
45766         * modules/strstr: Likewise.
45767         * modules/strtok_r: Likewise.
45768         * tests/test-dirname.c: Don't include "strdup.h", since
45769         <string.h> now suffices.
45770         * tests/test-memmem.c: Don't include "memmem.h", since
45771         <string.h> now suffices.
45772
45773 2007-01-25  Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45776         *resultp is 0.
45777
45778         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45779         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45780         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45781         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45782
45783         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45784         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45785         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45786         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45787         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45788         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45789
45790 2007-01-24  Bruno Haible  <bruno@clisp.org>
45791
45792         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45794         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45795         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45796         gl_FUNC_FTS_CORE.
45797         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45798         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45799         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45800         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45801         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45802         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45803         gl_FUNC_FCHOWNAT.
45804         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45805         gl_FUNC_STRFTIME.
45806         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45807         Reported by Ralf Wildenhues.
45808
45809 2007-01-24  Bruno Haible  <bruno@clisp.org>
45810
45811         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45812         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45813         gl_GETADDRINFO.
45814         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45815         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45816         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45817
45818 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45819
45820         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45821         Don't use 'exit'; just return from 'main'.
45822         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45823
45824         * lib/fnmatch_.h: Readjust white space and comments to match
45825         glibc, to avoid spurious diffs.
45826
45827 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45828
45829         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45830         2004-12-01 change by Jakub Jelinek, since this code won't compile
45831         if !LIBC.  Problem reported by Bob Proulx.
45832
45833 2007-01-23  Bruno Haible  <bruno@clisp.org>
45834
45835         * lib/striconveh.c: Include c-strcaseeq.h.
45836         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45837         * modules/striconveh (Depends-on): Add c-strcaseeq.
45838
45839 2007-01-23  Bruno Haible  <bruno@clisp.org>
45840
45841         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45842
45843         * modules/c-strcaseeq: New file.
45844         * lib/c-strcaseeq.h: New file.
45845
45846         * modules/streq: New file.
45847         * lib/streq.h: New file.
45848
45849 2007-01-23  Bruno Haible  <bruno@clisp.org>
45850
45851         * modules/striconveha-tests: New file.
45852         * tests/test-striconveha.c: New file.
45853
45854         * lib/striconveha.h: Include <stdbool.h>.
45855         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45856         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45857         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45858         (mem_iconveha): New function.
45859         (str_iconveha_notranslit): Renamed from str_iconveha.
45860         (str_iconveha): New function.
45861         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45862         c-strcase.
45863
45864 2007-01-23  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45867         encodings without forgiving before trying any encoding with handler.
45868         (str_iconveha): Try all encodings without forgiving before trying any
45869         encoding with handler.
45870
45871 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45872
45873         Import the following changes from libc.
45874
45875         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45876
45877         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45878
45879         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45880
45881         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45882         normal_bracket label.
45883
45884         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45885
45886         [BZ #361]
45887         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45888         to normal_bracket after fetching the next character.
45889
45890 2007-01-22  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45893         argument.
45894         * lib/striconveh.c (iconv_carefully_1): New function.
45895         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45896         argument.
45897         (str_cd_iconveh): Update.
45898         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45899         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45900         * tests/test-striconveh.c (MAGIC): New macro.
45901         (new_offsets): New function.
45902         (main): Test call with and without offsets.
45903
45904 2007-01-22  Bruno Haible  <bruno@clisp.org>
45905
45906         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45907         * modules/sys_select (Makefile.am): Likewise.
45908         * modules/sys_socket (Makefile.am): Likewise.
45909         * modules/sys_time (Makefile.am): Likewise.
45910
45911 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45912
45913         * modules/gettimeofday (License): Change from GPL to LGPL, since
45914         gettimeofday is a library function.
45915
45916 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45917
45918         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45919
45920 2007-01-21  Bruno Haible  <bruno@clisp.org>
45921
45922         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45923
45924 2007-01-21  Bruno Haible  <bruno@clisp.org>
45925
45926         * modules/striconveha: New file.
45927         * lib/striconveha.h: New file.
45928         * lib/striconveha.c: New file.
45929         * MODULES.html.sh (Internationalization functions): Add striconveha.
45930         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45931         string.
45932         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45933
45934 2007-01-21  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
45937         * lib/striconveh.c (str_iconveh): Likewise.
45938
45939 2007-01-21  Bruno Haible  <bruno@clisp.org>
45940
45941         * lib/striconveh.h (mem_iconveh): New declaration.
45942         * lib/striconveh.c (mem_iconveh): New function.
45943         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
45944
45945 2007-01-21  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
45948
45949         * lib/striconveh.h (mem_cd_iconveh): Change specification.
45950         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
45951         original result buffer.
45952         (str_cd_iconveh): Update.
45953         * tests/test-striconveh.c (main): Update.
45954
45955         * lib/striconv.h (mem_cd_iconv): Change specification.
45956         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
45957         result buffer.
45958         (str_cd_iconv): Update.
45959         * tests/test-striconv.c (main): Update.
45960
45961 2007-01-21  Bruno Haible  <bruno@clisp.org>
45962
45963         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
45964
45965 2007-01-20  Jim Meyering  <jim@meyering.net>
45966
45967         * lib/userspec.c (parse_with_separator): If a user or group string
45968         starts with "+", skip the corresponding name-to-ID look-up, since
45969         such a look-up must fail: user and group names may not include "+".
45970
45971 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
45972
45973         * lib/poll.c: Include sys/time.h and time.h unconditionally,
45974         since we now assume the sys_time module.
45975         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
45976         check for sys/time.h; no longer needed.
45977         * modules/poll (Depends-on): Depend on sys_time.
45978
45979 2007-01-18  Bruno Haible  <bruno@clisp.org>
45980
45981         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
45982         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45983
45984         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
45985         gettimeofday.
45986
45987         * tests/test-gettimeofday.c: Include <time.h>.
45988         (dummy): Remove variable.
45989
45990         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
45991         gl_HEADER_SYS_TIME_H.
45992         (gl_HEADER_SYS_TIME_H): New macro.
45993
45994         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
45995         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45997         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
45998         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45999         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46000         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46001         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46002         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46003         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46004         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46005
46006         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46007         last change; it caused a compilation error when cross-compiling to
46008         Cygwin.
46009
46010 2007-01-18  Jim Meyering  <jim@meyering.net>
46011
46012         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46013         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46014         than the race-prone "test -d sys || mkdir sys".
46015         (configure.ac): Use AC_PROG_MKDIR_P.
46016         * modules/sys_select: Likewise.
46017         * modules/sys_socket: Likewise.
46018         * modules/sys_time: Likewise.
46019
46020 2007-01-18  Eric Blake  <ebb9@byu.net>
46021
46022         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46023         replace gettimeofday.
46024         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46025         name, to avoid infinite recursion.
46026
46027 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46030         module sys_time.
46031         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46032         assume timespec.h defines struct timeval.
46033         * lib/settime.c: Likewise.
46034         * lib/utimens.c: Likewise.
46035         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46036         since we now assume the gettimeofday module.
46037         * lib/tempname.c (__gen_tempname): Likewise.
46038         * lib/gettimeofday.h: Remove.
46039         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46040         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46041         Include <time.h>, for 'time()'.
46042         (localtime_buffer_addr): Also use this workaround if
46043         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46044         to simplify the uses.  All uses changed.
46045         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46046         that #undef is inside {}, and 'const' follows type name consistently.
46047         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46048         (gettimeofday): Do not use the maximum possible value for
46049         tv->tv_usec, since that might break usages other than ls.c.
46050         Instead, we'll leave ls.c alone.  This undoes today's patch
46051         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46052         we've never observed the problem but might as well keep the
46053         canary.
46054         * lib/nanosleep.c: Include timespec.h first, for interface check.
46055         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46056         now assume the sys_time module.
46057         * lib/tempname.c: Likewise.
46058         * lib/timespec.h: Likewise.
46059         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46060         needed.
46061         * lib/strftime.c: Likewise.
46062         * lib/timespec.h: Likewise.
46063         * lib/posixtm.c: Include posixtm.h first, for interface check.
46064         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46065         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46066         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46067         * lib/sys_time_.h: New file.
46068         * lib/timespec.h (struct timespec): Use long int, not long.
46069         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46070         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46071         Remove obsolescent call to AC_HEADER_TIME.
46072         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46074         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46075         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46076         Likewise.
46077         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46078         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46080         into the sys_time module.  Check for gettimeofday just once.
46081         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46082         for gettimeofday signature to just check the signature.  Merely
46083         compile it, since linking doesn't test signature.  Improve test for
46084         whether gettimeofday.o is actually needed.
46085         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46086         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46087         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46088         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46089         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46090         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46091         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46092         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46093         than worrying about sys/time.h.
46094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46095         Don't bother worrying about TIME_WITH_SYS_TIME.
46096         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46097         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46098         * m4/sys_time_h.m4: New file.
46099         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46100         Don't include sys/time.h.  Return from main rather than exiting.
46101         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46102         all uses changed.
46103         * modules/gethrxtime (Depends-on): Add sys_time.
46104         * modules/gettime (Depends-on): Likewise.
46105         * modules/gettimeofday (Depends-on): Likewise.
46106         * modules/nanosleep (Depends-on): Likewise.
46107         * modules/settime (Depends-on): Likewise.
46108         * modules/tempname (Depends-on): Likewise.
46109         * modules/utimens (Depends-on): Likewise.
46110         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46111         (Include:) Change back to <sys/time.h>.
46112         (Maintainer:) Add self.
46113         * modules/sys_time: New file.
46114         * modules/tempname (Depends-on): Add gettimeofday.
46115         * tests/test-gettimeofday.c: Include <sys/time.h>
46116         rather than gettimeofday.h.
46117
46118 2007-01-17  Bruno Haible  <bruno@clisp.org>
46119
46120         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46121         the license default to GPL.
46122         (func_create_testdir): Don't complain if a module is LGPL and its
46123         tests module depends on GPLed modules.
46124
46125 2007-01-17  Bruno Haible  <bruno@clisp.org>
46126
46127         * lib/gettimeofday.c (gettimeofday): Add code for the case
46128         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46129         maximum possible value for tv->tv_usec, rather than the minimum one.
46130
46131 2005-10-08  Martin Lambers  <marlam@marlam.de>
46132 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46133 2007-01-16  Bruno Haible  <bruno@clisp.org>
46134
46135         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46136         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46137         gl_FUNC_GETTIMEOFDAY.
46138         (Include): Add gettimeofday.h.
46139         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46140         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46141         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46142         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46143         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46144         * lib/gettimeofday.h: New file.
46145         * lib/gettimeofday.c: Include <sys/timeb.h>.
46146         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46147         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46148         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46149         fall back on time().
46150
46151         * tests/test-gettimeofday.c: New file.
46152         * modules/gettimeofday-tests: New file.
46153
46154 2007-01-16  Eric Blake  <ebb9@byu.net>
46155
46156         * modules/fnmatch (Depends-on): Depend on wchar.
46157         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46158         * m4/fnmatch.m4: Likewise.
46159         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46160         * m4/mbchar.m4: Likewise.
46161         * modules/mbswidth (Depends-on): Depend on wchar.
46162         * lib/mbswidth.c: Assume <wchar.h>.
46163         * m4/mbswidth.m4: Likewise.
46164         * modules/quotearg (Depends-on): Depend on wchar.
46165         * lib/quotearg.c: Assume <wchar.h>.
46166         * m4/quotearg.m4: Likewise.
46167         * modules/regex (Depends-on): Depend on wchar.
46168         * lib/regex_internal.h: Assume <wchar.h>.
46169         * m4/regex.m4: Likewise.
46170         * modules/stdint (Depends-on): Depend on wchar.
46171         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46172         * m4/stdint.m4: Likewise.
46173         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46174         * modules/strftime (Depends-on): Depend on wchar.
46175         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46176         * modules/strtol (Depends-on): Depend on wchar.
46177         * lib/strtol.c: Assume <wchar.h>.
46178         * modules/wcwidth (Depends-on): Depend on wchar.
46179         * lib/wcwidth.h: Assume <wchar.h>.
46180         * m4/wcwidth.m4: Likewise.
46181
46182 2007-01-16  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/csharpexec-script: New, created from...
46185         * modules/csharpexec: ... this.
46186
46187 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46188
46189         * modules/javaexec-script: New, created from...
46190         * modules/javaexec: ... this.
46191
46192 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46193
46194         * modules/poll (Dependencies): Add sys_select.
46195
46196 2007-01-15  Jim Meyering  <jim@meyering.net>
46197
46198         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46199         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46200         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46201         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46202
46203 2007-01-15  Bruno Haible  <bruno@clisp.org>
46204
46205         * modules/striconveh: New file.
46206         * lib/striconveh.h: New file.
46207         * lib/striconveh.c: New file.
46208         * MODULES.html.sh (Internationalization functions): Add striconveh.
46209
46210         * modules/striconveh-tests: New file.
46211         * tests/test-striconveh.c: New file.
46212
46213 2007-01-15  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46216         not from GNU libiconv or GNU libc.
46217
46218 2007-01-15  Bruno Haible  <bruno@clisp.org>
46219
46220         * doc/gnulib-intro.texi (Copyright): Explain the different license
46221         terms for module descriptions, autoconf macros, tests, documentation.
46222
46223 2007-01-14  Bruno Haible  <bruno@clisp.org>
46224
46225         * modules/striconv-tests: New file.
46226         * tests/test-striconv.c: New file.
46227
46228 2007-01-14  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/iconv-tests: New file.
46231         * tests/test-iconv.c: New file.
46232
46233 2007-01-14  Bruno Haible  <bruno@clisp.org>
46234
46235         * gnulib-tool (func_get_license): For test modules, use the license of
46236         the main module.
46237
46238 2007-01-14  Bruno Haible  <bruno@clisp.org>
46239
46240         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46241         if iconv is found to exist.
46242
46243 2007-01-14  Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/c-ctype-tests: New file.
46246         * tests/test-c-ctype.c: New file.
46247
46248 2007-01-14  Bruno Haible  <bruno@clisp.org>
46249
46250         * modules/binary-io-tests: New file.
46251         * tests/test-binary-io.sh: New file.
46252         * tests/test-binary-io.c: New file.
46253
46254 2007-01-14  Bruno Haible  <bruno@clisp.org>
46255
46256         * modules/array-oset-tests: New file.
46257         * tests/test-array_oset.c: New file.
46258
46259 2007-01-14  Bruno Haible  <bruno@clisp.org>
46260
46261         * modules/array-list-tests: New file.
46262         * tests/test-array_list.c: New file.
46263
46264 2007-01-14  Bruno Haible  <bruno@clisp.org>
46265
46266         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46267         and make.
46268         Reported by Simon Josefsson in
46269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46270
46271 2007-01-14  Bruno Haible  <bruno@clisp.org>
46272
46273         * modules/allocsa-tests: New file.
46274         * tests/test-allocsa.c: New file.
46275
46276 2007-01-14  Bruno Haible  <bruno@clisp.org>
46277
46278         * modules/fchdir (Depends-on): Add absolute-header.
46279         * modules/unistd (Depends-on): Likewise.
46280
46281 2006-12-30  Bruno Haible  <bruno@clisp.org>
46282
46283         * modules/fchdir: New file.
46284         * modules/unistd (Files): Add lib/unistd_.h.
46285         (Makefile.am): Generate unistd.h from unistd_.h.
46286         * lib/fchdir.c: New file.
46287         * lib/dirent_.h: New file.
46288         * lib/unistd_.h: New file.
46289         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46290         * m4/fchdir.m4: New file.
46291         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46292         (gl_HEADER_UNISTD): Invoke it.
46293         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46294         function.
46295         * lib/backupfile.c (opendir, closedir): Undefine.
46296         * lib/chown.c (open, close): Undefine.
46297         * lib/clean-temp.c (open, close): Undefine.
46298         * lib/copy-file.c (open, close): Undefine.
46299         * lib/execute.c (open, close): Undefine.
46300         * lib/fsusage.c (open, close): Undefine.
46301         * lib/gc-gnulib.c (open, close): Undefine.
46302         * lib/getcwd.c (opendir, closedir): Undefine.
46303         * lib/glob.c (opendir, closedir): Undefine.
46304         * lib/javacomp.c (open, close): Undefine.
46305         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46306         * lib/openat-proc.c (open, close): Undefine.
46307         * lib/pagealign_alloc.c (open, close): Undefine.
46308         * lib/pipe.c (open, close): Undefine.
46309         * lib/progreloc.c (open, close): Undefine.
46310         * lib/savedir.c (opendir, closedir): Undefine.
46311         * lib/utime.c (open, close): Undefine.
46312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46313
46314 2007-01-10  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46317
46318 2007-01-12  Eric Blake  <ebb9@byu.net>
46319
46320         Provide a robust <wchar.h>.  Further simplifications are now
46321         possible in other modules, but not included here.
46322         * modules/wchar: New module.
46323         * m4/wchar.m4: New file.
46324         * lib/wchar_.h: Likewise.
46325         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46326         of the new module.
46327         * MODULES.html.sh (Extended multibyte and wide character utilities):
46328         New section.
46329
46330 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46331
46332         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46333         to a reasonable default for memory allocation.
46334         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46335         file system that reports garbage st_size values for symlinks.
46336         Problem reported by Liyang Hu.
46337
46338 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46339
46340         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46341         Emacs .#* auto-save files).
46342
46343 2007-01-11  Bruno Haible  <bruno@clisp.org>
46344
46345         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46346         directory.
46347
46348 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46349
46350         Use @...@ consistently in lib/wctype_.h.
46351         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46352         on it being set to 1 or 0.
46353         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46354         go back to AC_SUBSTing it.
46355         * modules/wctype (Makefile.am): Undo previous change.
46356
46357 2007-01-10  Eric Blake  <ebb9@byu.net>
46358
46359         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46360         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46361         * modules/wctype (Makefile.am): Likewise.
46362         Reported by Chris McGuire.
46363
46364 2007-01-10  Jim Meyering  <jim@meyering.net>
46365
46366         fts.c: a small readability/maintainability improvement
46367         * lib/fts.c (fts_read): Make this code slightly more readable and
46368         maintainable by hoisting the "sp->fts_cur = p" assignments to
46369         immediately follow the statements that set P.  Derived from
46370         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46371
46372 2007-01-10  Eric Blake  <ebb9@byu.net>
46373
46374         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46375         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46377         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46378         Reported by Chris McGuire.
46379
46380 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46381
46382         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46383         in sed script.
46384
46385 2007-01-09  Bruno Haible  <bruno@clisp.org>
46386
46387         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46388         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46389         variables.
46390         (func_module): Use them.
46391
46392 2007-01-09  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/unistr/base: New file.
46395         * lib/unistr.h: New file.
46396
46397         * modules/unistr/u8-to-u16: New file.
46398         * lib/unistr/u8-to-u16.c: New file.
46399
46400         * modules/unistr/u8-to-u32: New file.
46401         * lib/unistr/u8-to-u32.c: New file.
46402
46403         * modules/unistr/u16-to-u8: New file.
46404         * lib/unistr/u16-to-u8.c: New file.
46405
46406         * modules/unistr/u16-to-u32: New file.
46407         * lib/unistr/u16-to-u32.c: New file.
46408
46409         * modules/unistr/u32-to-u8: New file.
46410         * lib/unistr/u32-to-u8.c: New file.
46411
46412         * modules/unistr/u32-to-u16: New file.
46413         * lib/unistr/u32-to-u16.c: New file.
46414
46415         * modules/unistr/u8-check: New file.
46416         * modules/unistr/u16-check: New file.
46417         * modules/unistr/u32-check: New file.
46418         * lib/unistr/u8-check.c: New file.
46419         * lib/unistr/u16-check.c: New file.
46420         * lib/unistr/u32-check.c: New file.
46421
46422         * modules/unistr/u8-chr: New file.
46423         * modules/unistr/u16-chr: New file.
46424         * modules/unistr/u32-chr: New file.
46425         * lib/unistr/u8-chr.c: New file.
46426         * lib/unistr/u16-chr.c: New file.
46427         * lib/unistr/u32-chr.c: New file.
46428
46429         * modules/unistr/u8-cmp: New file.
46430         * modules/unistr/u16-cmp: New file.
46431         * modules/unistr/u32-cmp: New file.
46432         * lib/unistr/u8-cmp.c: New file.
46433         * lib/unistr/u16-cmp.c: New file.
46434         * lib/unistr/u32-cmp.c: New file.
46435
46436         * modules/unistr/u8-cpy: New file.
46437         * modules/unistr/u16-cpy: New file.
46438         * modules/unistr/u32-cpy: New file.
46439         * lib/unistr/u8-cpy.c: New file.
46440         * lib/unistr/u16-cpy.c: New file.
46441         * lib/unistr/u32-cpy.c: New file.
46442         * lib/unistr/u-cpy.h: New file.
46443
46444         * modules/unistr/u8-cpy-alloc: New file.
46445         * modules/unistr/u16-cpy-alloc: New file.
46446         * modules/unistr/u32-cpy-alloc: New file.
46447         * lib/unistr/u8-cpy-alloc.c: New file.
46448         * lib/unistr/u16-cpy-alloc.c: New file.
46449         * lib/unistr/u32-cpy-alloc.c: New file.
46450         * lib/unistr/u-cpy-alloc.h: New file.
46451
46452         * modules/unistr/u8-endswith: New file.
46453         * modules/unistr/u16-endswith: New file.
46454         * modules/unistr/u32-endswith: New file.
46455         * lib/unistr/u8-endswith.c: New file.
46456         * lib/unistr/u16-endswith.c: New file.
46457         * lib/unistr/u32-endswith.c: New file.
46458         * lib/unistr/u-endswith.h: New file.
46459
46460         * modules/unistr/u8-mblen: New file.
46461         * modules/unistr/u16-mblen: New file.
46462         * modules/unistr/u32-mblen: New file.
46463         * lib/unistr/u8-mblen.c: New file.
46464         * lib/unistr/u16-mblen.c: New file.
46465         * lib/unistr/u32-mblen.c: New file.
46466
46467         * modules/unistr/u8-mbtouc: New file.
46468         * modules/unistr/u16-mbtouc: New file.
46469         * modules/unistr/u32-mbtouc: New file.
46470         * lib/unistr/u8-mbtouc.c: New file.
46471         * lib/unistr/u16-mbtouc.c: New file.
46472         * lib/unistr/u32-mbtouc.c: New file.
46473
46474         * modules/unistr/u8-mbtouc-safe: New file.
46475         * modules/unistr/u16-mbtouc-safe: New file.
46476         * modules/unistr/u32-mbtouc-safe: New file.
46477         * lib/unistr/u8-mbtouc-safe.c: New file.
46478         * lib/unistr/u16-mbtouc-safe.c: New file.
46479         * lib/unistr/u32-mbtouc-safe.c: New file.
46480
46481         * modules/unistr/u8-move: New file.
46482         * modules/unistr/u16-move: New file.
46483         * modules/unistr/u32-move: New file.
46484         * lib/unistr/u8-move.c: New file.
46485         * lib/unistr/u16-move.c: New file.
46486         * lib/unistr/u32-move.c: New file.
46487         * lib/unistr/u-move.h: New file.
46488
46489         * modules/unistr/u8-next: New file.
46490         * modules/unistr/u16-next: New file.
46491         * modules/unistr/u32-next: New file.
46492         * lib/unistr/u8-next.c: New file.
46493         * lib/unistr/u16-next.c: New file.
46494         * lib/unistr/u32-next.c: New file.
46495
46496         * modules/unistr/u8-prev: New file.
46497         * modules/unistr/u16-prev: New file.
46498         * modules/unistr/u32-prev: New file.
46499         * lib/unistr/u8-prev.c: New file.
46500         * lib/unistr/u16-prev.c: New file.
46501         * lib/unistr/u32-prev.c: New file.
46502
46503         * modules/unistr/u8-set: New file.
46504         * modules/unistr/u16-set: New file.
46505         * modules/unistr/u32-set: New file.
46506         * lib/unistr/u8-set.c: New file.
46507         * lib/unistr/u16-set.c: New file.
46508         * lib/unistr/u32-set.c: New file.
46509         * lib/unistr/u-set.h: New file.
46510
46511         * modules/unistr/u8-startswith: New file.
46512         * modules/unistr/u16-startswith: New file.
46513         * modules/unistr/u32-startswith: New file.
46514         * lib/unistr/u8-startswith.c: New file.
46515         * lib/unistr/u16-startswith.c: New file.
46516         * lib/unistr/u32-startswith.c: New file.
46517         * lib/unistr/u-startswith.h: New file.
46518
46519         * modules/unistr/u8-stpcpy: New file.
46520         * modules/unistr/u16-stpcpy: New file.
46521         * modules/unistr/u32-stpcpy: New file.
46522         * lib/unistr/u8-stpcpy.c: New file.
46523         * lib/unistr/u16-stpcpy.c: New file.
46524         * lib/unistr/u32-stpcpy.c: New file.
46525         * lib/unistr/u-stpcpy.h: New file.
46526
46527         * modules/unistr/u8-stpncpy: New file.
46528         * modules/unistr/u16-stpncpy: New file.
46529         * modules/unistr/u32-stpncpy: New file.
46530         * lib/unistr/u8-stpncpy.c: New file.
46531         * lib/unistr/u16-stpncpy.c: New file.
46532         * lib/unistr/u32-stpncpy.c: New file.
46533         * lib/unistr/u-stpncpy.h: New file.
46534
46535         * modules/unistr/u8-strcat: New file.
46536         * modules/unistr/u16-strcat: New file.
46537         * modules/unistr/u32-strcat: New file.
46538         * lib/unistr/u8-strcat.c: New file.
46539         * lib/unistr/u16-strcat.c: New file.
46540         * lib/unistr/u32-strcat.c: New file.
46541         * lib/unistr/u-strcat.h: New file.
46542
46543         * modules/unistr/u8-strchr: New file.
46544         * modules/unistr/u16-strchr: New file.
46545         * modules/unistr/u32-strchr: New file.
46546         * lib/unistr/u8-strchr.c: New file.
46547         * lib/unistr/u16-strchr.c: New file.
46548         * lib/unistr/u32-strchr.c: New file.
46549
46550         * modules/unistr/u8-strcmp: New file.
46551         * modules/unistr/u16-strcmp: New file.
46552         * modules/unistr/u32-strcmp: New file.
46553         * lib/unistr/u8-strcmp.c: New file.
46554         * lib/unistr/u16-strcmp.c: New file.
46555         * lib/unistr/u32-strcmp.c: New file.
46556
46557         * modules/unistr/u8-strcpy: New file.
46558         * modules/unistr/u16-strcpy: New file.
46559         * modules/unistr/u32-strcpy: New file.
46560         * lib/unistr/u8-strcpy.c: New file.
46561         * lib/unistr/u16-strcpy.c: New file.
46562         * lib/unistr/u32-strcpy.c: New file.
46563         * lib/unistr/u-strcpy.h: New file.
46564
46565         * modules/unistr/u8-strcspn: New file.
46566         * modules/unistr/u16-strcspn: New file.
46567         * modules/unistr/u32-strcspn: New file.
46568         * lib/unistr/u8-strcspn.c: New file.
46569         * lib/unistr/u16-strcspn.c: New file.
46570         * lib/unistr/u32-strcspn.c: New file.
46571         * lib/unistr/u-strcspn.h: New file.
46572
46573         * modules/unistr/u8-strdup: New file.
46574         * modules/unistr/u16-strdup: New file.
46575         * modules/unistr/u32-strdup: New file.
46576         * lib/unistr/u8-strdup.c: New file.
46577         * lib/unistr/u16-strdup.c: New file.
46578         * lib/unistr/u32-strdup.c: New file.
46579         * lib/unistr/u-strdup.h: New file.
46580
46581         * modules/unistr/u8-strlen: New file.
46582         * modules/unistr/u16-strlen: New file.
46583         * modules/unistr/u32-strlen: New file.
46584         * lib/unistr/u8-strlen.c: New file.
46585         * lib/unistr/u16-strlen.c: New file.
46586         * lib/unistr/u32-strlen.c: New file.
46587         * lib/unistr/u-strlen.h: New file.
46588
46589         * modules/unistr/u8-strmblen: New file.
46590         * modules/unistr/u16-strmblen: New file.
46591         * modules/unistr/u32-strmblen: New file.
46592         * lib/unistr/u8-strmblen.c: New file.
46593         * lib/unistr/u16-strmblen.c: New file.
46594         * lib/unistr/u32-strmblen.c: New file.
46595
46596         * modules/unistr/u8-strmbtouc: New file.
46597         * modules/unistr/u16-strmbtouc: New file.
46598         * modules/unistr/u32-strmbtouc: New file.
46599         * lib/unistr/u8-strmbtouc.c: New file.
46600         * lib/unistr/u16-strmbtouc.c: New file.
46601         * lib/unistr/u32-strmbtouc.c: New file.
46602
46603         * modules/unistr/u8-strncat: New file.
46604         * modules/unistr/u16-strncat: New file.
46605         * modules/unistr/u32-strncat: New file.
46606         * lib/unistr/u8-strncat.c: New file.
46607         * lib/unistr/u16-strncat.c: New file.
46608         * lib/unistr/u32-strncat.c: New file.
46609         * lib/unistr/u-strncat.h: New file.
46610
46611         * modules/unistr/u8-strncmp: New file.
46612         * modules/unistr/u16-strncmp: New file.
46613         * modules/unistr/u32-strncmp: New file.
46614         * lib/unistr/u8-strncmp.c: New file.
46615         * lib/unistr/u16-strncmp.c: New file.
46616         * lib/unistr/u32-strncmp.c: New file.
46617
46618         * modules/unistr/u8-strncpy: New file.
46619         * modules/unistr/u16-strncpy: New file.
46620         * modules/unistr/u32-strncpy: New file.
46621         * lib/unistr/u8-strncpy.c: New file.
46622         * lib/unistr/u16-strncpy.c: New file.
46623         * lib/unistr/u32-strncpy.c: New file.
46624         * lib/unistr/u-strncpy.h: New file.
46625
46626         * modules/unistr/u8-strnlen: New file.
46627         * modules/unistr/u16-strnlen: New file.
46628         * modules/unistr/u32-strnlen: New file.
46629         * lib/unistr/u8-strnlen.c: New file.
46630         * lib/unistr/u16-strnlen.c: New file.
46631         * lib/unistr/u32-strnlen.c: New file.
46632         * lib/unistr/u-strnlen.h: New file.
46633
46634         * modules/unistr/u8-strpbrk: New file.
46635         * modules/unistr/u16-strpbrk: New file.
46636         * modules/unistr/u32-strpbrk: New file.
46637         * lib/unistr/u8-strpbrk.c: New file.
46638         * lib/unistr/u16-strpbrk.c: New file.
46639         * lib/unistr/u32-strpbrk.c: New file.
46640         * lib/unistr/u-strpbrk.h: New file.
46641
46642         * modules/unistr/u8-strrchr: New file.
46643         * modules/unistr/u16-strrchr: New file.
46644         * modules/unistr/u32-strrchr: New file.
46645         * lib/unistr/u8-strrchr.c: New file.
46646         * lib/unistr/u16-strrchr.c: New file.
46647         * lib/unistr/u32-strrchr.c: New file.
46648
46649         * modules/unistr/u8-strspn: New file.
46650         * modules/unistr/u16-strspn: New file.
46651         * modules/unistr/u32-strspn: New file.
46652         * lib/unistr/u8-strspn.c: New file.
46653         * lib/unistr/u16-strspn.c: New file.
46654         * lib/unistr/u32-strspn.c: New file.
46655         * lib/unistr/u-strspn.h: New file.
46656
46657         * modules/unistr/u8-strstr: New file.
46658         * modules/unistr/u16-strstr: New file.
46659         * modules/unistr/u32-strstr: New file.
46660         * lib/unistr/u8-strstr.c: New file.
46661         * lib/unistr/u16-strstr.c: New file.
46662         * lib/unistr/u32-strstr.c: New file.
46663         * lib/unistr/u-strstr.h: New file.
46664
46665         * modules/unistr/u8-strtok: New file.
46666         * modules/unistr/u16-strtok: New file.
46667         * modules/unistr/u32-strtok: New file.
46668         * lib/unistr/u8-strtok.c: New file.
46669         * lib/unistr/u16-strtok.c: New file.
46670         * lib/unistr/u32-strtok.c: New file.
46671         * lib/unistr/u-strtok.h: New file.
46672
46673         * modules/unistr/u8-uctomb: New file.
46674         * modules/unistr/u16-uctomb: New file.
46675         * modules/unistr/u32-uctomb: New file.
46676         * lib/unistr/u8-uctomb.c: New file.
46677         * lib/unistr/u16-uctomb.c: New file.
46678         * lib/unistr/u32-uctomb.c: New file.
46679
46680         * MODULES.html.sh (Unicode string functions): Add the new modules.
46681
46682 2007-01-08  Bruno Haible  <bruno@clisp.org>
46683
46684         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46685         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46686         subdirectories.
46687
46688 2007-01-08  Karl Berry  <karl@gnu.org>
46689
46690         * doc/error.texi: mention that main() fns must set program_name
46691         when progname is used.
46692
46693 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46694
46695         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46696         WCTYPE_H is empty, for the benefit of builds from non-distclean
46697         directories.  Problem reported by Eric Blake in
46698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46699
46700 2007-01-08  Bruno Haible  <bruno@clisp.org>
46701
46702         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46703         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46704         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46705         PROVIDE_CANONICALIZE_FILENAME_MODE.
46706         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46707
46708 2007-01-08  Bruno Haible  <bruno@clisp.org>
46709
46710         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46711         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46712         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46713         * lib/fts.c: Likewise.
46714         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46715
46716 2006-12-25  Bruno Haible  <bruno@clisp.org>
46717
46718         * modules/utf8-ucs4-safe: New file.
46719         * lib/utf8-ucs4-safe.h: New file.
46720         * lib/unistr/utf8-ucs4-safe.c: New file.
46721
46722         * modules/utf16-ucs4-safe: New file.
46723         * lib/utf16-ucs4-safe.h: New file.
46724         * lib/unistr/utf16-ucs4-safe.c: New file.
46725
46726         * MODULES.html.sh (Unicode string functions): Add the new modules.
46727
46728 2007-01-08  Bruno Haible  <bruno@clisp.org>
46729
46730         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46731         (Depends-on): Add unitypes.
46732         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46733         (u8_mbtouc_aux): Move out to separate file.
46734         (u8_mbtouc): Use ucs4_t, uint8_t types.
46735         * lib/unistr/utf8-ucs4.c: New file.
46736
46737         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46738         (Depends-on): Add unitypes.
46739         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46740         (u16_mbtouc_aux): Move out to separate file.
46741         (u16_mbtouc): Use ucs4_t, uint16_t types.
46742         * lib/unistr/utf16-ucs4.c: New file.
46743
46744         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46745         (Depends-on): Add unitypes.
46746         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46747         (u8_uctomb_aux): Move out to separate file.
46748         (u8_uctomb): Use ucs4_t, uint8_t types.
46749         * lib/unistr/ucs4-utf8.c: New file.
46750
46751         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46752         (Depends-on): Add unitypes.
46753         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46754         (u16_uctomb_aux): Move out to separate file.
46755         (u16_uctomb): Use ucs4_t, uint16_t types.
46756         * lib/unistr/ucs4-utf16.c: New file.
46757
46758 2006-12-25  Bruno Haible  <bruno@clisp.org>
46759
46760         * modules/unitypes: New file.
46761         * lib/unitypes.h: New file.
46762         * MODULES.html.sh (func_all_modules): New section "Unicode string
46763         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46764         this section. Add unitypes.
46765
46766 2007-01-08  Bruno Haible  <bruno@clisp.org>
46767
46768         Avoid variable names that conflict with those from libtool.
46769         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46770         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46771         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46772         library_names_spec to acl_library_names_spec, hardcode_* to
46773         acl_hardcode_*.
46774         Reported by Ralf Wildenhues.
46775
46776 2007-01-08  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46779         definition.
46780         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46781         definition.
46782         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46783         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46784         definition.
46785         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46786         definition.
46787         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46788         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46789         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46790         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46791         definition.
46792         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46793         definition.
46794         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46795         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46796         GC_USE_<algorithm>.
46797         * lib/gc-libgcrypt.c: Likewise.
46798         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46799         * modules/gc-arctwo (configure.ac): Likewise.
46800         * modules/gc-des (configure.ac): Likewise.
46801         * modules/gc-hmac-md5 (configure.ac): Likewise.
46802         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46803         * modules/gc-md2 (configure.ac): Likewise.
46804         * modules/gc-md4 (configure.ac): Likewise.
46805         * modules/gc-md5 (configure.ac): Likewise.
46806         * modules/gc-random (configure.ac): Likewise.
46807         * modules/gc-rijndael (configure.ac): Likewise.
46808         * modules/gc-sha1 (configure.ac): Likewise.
46809
46810 2007-01-08  Bruno Haible  <bruno@clisp.org>
46811
46812         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46813         macro definition.
46814         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46815         definition.
46816         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46817         definition.
46818         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46819         * modules/fcntl-safer (configure.ac): Likewise.
46820         * modules/fopen-safer (configure.ac): Likewise.
46821         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46822         GNULIB_FWRITEERROR macro definition.
46823
46824 2007-01-08  Bruno Haible  <bruno@clisp.org>
46825
46826         * m4/gnulib-common.m4: New file.
46827         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46828         (func_get_filelist): Add m4/gnulib-common.m4.
46829
46830 2007-01-08  Bruno Haible  <bruno@clisp.org>
46831
46832         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46833         command.
46834
46835 2007-01-08  Jim Meyering  <jim@meyering.net>
46836
46837         Use a more robust test for a "can't happen" condition.
46838         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46839         narrowed the st_size value.  Presuming the "can't happen" condition
46840         is true, that narrowing could conceivably convert an invalid st_size
46841         value into a valid one.  Instead, use a change based on Matthew
46842         Woehlke's original patch.
46843
46844         Slight readability improvement: use an assert-like macro
46845         in place of literal "abort ()" uses.
46846         * lib/fts.c (fts_assert): Define.
46847         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46848         Use this macro instead of a bare 'abort'.
46849
46850 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46851
46852         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46853         simply work around them.
46854         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46855         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46856         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46857         declaring.
46858         Don't bother to define as macros, since the standard doesn't require it.
46859         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46860         longer worry about IRIX 5.3.
46861         (HAVE_WCTYPE_CTMP_BUG): Remove.
46862
46863 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46866         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46867         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46868         Problems reported by Georg Schwarz for IRIX 5.3.
46869
46870         * gnulib-tool (autoconf_minversion): Take the maximum version number
46871         found, not the minimum.  Problem reported by James Youngman.
46872
46873 2007-01-03  Karl Berry  <karl@gnu.org>
46874
46875         * doc/error.texi: new file, explaining interaction with progname.
46876         * doc/gnulib.texi: include it.  Update copyright.
46877
46878 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46879
46880         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46881         AC_CANONICAL_HOST, to improve autobuild outputs.
46882
46883 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46884             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46885
46886         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46887         sockets, server sockets, and other file descriptors.  Count errors
46888         to compute the return value.  Reorder the code a bit to be easier
46889         to follow.  Don't set event bits that were not requested (except
46890         POLLERR and POLLHUP).
46891
46892 2007-01-01  Bruno Haible  <bruno@clisp.org>
46893
46894         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46895
46896 2007-01-03  Jim Meyering  <jim@meyering.net>
46897
46898         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46899
46900 2007-01-02  Bruno Haible  <bruno@clisp.org>
46901
46902         * modules/settime (Include): Require timespec.h.
46903         * modules/nanosleep (Include): Likewise.
46904
46905 2007-01-01  Bruno Haible  <bruno@clisp.org>
46906
46907         * gnulib-tool (func_emit_copyright_notice): Bump year.
46908         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46909
46910 2007-01-01  Bruno Haible  <bruno@clisp.org>
46911
46912         Improve support for OpenBSD.
46913         * build-aux/config.rpath (libname_spec): Export.
46914         (library_names_spec): New variable. Export.
46915         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46916         library_names_spec from the config.rpath output. Locate shared library
46917         through the name pattern in library_names_spec.
46918
46919 2007-01-01  Eric Blake  <ebb9@byu.net>
46920
46921         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46922
46923 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46924
46925         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46926         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46927         assume the C locale, and avoid an "eval" that could cause trouble.
46928         Problem with SORT reported by Bob Proulx.
46929
46930         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46931         Define.  Trivial patch from Henning Nielsen Lund, originally
46932         sent to bug-grep@gnu.org today.
46933
46934 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46935
46936         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
46937         struct stat.  Problem reported by Henning Nielsen Lund.
46938         * lib/acl.c: Include acl.h first, to check interface.  Don't
46939         bother to include sys/types.h and sys/stat.h again.
46940
46941 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46942
46943         Import the following change from libc; problem reported by
46944         Sven Verdoolaege.
46945
46946         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
46947
46948         [BZ #1373]
46949         * lib/argp.h: Remove __NTH for __argp_usage inline function.
46950
46951 2006-12-28  Jim Meyering  <jim@meyering.net>
46952
46953         * build-aux/announce-gen: Do not assume that the package
46954         builds any of tar.gz, tar.bz2, and .xdelta files.
46955         Suggestion from Simon Josefsson.
46956
46957 2006-12-28  Simon Josefsson  <simon@josefsson.org>
46958
46959         * modules/announce-gen: New file.
46960
46961 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46962
46963         * lib/mbchar.h: Just include <wctype.h>; the wctype module
46964         handles its gotchas now.
46965         * lib/mbswidth.c: Likewise.
46966         * lib/wcwidth.h: Likewise.
46967         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
46968         and iswcntrl; the wctype module does this stuff now.
46969         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46971         * modules/mbchar (Depends-on): Add wctype.
46972         * modules/mbswidth (Depends-on): Likewise.
46973         * modules/wcwidth (Depends-on): Likewise.
46974
46975 2006-12-27  Eric Blake  <ebb9@byu.net>
46976
46977         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
46978         module uses more than what <wctype.h> is required to provide.
46979
46980 2006-12-26  Eric Blake  <ebb9@byu.net>
46981
46982         * gnulib-tool (sed_extract_prog): Avoid space-tab.
46983
46984 2006-12-26  Eric Blake  <ebb9@byu.net>
46985
46986         * modules/absolute-header: New module.
46987         * modules/fcntl (Depends-on): Depend on it.
46988         * modules/inttypes (Depends-on): Likewise.
46989         * modules/stdint (Depends-on): Likewise.
46990         * modules/sys_stat (Depends-on): Likewise.
46991         * modules/wctype (Depends-on): Likewise.
46992         * MODULES.html.sh (Support for building libraries and
46993         executables): Document it.
46994
46995 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46996
46997         * gnulib-tool (SED): Remove, undoing previous change.
46998         The problem was that it broke coreutils on Solaris, because
46999         "sed --posix" leaked into a makefile.
47000         (sed): New alias, if 'alias' and GNU sed.
47001
47002 2006-12-24  Jim Meyering  <jim@meyering.net>
47003
47004         Work around an fchownat bug in glibc-2.4:
47005         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47006         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47007         in spite of the -P option.
47008         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47009         New macros.
47010         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47011         * modules/openat (Files): Add lib/fchownat.c.
47012         * lib/openat.c (fchownat): Don't define here.  Move to...
47013         * lib/fchownat.c: ...this new file.
47014
47015 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47016
47017         Fix bug reported by Bruno Haible in
47018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47019         where quotearg.c didn't compile on Mac OS X 10.2 because it
47020         lacks <wchar.h> and wint_t.
47021         * lib/wctype_.h (__wctype_wint_t): New type.
47022         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47023         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47024         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47025         Arg is now of type __wctype_wint_t, not wint_t.
47026         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47027         substitute HAVE_WINT_T.
47028         * modules/wctype (Files): Add m4/wint_t.m4.
47029         (wctype.h): Substitute HAVE_WINT_T.
47030
47031 2006-12-23  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47034
47035 2006-12-23  Bruno Haible  <bruno@clisp.org>
47036
47037         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47038         S_ISLNK.
47039         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47040         mingw.
47041
47042 2006-12-22  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/copy-file.c: Include acl.h.
47045         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47046         Close the file descriptors only after being done with copy_acl.
47047         * modules/copy-file (Depends-on): Add acl.
47048
47049 2006-12-22  Bruno Haible  <bruno@clisp.org>
47050
47051         * gnulib-tool (SED): New variable.
47052         Use $SED instead of sed everywhere.
47053
47054 2006-12-22  Bruno Haible  <bruno@clisp.org>
47055
47056         * modules/no-c++: New file.
47057         * m4/no-c++.m4: New file.
47058         * MODULES.html.sh (Support for building libraries and executables):
47059         Add no-c++.
47060
47061 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47062
47063         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47064         Include <limits.h>, and use its INT_MAX to rewrite the
47065         j loop so that it does not overflow 'int'.  Problem reported by
47066         Ralf Wildenhues in
47067         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47068         Play it safe by shifting left by 1 rather than multiplying by 2,
47069         as GCC is less likely to optimize this away when the value
47070         is signed (when it assumes overflow leads to undefined behavior).
47071         Also, don't assume time_t uses two's complement.
47072
47073 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47074
47075         * MODULES.html.sh: New module wctype.
47076         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47077         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47078         <wctype.h>, since the new wctype module should fix this.
47079         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47080         the wctype module should arrange for it.
47081         * lib/regex_internal.h: Likewise.
47082         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47083         since the wctype module should handle this now.
47084         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47085         * modules/fnmatch (Depends-on): Add wctype.
47086         * modules/quotearg (Depends-on): Likewise.
47087         * modules/regex (Depends-on): Likewise.
47088
47089 2006-12-19  Bruno Haible  <bruno@clisp.org>
47090
47091         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47092         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47093
47094 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47095
47096         * modules/savewd (Depends-on): Fix dependency on fcntl.
47097
47098 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47099
47100         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47101         conforms to C99, rather than relying on the user's environment
47102         setting of STDINT_H.
47103
47104 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47105         and Eric Blake  <ebb9@byu.net>
47106
47107         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47108         This is more consistent with the other defines here.
47109         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47110         Port to z/OS.  Problem reported by Paul Gilmartin.
47111         Change local vars to use gl_ prefix rather than ac_.
47112         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47113         with other defines.
47114         * modules/double-slash-root: New module.
47115         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47116         (Depends-on): Add double-slash-root.
47117         * MODULES.html.sh (File system functions): Mention new module.
47118
47119 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47120
47121         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47122         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47123         This is for the benefit of gzip, which doesn't do i18n.
47124
47125 2006-12-12  Jim Meyering  <jim@meyering.net>
47126
47127         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47128         Reported by Andreas Schwab <schwab@suse.de>.
47129
47130 2006-12-12  Bruno Haible  <bruno@clisp.org>
47131
47132         Merge these changes.
47133         2006-09-05  Bruno Haible  <bruno@clisp.org>
47134         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47135         iconv_alloc succeeded.
47136         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47137         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47138         test for " && dest " at the end - dest is always != NULL there. Call
47139         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47140         with 2xNULL arguments, also to flush the state storage. Handle the
47141         IRIX iconv behaviour. Realloc the final result, to throw away unused
47142         memory.
47143
47144 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47145
47146         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47147         and fchmodat unconditionally, since glibc 2.4 has them.
47148         Problem reported by Arkadiusz Miskiewicz.
47149
47150 2006-12-10  Bruno Haible  <bruno@clisp.org>
47151
47152         * gnulib-tool (func_import): Show the include files only for those
47153         modules that are copied and specified.
47154         Reported by Karl Berry.
47155
47156 2006-12-08  Jim Meyering  <jim@meyering.net>
47157
47158         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47159         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47160
47161         * build-aux/announce-gen: Add two new options, both optional:
47162         --bootstrap-tools=TOOL_LIST
47163               a comma-separated list of tools, e.g.,
47164               autoconf,automake,bison,gnulib
47165         --gnulib-snapshot-date=DATE
47166               if gnulib is in the bootstrap tool list,
47167               then report this as the snapshot date.
47168               If not specified, use the current date/time.
47169               If you specify a date here, be sure it's UTC.
47170
47171 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47172
47173         * tests/test-argp-2.sh: Fix test to match actual output.
47174         (func_compare): Fix sed script to be portable.
47175
47176 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47177
47178         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47179         workaround for this case.  It is not autoconfigured now; offhand
47180         it's hard to see how to autoconfigure it.
47181
47182 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47183
47184         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47185         a directory that is about to be chowned.  Such a directory's
47186         initial file permissions should permit the owner only and this
47187         should not be changed until after the chown, since the group and
47188         other bits would be incorrect if they granted permission before
47189         the chown.
47190
47191         Fix porting problem for iswctype reported by Georg Schwarz in:
47192         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47193         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47194         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47195         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47196         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47197
47198 2006-12-03  Jim Meyering  <jim@meyering.net>
47199
47200         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47201         p->fts_statp may not yet be defined.
47202         (fts_read): Instead, set it in the caller, once p->fts_statp is
47203         sure to be defined, and corresponds to a top-level directory.
47204         This bug made du -x fail.  Here's the coreutils test case:
47205         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47206         Reported by Mike Frysinger.
47207
47208 2006-12-01  Jim Meyering  <jim@meyering.net>
47209
47210         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47211         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47212         Reported by Simon Josefsson.
47213
47214 2006-11-30  Jim Meyering  <jim@meyering.net>
47215
47216         * m4/warning.m4: Use the all-permissive copyright notice
47217         recommended by RMS (rather than LGPL).
47218         * m4/vararrays.m4: Likewise.
47219         * m4/flexmember.m4: Likewise.
47220
47221 2006-11-29  Bruno Haible  <bruno@clisp.org>
47222
47223         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47224         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47225         using +=.
47226         Reported by Simon Josefsson <simon@josefsson.org>.
47227
47228 2006-11-28  James Youngman <jay@gnu.org>
47229
47230         * README: Advise users that they might find the bug-gnulib@gnu.org
47231         and autotools-announce@gnu.org mailing lists useful.
47232
47233 2006-11-28  Bruno Haible  <bruno@clisp.org>
47234
47235         * m4/ptrdiff_max.m4: Remove file.
47236
47237 2006-11-21  Bruno Haible  <bruno@clisp.org>
47238
47239         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47240         _AC_COMPUTE_INT.
47241         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47242         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47243         _AC_COMPUTE_INT.
47244         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47245         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47246         _AC_COMPUTE_INT.
47247         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47248
47249 2006-11-28  Jim Meyering  <jim@meyering.net>
47250
47251         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47252         warning from "gcc -Wshadow" about shadowing the builtin.
47253
47254 2006-11-27  Bruno Haible  <bruno@clisp.org>
47255
47256         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47257         _AC_COMPUTE_INT.
47258         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47259
47260 2006-11-27  Bruno Haible  <bruno@clisp.org>
47261             Paul Eggert  <eggert@cs.ucla.edu>
47262
47263         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47264
47265 2006-11-26  Bruno Haible  <bruno@clisp.org>
47266
47267         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47268         noinst_LTLIBRARIES.
47269
47270 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47271             Bruno Haible  <bruno@clisp.org>
47272
47273         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47274         if compiling with "gcc -ansi".
47275
47276 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47277
47278         Fix some incompatibilities with gcc -ansi -pedantic.
47279         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47280         if compiling pedantically with GCC, unless it's C99 or later.
47281         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47282         it mishandles gcc -ansi -pedantic as well.
47283         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47284         if gcc -pedantic.
47285         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47286         initializers for struct if -pedantic, unless it's C99 or later.
47287
47288 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47289
47290         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47291         Don't close an fd more than once. Identical atimes indicate
47292         success, not failure.
47293
47294 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47295
47296         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47297
47298 2006-11-23  Jim Meyering  <jim@meyering.net>
47299
47300         * build-aux/announce-gen: New file.  From coreutils.
47301
47302 2006-11-22  Jim Meyering  <jim@meyering.net>
47303
47304         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47305         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47306         (fts_read): Use a temporary to narrow the overused st_size member
47307         before using it in a switch statement.  Reported by Matthew Woehlke.
47308
47309         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47310         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47311
47312 2006-11-20  Bruno Haible  <bruno@clisp.org>
47313
47314         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47315         changequote instead of pairs of brackets.
47316         Reported by Andreas Schwab <schwab@suse.de>.
47317
47318 2006-11-21  Jim Meyering  <jim@meyering.net>
47319
47320         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47321         so as to remain compatible with older compilers.
47322         Patch from Michael Deutschmann.
47323
47324 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47325
47326         * MODULES.html.sh (File system functions): Add openat.
47327
47328         * lib/openat.h (rpl_fstatat): New macro, if
47329         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47330         (fstatat): Define to rpl_fstatat under the same conditions,
47331         unless COMPILING_FSTATAT.
47332         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47333         seems to have the bug.
47334         * lib/fstatat.c: New file.
47335         * modules/openat (Files): Add it.
47336
47337 2006-11-20  Bruno Haible  <bruno@clisp.org>
47338
47339         * Makefile: New file.
47340
47341 2006-11-20  Jim Meyering  <jim@meyering.net>
47342
47343         The beginnings of syntax-related checks for gnulib.
47344         * lib/Makefile: New file.
47345         * lib/t-idcache: New script.  Ensure that the two halves of
47346         idcache.c stay in sync.
47347
47348         * lib/idcache.c: Adjust comments in user- and group- portions to
47349         be more accurate, and to be consistent with one another.
47350
47351 2006-11-20  Jim Meyering  <jim@meyering.net>
47352
47353         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47354         continue using the flexible array member (thus, this module performs
47355         half as many malloc calls), with the addition that...
47356         (getgroup, getuser): Consistently record a non-match via an empty
47357         "name" string, and map an empty string match to a NULL return value.
47358         * modules/idcache (Depends-on): Re-add flexmember.
47359
47360         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47361         (getuidbyname, getgroup, getgidbyname): Likewise.
47362
47363         Use cleaner syntax: NULL rather than 0.
47364         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47365
47366 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47367
47368         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47369         It mishandled the case where the group was missing.
47370         Problem reported by Greg Schafer.
47371         * modules/idcache: Likewise.
47372
47373 2006-11-18  Jim Meyering  <jim@meyering.net>
47374
47375         * check-module (%exempt_header): Add exception for some
47376         conditionally-included headers.
47377
47378         * modules/i-ring (Depends-on): Add verify.
47379         (License): Change to LGPL.
47380
47381 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47384         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47385         and inttostr.h.  Use snprintf rather than uinttostr, so that
47386         LGPLed code doesn't depend on GPLed.
47387
47388 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47389
47390         * modules/inline (License): Change from GPL to LGPL.
47391
47392 2006-11-17  Jim Meyering  <jim@meyering.net>
47393
47394         * modules/d-type (License): Switch to LGPL.
47395
47396 2006-11-15  Bruno Haible  <bruno@clisp.org>
47397
47398         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47399
47400 2006-11-15  Eric Blake  <ebb9@byu.net>
47401
47402         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47403         the module dependency.
47404
47405 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47406             Bruno Haible  <bruno@clisp.org>
47407
47408         * gnulib-tool (func_create_testdir): Add license consistency check.
47409
47410 2006-11-15  Eric Blake  <ebb9@byu.net>
47411
47412         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47413         random "(cached)" in configure output.
47414
47415 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47416
47417         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47418         test for conforming inttypes.h is both announced and cached.
47419
47420         * MODULES.html.sh (seen_modules, seen_files): New variables.
47421         (func_module): Rewrite to use a few less gnulib-tool and sed
47422         invocations.  Avoid a couple of quadratic algorithms for ...
47423         (missed_modules, missed_files): ... these, with ...
47424         (func_append, func_tmpdir): ... these new functions, from
47425         gnulib-tool.  Analogously, install traps for cleanup.
47426
47427         * tests/test-gc.c (main): Remove unused variables.
47428         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47429
47430 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * modules/inttostr (License): Change to LGPL.
47433
47434 2006-11-14  Eric Blake  <ebb9@byu.net>
47435
47436         * modules/tempname (License): Change to LGPL.
47437
47438 2006-11-14  Eric Blake  <ebb9@byu.net>
47439
47440         * doc/functions.texi (Function Portability): *printf functions on
47441         Cygwin now understand all POSIX size specifiers.
47442
47443 2006-11-14  Bruno Haible  <bruno@clisp.org>
47444
47445         * modules/c-ctype (License): Change to LGPL.
47446
47447 2006-11-12  Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47450         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47451         for GNOME libraries, for which the include files are installed in
47452         subdirectories of $prefix/include.
47453
47454 2006-11-12  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/lib-link.m4: Require at least autoconf-2.54.
47457         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47458         name to underscores for the --with option.
47459
47460 2006-11-13  Bruno Haible  <bruno@clisp.org>
47461
47462         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47463         the tests directory.
47464         Reported by Ralf Wildenhues.
47465
47466 2006-11-13  Bruno Haible  <bruno@clisp.org>
47467
47468         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47469         (func_emit_initmacro_end): Undo the override here.
47470         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47471         Works around the famous automake error in coreutils.
47472
47473 2006-11-13  Eric Blake  <ebb9@byu.net>
47474
47475         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47476         element, not its node.
47477
47478 2006-11-12  Bruno Haible  <bruno@clisp.org>
47479
47480         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47481         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47482
47483 2006-11-12  Bruno Haible  <bruno@clisp.org>
47484
47485         * gnulib-tool: New option --local-symlink.
47486         (func_usage): Document it.
47487         (lsymbolic): New variable.
47488         (func_import, func_create_testdir): If --symlink was not specified,
47489         test whether --local-symlink was specified and the file comes from
47490         the local_gnulib_dir.
47491
47492 2006-11-12  Bruno Haible  <bruno@clisp.org>
47493
47494         * gnulib-tool (func_ln): New function.
47495         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47496
47497 2006-11-12  Bruno Haible  <bruno@clisp.org>
47498
47499         Finish support for source files in subdirectories.
47500         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47501         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47502         AUTOMAKE_OPTIONS.
47503         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47504
47505 2006-11-12  Bruno Haible  <bruno@clisp.org>
47506
47507         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47508         EXTRA_lib_SOURCES augmentation.
47509         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47510
47511 2006-11-12  Jim Meyering  <jim@meyering.net>
47512
47513         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47514         file descriptors.  This also averts a failure on systems with
47515         native openat support when a traversed directory lacks "x" access.
47516         * lib/fts_.h: Include "i-ring.h"
47517         (struct FTS) [fts_fd_ring]: New member.
47518         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47519         (FCHDIR): Add parentheses.
47520         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47521         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47522         When descending, rather than simply closing the previous
47523         fts_cwd_fd value, push that file descriptor onto the ring.
47524         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47525         (fts_open): Initialize the new fd_ring member.
47526         (fts_close): Clear the ring.
47527         (fts_safe_changedir): When possible, use our new fd_ring to skip
47528         the diropen and fstat and dev/ino comparison that would normally
47529         accompany a virtual `chdir ("..")'.
47530
47531         * modules/fts (Depends-on): Add i-ring.
47532         * modules/i-ring: New module.
47533         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47534         * m4/i-ring.m4: New file.
47535
47536 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47537
47538         * gnulib-tool (func_create_testdir): Fix replacement of
47539         `build-aux' in configure.ac.  Run autotools in gltests
47540         subdirectory.
47541         (func_create_testdir, func_create_megatestdir, test): There is
47542         no need for '--force' in most autotool invocations in a new
47543         tree.  Actually fail the whole test if any of the tools, or the
47544         configure or make stages fail.
47545
47546         Sync from Automake.
47547         * build-aux/gnupload: Revert last change.  Add pointer to upload
47548         instructions of the GNU Maintenance Instructions.
47549         Suggestion by Karl Berry.
47550
47551 2006-11-10  Jim Meyering  <jim@meyering.net>
47552
47553         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47554
47555 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47556
47557         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47558         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47559         (bind_textdomain_codeset) [! ENABLE_NLS]:
47560         Evaluate all the arguments.  That way, callers get compatible behavior
47561         if the arguments have side effects.  Also, it avoids some GCC
47562         diagnostics in some cases; Joel E. Denny reported problems when Bison
47563         was configured with --enable-gcc-warnigs.
47564
47565 2006-11-10  Jim Meyering  <jim@meyering.net>
47566
47567         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47568         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47569         account.
47570
47571 2006-11-10  Jim Meyering  <jim@meyering.net>
47572
47573         * modules/inline: New file/module.
47574         * modules/xalloc (Files): Remove m4/inline.m4.
47575         (Depends-on): Add inline, instead.
47576         * modules/oset: Likewise.
47577         * modules/list: Likewise.
47578
47579 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47580
47581         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47582         Problem reported by Matthew Woehlke.
47583
47584 2006-11-09  Bruno Haible  <bruno@clisp.org>
47585
47586         * lib/tempname.c (gen_tempname): Remove variant that invokes
47587         __gen_tempname.
47588         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47589         __gen_tempname.
47590
47591 2006-11-08  Bruno Haible  <bruno@clisp.org>
47592
47593         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47594         to 'yes' instead of 'cross-compiling'.
47595
47596 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47597
47598         * lib/quotearg.h (quotearg_free): New decl.
47599         * lib/quotearg.c (quotearg_free): New function.
47600         (slot0, nslots, slotvec0, slotvec):
47601         Now file-scope so that quotearg_free can get at them.
47602
47603 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47604
47605         Sync from Automake.
47606         * build-aux/gnupload: Add missing 'gnu' to example URL.
47607         Report by Karl Berry.
47608
47609 2006-11-08  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47612         Suggested by Paul Eggert.
47613
47614 2006-11-08  Jim Meyering  <jim@meyering.net>
47615
47616         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47617         It's already included if !_LIBC.
47618         (fts_safe_changedir): Add a comment.
47619
47620 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47621
47622         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47623         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47624         Matthew Woehlke.
47625
47626         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47627         definitions up, to avoid colliding with change below.
47628         (static_inline) [HAVE_INLINE]: New macro.
47629         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47630         Provide extern decls when !HAVE_INLINE.  Do not define unless
47631         static_inline is defined, either by us or by xmalloc.c.  Use
47632         static_inline rather than static inline.
47633         (XCALLOC): Optimize sizeof(T) = 1 case.
47634         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47635
47636 2006-11-07  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47639         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47640         AC_C_INLINE.
47641         * modules/xalloc (Files): Add m4/inline.m4.
47642
47643 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47644
47645         * README: Fix typo.
47646         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47647         (Miscellanous Notes): ...from this.
47648
47649 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47650
47651         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47652         Mention that offsetof should be used instead of sizeof.
47653         From Bruno Haible.
47654
47655 2006-11-07  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47658
47659 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47660
47661         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47662         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47663         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47664         (gl_tree_add_before, gl_tree_add_after):
47665         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47666         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47667         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47668         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47669         (gl_linked_add_after, gl_linked_add_at): Likewise.
47670         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47671         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47672         (gl_tree_add_before, gl_tree_add_after): Likewise.
47673         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47674         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47675         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47676
47677 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47678
47679         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47680
47681 2006-11-06  Bruno Haible  <bruno@clisp.org>
47682
47683         * m4/inline.m4: New file.
47684         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47685         * modules/list (Files): Add m4/inline.m4.
47686         * modules/oset (Files): Likewise.
47687
47688 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47689
47690         * lib/idcache.c: Include <stddef.h>, for offsetof.
47691         (struct userid.name): Change from char * to a flexible array member.
47692         All uses changed.
47693         * modules/idcache (Depends-on): Add flexmember.
47694
47695         * MODULES.html.sh (Core language properties): New module flexmember.
47696         * modules/flexmember, m4/flexmember.m4: New files.
47697
47698         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47699         inline functions that are identical with the old xnmalloc_inline,
47700         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47701         that we can avoid some unnecessary integer multiplications and
47702         divisions in the common case where the element size is known at
47703         compile time.
47704         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47705         needed.
47706         (xnboundedmalloc): Remove.
47707         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47708         arguments, for consistency with rest of this header.
47709         (xcharalloc): Rewrite using XNMALLOC.
47710         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47711         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47712         versions have been moved to lib/xalloc.h and renamed to be the
47713         non-*_inline versions.
47714         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47715         and xnrealloc functions, since those functions are now inline and
47716         now call us.
47717         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47718         renaming described above.
47719         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47720         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47721         captures the dependency in AC_C_INLINE.
47722
47723         New module canonicalize-lgpl, proposed by Charles Wilson in
47724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47725         with a few small changes afterwards.
47726         * MODULES.html.sh (File system functions): New module
47727         canonicalize-lgpl.
47728         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47729         and canonicalize_file_name.
47730         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47731         * modules/canonicalize-lgpl: New files.
47732
47733 2006-11-05  Bruno Haible  <bruno@clisp.org>
47734
47735         * gnulib-tool (func_import, func_create_testdir): Create directories
47736         also for files in subdirectories of lib/.
47737
47738 2006-11-05  Bruno Haible  <bruno@clisp.org>
47739
47740         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47741         ANSI C compliant.
47742
47743 2006-11-03  Bruno Haible  <bruno@clisp.org>
47744
47745         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47746         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47747         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47748         (xnboundedmalloc): New inline function.
47749         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47750         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47751         xmalloc.
47752         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47753         xmalloc.
47754         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47755         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47756         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47757         xmalloc.
47758         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47759         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47760         xmalloc.
47761         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47762         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47763         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47764         xmalloc.
47765         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47766         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47767         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47768         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47769         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47770         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47771         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47772
47773 2006-11-03  Bruno Haible  <bruno@clisp.org>
47774
47775         * lib/c-ctype.h [C++]: Define functions without name mangling.
47776         * lib/fwriteerror.h [C++]: Likewise.
47777         * lib/gcd.h [C++]: Likewise.
47778         * lib/linebreak.h [C++]: Likewise.
47779
47780 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47783         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47784         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47785         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47786         Check for functions and headers just once.
47787         Check for declaration of canonicalize_file_name.
47788         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47789
47790 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47791
47792         * gnulib-tool (func_import): Fix typo in actioncmd.
47793
47794 2006-11-02  Bruno Haible  <bruno@clisp.org>
47795
47796         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47797         newline sequence in the Makefile.am snippet as a space, like "make"
47798         does.
47799         Reported by Roger Persson <perrog@gmail.com>.
47800
47801 2006-11-01  Bruno Haible  <bruno@clisp.org>
47802
47803         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47804         already declared in <string.h>.
47805         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47806
47807 2006-11-01  Bruno Haible  <bruno@clisp.org>
47808
47809         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47810         * lib/strcase.h: Include <string.h>.
47811         (strcasecmp): Define to rpl_strcasecmp here.
47812
47813 2006-11-01  Bruno Haible  <bruno@clisp.org>
47814
47815         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47816
47817 2006-11-01  Eric Blake  <ebb9@byu.net>
47818
47819         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47820
47821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47822
47823 2006-10-29  Bruno Haible  <bruno@clisp.org>
47824
47825         Make it compile in C++ mode.
47826         * lib/full-write.c (full_rw): Add a cast.
47827
47828 2006-11-01  Bruno Haible  <bruno@clisp.org>
47829
47830         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47831         be POSIX compliant.
47832         Reported by Roger Persson <perrog@gmail.com>.
47833
47834 2006-11-01  Eric Blake  <ebb9@byu.net>
47835
47836         * lib/getopt_.h: Fix comments.
47837
47838 2006-10-31  Eric Blake  <ebb9@byu.net>
47839
47840         * modules/tmpdir (Depends-on): Add sys_stat.
47841         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47842         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47843         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47844         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47845         tempname.
47846
47847 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47848
47849         Avoid some C++ diagnostics reported by Bruno Haible.
47850         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47851         xmalloc.
47852         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47853         (struct slotvec): Move to top level.
47854         (quotearg_n_options): Rewrite to avoid xmalloc.
47855         * lib/xalloc.h (xcharalloc): New function.
47856         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47857         [defined __cplusplus]: Add function template that provides result
47858         type propagation.  This part of the change is from Bruno Haible.
47859
47860 2006-10-29  Bruno Haible  <bruno@clisp.org>
47861
47862         Make it compile in C++ mode.
47863         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47864         * lib/strnlen1.c (strnlen1): Cast memchr result.
47865         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47866         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47867         (create_temp_dir): Rename local variable 'template'.
47868         (compile_csharp_using_sscli): Add cast.
47869         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47870         * lib/findprog.c (find_in_path): Likewise.
47871         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47872         * lib/wait-process.c (register_slave_subprocess): Likewise.
47873
47874 2006-10-22  Bruno Haible  <bruno@clisp.org>
47875
47876         * modules/tsearch: New file.
47877         * lib/tsearch.h: New file.
47878         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47879         * m4/tsearch.m4: New file.
47880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47881
47882 2006-10-29  Eric Blake  <ebb9@byu.net>
47883
47884         * lib/arcfour.c: Assume config.h.
47885         * lib/arctwo.c: Likewise.
47886         * lib/base64.c: Likewise.
47887         * lib/check-version.c: Likewise.
47888         * lib/crc.c: Likewise.
47889         * lib/des.c: Likewise.
47890         * lib/gc-gnulib.c: Likewise.
47891         * lib/gc-libgcrypt.c: Likewise.
47892         * lib/gc-pbkdf2-sha1.c: Likewise.
47893         * lib/getaddrinfo.c: Likewise.
47894         * lib/getdelim.c: Likewise.
47895         * lib/getline.c: Likewise.
47896         * lib/hmac-md5.c: Likewise.
47897         * lib/hmac-sha1.c: Likewise.
47898         * lib/iconvme.c: Likewise.
47899         * lib/md2.c: Likewise.
47900         * lib/md4.c: Likewise.
47901         * lib/memxor.c: Likewise.
47902         * lib/read-file.c: Likewise.
47903         * lib/readline.c: Likewise.
47904         * lib/rijndael-alg-fst.c: Likewise.
47905         * lib/rijndael-api-fst.c: Likewise.
47906         * lib/xgetdomainname.c: Likewise.
47907
47908 2006-10-28  Eric Blake  <ebb9@byu.net>
47909
47910         * lib/xstrndup.c: Assume config.h.
47911
47912 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47913
47914         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47915         stat-macros.h is now for our own macros, whereas stat_h is for
47916         macros in the <sys/stat.h> name space.
47917         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47918         (STAT_MACROS_H): Remove.
47919         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47920         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47921         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47922         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47923         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47924         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47925         Move these macros to ...
47926         * lib/stat_.h: here.  Don't include stat-macros.h.
47927         * lib/canonicalize.c: Don't include stat-macros.h.
47928         * lib/chown.c: Likewise.
47929         * lib/euidaccess.c: Likewise.
47930         * lib/file-type.c: Likewise.
47931         * lib/filemode.c: Likewise.
47932         * lib/glob.c: Likewise.
47933         * lib/isapipe.c: Likewise.
47934         * lib/lchown.c: Likewise.
47935         * lib/lstat.c: Likewise.
47936         * lib/mkdir-p.c: Likewise.
47937         * lib/rmdir.c: Likewise.
47938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
47939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
47940         unless mkdir isn't declared, to speed up 'configure'.
47941         Always create sys/stat.h, since it's unlikely any real sys/stat.h
47942         would define all the S_* symbols.
47943         * modules/canonicalize (Depends-on):
47944         Depend on sys_stat, not stat-macros.
47945         * modules/chown: Likewise.
47946         * modules/euidaccess: Likewise.
47947         * modules/filemode: Likewise.
47948         * modules/file-type: Likewise.
47949         * modules/glob: Likewise.
47950         * modules/isapipe: Likewise.
47951         * modules/lchown: Likewise.
47952         * modules/lstat: Likewise.
47953         * modules/mkancesdirs: Likewise.
47954         * modules/rmdir: Likewise.
47955         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
47956         * modules/modechange: Likewise.
47957         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47958         (configure.ac): Remove gl_STAT_MACROS.
47959         * modules/sys_stat (Depends-on): Remove stat-macros.
47960
47961 2006-10-27  Bruno Haible  <bruno@clisp.org>
47962
47963         * m4/signed.m4: Remove file.
47964         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
47965         invocation.
47966         * modules/vasnprintf (Files): Remove m4/signed.m4.
47967
47968 2006-10-27  Bruno Haible  <bruno@clisp.org>
47969
47970         Update to GNU gettext 0.16.
47971         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
47972         m4/inttypes-h.m4, m4/signed.m4.
47973         * m4/gettext.m4: Update to GNU gettext 0.16.
47974         * m4/intl.m4: New file, from GNU gettext.
47975         * m4/intldir.m4: New file, from GNU gettext.
47976         * config/srclist.txt: Update
47977
47978 2006-10-27  Eric Blake  <ebb9@byu.net>
47979
47980         * MODULES.html.sh: Document tempname.
47981         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
47982         dependencies.
47983         (Files): Move lib/tempname.c...
47984         * modules/tempname: ...to this new module.
47985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
47986         (gl_PREREQ_TEMPNAME): Move...
47987         * m4/tempname.m4: ...to this new file.
47988         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
47989         * modules/sys_stat (Depends-on): Add stat-macros.
47990         * lib/stat_.h (includes): Pick up stat macros.
47991         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
47992         if stat macros are broken.
47993         * lib/tempname.c (includes): No need to include "stat-macros.h".
47994         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
47995         (direxists, __path_search) [!_LIBC]: Don't compile these in
47996         gnulib; the tmpdir module covers that.
47997         * lib/tempname.h: New file.
47998
47999 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48000
48001         * COPYING: Explain how gnulib-tool converts licence headers.
48002         Almost all wording by Eric Blake.
48003
48004 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         * lib/mbchar.h (is_basic_table): Make read-only.
48007         * lib/mbchar.c (is_basic_table): Likewise.
48008         Reported by John Darrington.
48009
48010 2006-10-25  Bruno Haible  <bruno@clisp.org>
48011
48012         * lib/progname.h (set_program_name): Undefine before defining.
48013
48014 2006-10-25  Bruno Haible  <bruno@clisp.org>
48015
48016         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48017         false for non-gcc C++ compilers.
48018         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48019
48020 2006-10-24  Bruno Haible  <bruno@clisp.org>
48021
48022         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48023         iconv implementations like Irix iconv.
48024
48025 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48026
48027         * modules/vararrays: New file.
48028         * m4/vararrays.m4: New file, taken from diffutils.
48029         * MODULES.html.sh: New module vararrays.
48030
48031 2006-10-24  Karl Berry  <karl@gnu.org>
48032
48033         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48034         Don't call GNU Unix.
48035
48036 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48037
48038         * users.txt: Add Libtool.
48039
48040         Sync from Libtool:
48041
48042         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48043
48044         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48045         to gnulib's policy of including config.h unconditionally.
48046
48047 2006-10-24  Bruno Haible  <bruno@clisp.org>
48048
48049         * modules/wcwidth (Files): Add m4/wint_t.m4.
48050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48051         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48052
48053 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48054
48055         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48056         to pacify GCC with some -W flags enabled.  Problem reported by
48057         Bruno Haible.
48058
48059 2006-10-24  Jim Meyering  <jim@meyering.net>
48060
48061         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48062         Reported by Karl Berry.
48063
48064 2006-10-23  Bruno Haible  <bruno@clisp.org>
48065
48066         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48067
48068 2006-10-24  Bruno Haible  <bruno@clisp.org>
48069
48070         * lib/gl_list.h: Use C comment style, not C++ comment style.
48071
48072 2006-10-23  Eric Blake  <ebb9@byu.net>
48073
48074         * lib/getaddrinfo.c (includes): Add missing include.
48075
48076 2006-10-23  Bruno Haible  <bruno@clisp.org>
48077             Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         Ability to rename obstack_free.
48080         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48081         obstack_free.
48082         (obstack_free): Invoke the __obstack_free macro.
48083         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48084
48085 2006-10-23  Bruno Haible  <bruno@clisp.org>
48086             Paul Eggert  <eggert@cs.ucla.edu>
48087
48088         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48089         __argc, __argv from the declaration. (They are defined as macros on
48090         mingw.)
48091
48092 2006-10-22  Bruno Haible  <bruno@clisp.org>
48093
48094         * doc/gnulib-intro.texi: New file.
48095         * doc/gnulib.texi: Include it.
48096
48097 2006-10-21  Bruno Haible  <bruno@clisp.org>
48098
48099         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48100         "Introduction", "Miscellanous Notes", "Particular Modules".
48101
48102 2006-10-21  Bruno Haible  <bruno@clisp.org>
48103
48104         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48105         Change mostlyclean-local rule to avoid sh syntax error from bash
48106         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48107
48108 2006-10-23  Jim Meyering  <jim@meyering.net>
48109
48110         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48111         in place of snprintf.
48112
48113         * modules/inttostr (Files): Add lib/uinttostr.c.
48114         * lib/uinttostr.c (inttostr): New file/function.
48115         * lib/inttostr.h (uinttostr): Declare.
48116         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48117         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48118         Add uinttostr.
48119         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48120
48121 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48122
48123         * lib/canonicalize.c (ELOOP): Define if not already defined.
48124         Problem reported by Bruno Haible in
48125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48126
48127 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48128
48129         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48130         Problem reported by Perry Smith and Ville Laurikari.
48131
48132         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48133         uses.
48134
48135 2006-10-19  Bruno Haible  <bruno@clisp.org>
48136
48137         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48138         for mingw.
48139
48140 2006-10-19  Bruno Haible  <bruno@clisp.org>
48141
48142         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48143         Needed for mingw.
48144
48145 2006-10-19  Bruno Haible  <bruno@clisp.org>
48146
48147         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48148
48149 2006-10-19  Bruno Haible  <bruno@clisp.org>
48150
48151         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48152         it.
48153
48154 2006-10-19  Bruno Haible  <bruno@clisp.org>
48155
48156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48157         invocation.
48158
48159 2006-10-19  Bruno Haible  <bruno@clisp.org>
48160
48161         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48162         mountlist by default.
48163
48164 2006-10-16  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/c-strstr.c: Include c-strstr.h.
48167
48168 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48169
48170         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48171         in a slash.
48172
48173 2006-10-18  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/lock.h [C++]: Wrap definitions in extern "C".
48176
48177 2006-10-18  Bruno Haible  <bruno@clisp.org>
48178
48179         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48180         gl_LIBOBJS list.
48181
48182 2006-10-18  Bruno Haible  <bruno@clisp.org>
48183
48184         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48185
48186 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         * lib/xstrtol.h: Include gettext.h.
48189         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48190         Problem reported by Eric Blake.
48191         * modules/xstrtol (Depends-on): Add gettext-h.
48192
48193 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48194
48195         * lib/strftime.c (advance): New macro.
48196         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48197         incomplete type, so you can't add 0 to it.  Problem and patch
48198         reported by Eelco Dolstra for dietlibc.
48199
48200 2006-10-18  Jim Meyering  <jim@meyering.net>
48201
48202         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48203         type for a local, and rename it: s/up/user_proc/.
48204
48205 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48206
48207         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48208         READ_UTMP_USER_PROCESS.
48209         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48210
48211 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48214         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48215
48216 2006-10-17  Eric Blake  <ebb9@byu.net>
48217
48218         * lib/sigprocmask.c (sigprocmask): Fix typo.
48219
48220         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48221
48222         * modules/clean-temp (Makefile.am): Don't add to make output...
48223         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48224         config.h.
48225
48226 2006-10-17  Bruno Haible  <bruno@clisp.org>
48227
48228         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48229         differently if DEFAULT_TEXT_DOMAIN is set.
48230
48231 2006-10-16  Bruno Haible  <bruno@clisp.org>
48232
48233         * lib/clean-temp.c: Include fwriteerror.h.
48234
48235 2006-10-16  Bruno Haible  <bruno@clisp.org>
48236
48237         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48238
48239 2006-10-16  Bruno Haible  <bruno@clisp.org>
48240
48241         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48242         * lib/sigprocmask.h: Include <sys/types.h>.
48243         (sigset_t): Use the system's definition if present.
48244
48245 2006-10-17  Eric Blake  <ebb9@byu.net>
48246
48247         * lib/xvasprintf.c (includes): Assume config.h.
48248         * lib/xasprintf.c (includes): Likewise.
48249
48250 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48251
48252         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48253         at least as wide as intmax_t.
48254
48255 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48256
48257         (Imported from Automake.)
48258         * build-aux/gnupload: Update to version 1.1 of directive file.
48259
48260 2006-10-16  Eric Blake  <ebb9@byu.net>
48261
48262         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48263         match Automake 1.10a.
48264
48265 2006-10-14  Bruno Haible  <bruno@clisp.org>
48266
48267         * modules/sigprocmask: New file.
48268         * lib/sigprocmask.h: New file.
48269         * lib/sigprocmask.c: New file.
48270         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48271         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48272         request sigprocmask.o.
48273         (gl_PREREQ_SIGPROCMASK): New macro.
48274         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48275         (Depends-on): Add sigprocmask.
48276         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48277         gt_SIGNALBLOCKING. Test for 'raise' only once.
48278         * lib/fatal-signal.c: Include sigprocmask.h.
48279         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48280         unblock_fatal_signals): Define always.
48281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48282         sigprocmask.
48283
48284 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48285
48286         Sync from Automake.
48287         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48288         which incorrectly sets the mode of an existing destination
48289         directory.  In some cases the unpatched install-sh could do the
48290         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48291         system.  We hope this is rare in practice, but it's clearly worth
48292         fixing.  Problem reported by Alex Unleashed in
48293         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48294         Also, don't bother to check for -m bugs unless we're using -m;
48295         suggested by Stepan Kasal.
48296
48297 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48298
48299         Sync from Automake.
48300         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48301         `-c' flag, so they appear at the same position as in %FASTDEP%
48302         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48303         which ignores unknown options only after the first non-option.
48304         Bug report against M4 by Nelson H. F. Beebe.
48305
48306 2006-10-13  Jim Meyering  <jim@meyering.net>
48307
48308         Fix a bug in yesterday's change.
48309         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48310         p->fts_statp->st_dev would be used uninitialized.
48311         Ensures that we always call fts_stat on the very first entry.
48312         Miklos Szeredi reported that find -xdev stopped working.
48313
48314 2006-10-12  Bruno Haible  <bruno@clisp.org>
48315
48316         * gnulib-tool (func_get_automake_snippet): Append an automatically
48317         computed EXTRA_DIST augmentation.
48318         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48319         * modules/alloca-opt (Makefile.am): Likewise.
48320         * modules/allocsa (Makefile.am): Likewise.
48321         * modules/arcfour (Makefile.am): Likewise.
48322         * modules/arctwo (Makefile.am): Likewise.
48323         * modules/argmatch (Makefile.am): Likewise.
48324         * modules/argz (Makefile.am): Likewise.
48325         * modules/atexit (Makefile.am): Likewise.
48326         * modules/backupfile (Makefile.am): Likewise.
48327         * modules/byteswap (Makefile.am): Likewise.
48328         * modules/c-strtod (Makefile.am): Likewise.
48329         * modules/c-strtold (Makefile.am): Likewise.
48330         * modules/calloc (Makefile.am): Likewise.
48331         * modules/canon-host (Makefile.am): Likewise.
48332         * modules/canonicalize (Makefile.am): Likewise.
48333         * modules/chdir-long (Makefile.am): Likewise.
48334         * modules/chdir-safer (Makefile.am): Likewise.
48335         * modules/check-version (Makefile.am): Likewise.
48336         * modules/chown (Makefile.am): Likewise.
48337         * modules/cloexec (Makefile.am): Likewise.
48338         * modules/close-stream (Makefile.am): Likewise.
48339         * modules/closeout (Makefile.am): Likewise.
48340         * modules/crc (Makefile.am): Likewise.
48341         * modules/csharpexec (Makefile.am): Likewise.
48342         * modules/cycle-check (Makefile.am): Likewise.
48343         * modules/des (Makefile.am): Likewise.
48344         * modules/dev-ino (Makefile.am): Likewise.
48345         * modules/dirfd (Makefile.am): Likewise.
48346         * modules/dirname (Makefile.am): Likewise.
48347         * modules/dup2 (Makefile.am): Likewise.
48348         * modules/eealloc (Makefile.am): Likewise.
48349         * modules/error (Makefile.am): Likewise.
48350         * modules/euidaccess (Makefile.am): Likewise.
48351         * modules/exclude (Makefile.am): Likewise.
48352         * modules/exitfail (Makefile.am): Likewise.
48353         * modules/fcntl-safer (Makefile.am): Likewise.
48354         * modules/fcntl (Makefile.am): Likewise.
48355         * modules/file-type (Makefile.am): Likewise.
48356         * modules/fileblocks (Makefile.am): Likewise.
48357         * modules/filemode (Makefile.am): Likewise.
48358         * modules/filenamecat (Makefile.am): Likewise.
48359         * modules/fnmatch (Makefile.am): Likewise.
48360         * modules/fopen-safer (Makefile.am): Likewise.
48361         * modules/fpending (Makefile.am): Likewise.
48362         * modules/fprintftime (Makefile.am): Likewise.
48363         * modules/free (Makefile.am): Likewise.
48364         * modules/fsusage (Makefile.am): Likewise.
48365         * modules/ftruncate (Makefile.am): Likewise.
48366         * modules/fts (Makefile.am): Likewise.
48367         * modules/gc-arcfour (Makefile.am): Likewise.
48368         * modules/gc-des (Makefile.am): Likewise.
48369         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48370         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48371         * modules/gc-md4 (Makefile.am): Likewise.
48372         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48373         * modules/gc-sha1 (Makefile.am): Likewise.
48374         * modules/gc (Makefile.am): Likewise.
48375         * modules/getaddrinfo (Makefile.am): Likewise.
48376         * modules/getcwd (Makefile.am): Likewise.
48377         * modules/getdelim (Makefile.am): Likewise.
48378         * modules/getdomainname (Makefile.am): Likewise.
48379         * modules/getgroups (Makefile.am): Likewise.
48380         * modules/gethostname (Makefile.am): Likewise.
48381         * modules/gethrxtime (Makefile.am): Likewise.
48382         * modules/getline (Makefile.am): Likewise.
48383         * modules/getloadavg (Makefile.am): Likewise.
48384         * modules/getlogin_r (Makefile.am): Likewise.
48385         * modules/getndelim2 (Makefile.am): Likewise.
48386         * modules/getopt (Makefile.am): Likewise.
48387         * modules/getpagesize (Makefile.am): Likewise.
48388         * modules/getpass-gnu (Makefile.am): Likewise.
48389         * modules/getpass (Makefile.am): Likewise.
48390         * modules/getsubopt (Makefile.am): Likewise.
48391         * modules/gettime (Makefile.am): Likewise.
48392         * modules/gettimeofday (Makefile.am): Likewise.
48393         * modules/getugroups (Makefile.am): Likewise.
48394         * modules/getusershell (Makefile.am): Likewise.
48395         * modules/glob (Makefile.am): Likewise.
48396         * modules/group-member (Makefile.am): Likewise.
48397         * modules/hard-locale (Makefile.am): Likewise.
48398         * modules/hash (Makefile.am): Likewise.
48399         * modules/hmac-md5 (Makefile.am): Likewise.
48400         * modules/hmac-sha1 (Makefile.am): Likewise.
48401         * modules/human (Makefile.am): Likewise.
48402         * modules/idcache (Makefile.am): Likewise.
48403         * modules/imaxabs (Makefile.am): Likewise.
48404         * modules/imaxdiv (Makefile.am): Likewise.
48405         * modules/inet_ntop (Makefile.am): Likewise.
48406         * modules/inet_pton (Makefile.am): Likewise.
48407         * modules/intprops (Makefile.am): Likewise.
48408         * modules/inttostr (Makefile.am): Likewise.
48409         * modules/inttypes (Makefile.am): Likewise.
48410         * modules/isapipe (Makefile.am): Likewise.
48411         * modules/javaversion (Makefile.am): Likewise.
48412         * modules/lchmod (Makefile.am): Likewise.
48413         * modules/lchown (Makefile.am): Likewise.
48414         * modules/localcharset (Makefile.am): Likewise.
48415         * modules/long-options (Makefile.am): Likewise.
48416         * modules/lstat (Makefile.am): Likewise.
48417         * modules/malloc (Makefile.am): Likewise.
48418         * modules/mathl (Makefile.am): Likewise.
48419         * modules/mbchar (Makefile.am): Likewise.
48420         * modules/md2 (Makefile.am): Likewise.
48421         * modules/md4 (Makefile.am): Likewise.
48422         * modules/md5 (Makefile.am): Likewise.
48423         * modules/memcasecmp (Makefile.am): Likewise.
48424         * modules/memchr (Makefile.am): Likewise.
48425         * modules/memcmp (Makefile.am): Likewise.
48426         * modules/memcoll (Makefile.am): Likewise.
48427         * modules/memcpy (Makefile.am): Likewise.
48428         * modules/memmem (Makefile.am): Likewise.
48429         * modules/memmove (Makefile.am): Likewise.
48430         * modules/mempcpy (Makefile.am): Likewise.
48431         * modules/memrchr (Makefile.am): Likewise.
48432         * modules/memset (Makefile.am): Likewise.
48433         * modules/memxor (Makefile.am): Likewise.
48434         * modules/mkancesdirs (Makefile.am): Likewise.
48435         * modules/mkdir-p (Makefile.am): Likewise.
48436         * modules/mkdir (Makefile.am): Likewise.
48437         * modules/mkdtemp (Makefile.am): Likewise.
48438         * modules/mkstemp (Makefile.am): Likewise.
48439         * modules/mktime (Makefile.am): Likewise.
48440         * modules/modechange (Makefile.am): Likewise.
48441         * modules/mountlist (Makefile.am): Likewise.
48442         * modules/nanosleep (Makefile.am): Likewise.
48443         * modules/obstack (Makefile.am): Likewise.
48444         * modules/openat (Makefile.am): Likewise.
48445         * modules/pagealign_alloc (Makefile.am): Likewise.
48446         * modules/pathmax (Makefile.am): Likewise.
48447         * modules/physmem (Makefile.am): Likewise.
48448         * modules/poll (Makefile.am): Likewise.
48449         * modules/posixtm (Makefile.am): Likewise.
48450         * modules/posixver (Makefile.am): Likewise.
48451         * modules/putenv (Makefile.am): Likewise.
48452         * modules/quote (Makefile.am): Likewise.
48453         * modules/quotearg (Makefile.am): Likewise.
48454         * modules/raise (Makefile.am): Likewise.
48455         * modules/read-file (Makefile.am): Likewise.
48456         * modules/readline (Makefile.am): Likewise.
48457         * modules/readlink (Makefile.am): Likewise.
48458         * modules/readtokens (Makefile.am): Likewise.
48459         * modules/readutmp (Makefile.am): Likewise.
48460         * modules/realloc (Makefile.am): Likewise.
48461         * modules/regex (Makefile.am): Likewise.
48462         * modules/rename-dest-slash (Makefile.am): Likewise.
48463         * modules/rename (Makefile.am): Likewise.
48464         * modules/rijndael (Makefile.am): Likewise.
48465         * modules/rmdir (Makefile.am): Likewise.
48466         * modules/rpmatch (Makefile.am): Likewise.
48467         * modules/safe-read (Makefile.am): Likewise.
48468         * modules/safe-write (Makefile.am): Likewise.
48469         * modules/same-inode (Makefile.am): Likewise.
48470         * modules/same (Makefile.am): Likewise.
48471         * modules/save-cwd (Makefile.am): Likewise.
48472         * modules/savedir (Makefile.am): Likewise.
48473         * modules/setenv (Makefile.am): Likewise.
48474         * modules/settime (Makefile.am): Likewise.
48475         * modules/sha1 (Makefile.am): Likewise.
48476         * modules/sig2str (Makefile.am): Likewise.
48477         * modules/snprintf (Makefile.am): Likewise.
48478         * modules/stat-macros (Makefile.am): Likewise.
48479         * modules/stat-time (Makefile.am): Likewise.
48480         * modules/stdbool (Makefile.am): Likewise.
48481         * modules/stdint (Makefile.am): Likewise.
48482         * modules/stdlib-safer (Makefile.am): Likewise.
48483         * modules/stpcpy (Makefile.am): Likewise.
48484         * modules/stpncpy (Makefile.am): Likewise.
48485         * modules/strcase (Makefile.am): Likewise.
48486         * modules/strcasestr (Makefile.am): Likewise.
48487         * modules/strchrnul (Makefile.am): Likewise.
48488         * modules/strcspn (Makefile.am): Likewise.
48489         * modules/strdup (Makefile.am): Likewise.
48490         * modules/strerror (Makefile.am): Likewise.
48491         * modules/strftime (Makefile.am): Likewise.
48492         * modules/strndup (Makefile.am): Likewise.
48493         * modules/strnlen (Makefile.am): Likewise.
48494         * modules/strpbrk (Makefile.am): Likewise.
48495         * modules/strsep (Makefile.am): Likewise.
48496         * modules/strstr (Makefile.am): Likewise.
48497         * modules/strtod (Makefile.am): Likewise.
48498         * modules/strtoimax (Makefile.am): Likewise.
48499         * modules/strtok_r (Makefile.am): Likewise.
48500         * modules/strtol (Makefile.am): Likewise.
48501         * modules/strtoll (Makefile.am): Likewise.
48502         * modules/strtoul (Makefile.am): Likewise.
48503         * modules/strtoull (Makefile.am): Likewise.
48504         * modules/strtoumax (Makefile.am): Likewise.
48505         * modules/strverscmp (Makefile.am): Likewise.
48506         * modules/sys_socket (Makefile.am): Likewise.
48507         * modules/sys_stat (Makefile.am): Likewise.
48508         * modules/sysexits (Makefile.am): Likewise.
48509         * modules/time_r (Makefile.am): Likewise.
48510         * modules/timegm (Makefile.am): Likewise.
48511         * modules/timespec (Makefile.am): Likewise.
48512         * modules/tmpfile-safer (Makefile.am): Likewise.
48513         * modules/trim (Makefile.am): Likewise.
48514         * modules/unistd-safer (Makefile.am): Likewise.
48515         * modules/unlinkdir (Makefile.am): Likewise.
48516         * modules/unlocked-io (Makefile.am): Likewise.
48517         * modules/userspec (Makefile.am): Likewise.
48518         * modules/utime (Makefile.am): Likewise.
48519         * modules/utimecmp (Makefile.am): Likewise.
48520         * modules/utimens (Makefile.am): Likewise.
48521         * modules/vasnprintf (Makefile.am): Likewise.
48522         * modules/vasprintf (Makefile.am): Likewise.
48523         * modules/vsnprintf (Makefile.am): Likewise.
48524         * modules/xalloc (Makefile.am): Likewise.
48525         * modules/xgetcwd (Makefile.am): Likewise.
48526         * modules/xnanosleep (Makefile.am): Likewise.
48527         * modules/xreadlink (Makefile.am): Likewise.
48528         * modules/xstrtod (Makefile.am): Likewise.
48529         * modules/xstrtol (Makefile.am): Likewise.
48530         * modules/xstrtold (Makefile.am): Likewise.
48531         * modules/yesno (Makefile.am): Likewise.
48532         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48533
48534 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48535
48536         * modules/error (Makefile.am): Distribute files through
48537         EXTRA_DIST, not lib_SOURCES.
48538
48539 2006-10-12  Eric Blake  <ebb9@byu.net>
48540
48541         * modules/error (Makefile.am): Distribute files in /lib.
48542         * modules/obstack (Makefile.am): Likewise.
48543
48544 2006-10-12  Bruno Haible  <bruno@clisp.org>
48545
48546         * modules/acl (Makefile.am): Distribute all files in lib/ through
48547         EXTRA_DIST.
48548         * modules/arcfour (Makefile.am): Likewise.
48549         * modules/arctwo (Makefile.am): Likewise.
48550         * modules/argmatch (Makefile.am): Likewise.
48551         * modules/argz (Makefile.am): Likewise.
48552         * modules/atexit (Makefile.am): Likewise.
48553         * modules/backupfile (Makefile.am): Likewise.
48554         * modules/c-strtod (Makefile.am): Likewise.
48555         * modules/c-strtold (Makefile.am): Likewise.
48556         * modules/calloc (Makefile.am): Likewise.
48557         * modules/canon-host (Makefile.am): Likewise.
48558         * modules/canonicalize (Makefile.am): Likewise.
48559         * modules/chdir-long (Makefile.am): Likewise.
48560         * modules/chdir-safer (Makefile.am): Likewise.
48561         * modules/check-version (Makefile.am): Likewise.
48562         * modules/chown (Makefile.am): Likewise.
48563         * modules/cloexec (Makefile.am): Likewise.
48564         * modules/close-stream (Makefile.am): Likewise.
48565         * modules/closeout (Makefile.am): Likewise.
48566         * modules/crc (Makefile.am): Likewise.
48567         * modules/cycle-check (Makefile.am): Likewise.
48568         * modules/des (Makefile.am): Likewise.
48569         * modules/dirfd (Makefile.am): Likewise.
48570         * modules/dirname (Makefile.am): Likewise.
48571         * modules/dup2 (Makefile.am): Likewise.
48572         * modules/euidaccess (Makefile.am): Likewise.
48573         * modules/exclude (Makefile.am): Likewise.
48574         * modules/exitfail (Makefile.am): Likewise.
48575         * modules/fcntl-safer (Makefile.am): Likewise.
48576         * modules/file-type (Makefile.am): Likewise.
48577         * modules/fileblocks (Makefile.am): Likewise.
48578         * modules/filemode (Makefile.am): Likewise.
48579         * modules/filenamecat (Makefile.am): Likewise.
48580         * modules/fnmatch (Makefile.am): Likewise.
48581         * modules/fopen-safer (Makefile.am): Likewise.
48582         * modules/fpending (Makefile.am): Likewise.
48583         * modules/fprintftime (Makefile.am): Likewise.
48584         * modules/free (Makefile.am): Likewise.
48585         * modules/fsusage (Makefile.am): Likewise.
48586         * modules/ftruncate (Makefile.am): Likewise.
48587         * modules/fts (Makefile.am): Likewise.
48588         * modules/gc (Makefile.am): Likewise.
48589         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48590         * modules/getaddrinfo (Makefile.am): Likewise.
48591         * modules/getcwd (Makefile.am): Likewise.
48592         * modules/getdelim (Makefile.am): Likewise.
48593         * modules/getdomainname (Makefile.am): Likewise.
48594         * modules/getgroups (Makefile.am): Likewise.
48595         * modules/gethostname (Makefile.am): Likewise.
48596         * modules/gethrxtime (Makefile.am): Likewise.
48597         * modules/getline (Makefile.am): Likewise.
48598         * modules/getloadavg (Makefile.am): Likewise.
48599         * modules/getlogin_r (Makefile.am): Likewise.
48600         * modules/getopt (Makefile.am): Likewise.
48601         * modules/getpass (Makefile.am): Likewise.
48602         * modules/getpass-gnu (Makefile.am): Likewise.
48603         * modules/getsubopt (Makefile.am): Likewise.
48604         * modules/gettime (Makefile.am): Likewise.
48605         * modules/gettimeofday (Makefile.am): Likewise.
48606         * modules/getugroups (Makefile.am): Likewise.
48607         * modules/getusershell (Makefile.am): Likewise.
48608         * modules/glob (Makefile.am): Likewise.
48609         * modules/group-member (Makefile.am): Likewise.
48610         * modules/hard-locale (Makefile.am): Likewise.
48611         * modules/hash (Makefile.am): Likewise.
48612         * modules/hmac-md5 (Makefile.am): Likewise.
48613         * modules/hmac-sha1 (Makefile.am): Likewise.
48614         * modules/human (Makefile.am): Likewise.
48615         * modules/idcache (Makefile.am): Likewise.
48616         * modules/imaxabs (Makefile.am): Likewise.
48617         * modules/imaxdiv (Makefile.am): Likewise.
48618         * modules/inet_ntop (Makefile.am): Likewise.
48619         * modules/inet_pton (Makefile.am): Likewise.
48620         * modules/inttostr (Makefile.am): Likewise.
48621         * modules/isapipe (Makefile.am): Likewise.
48622         * modules/lchown (Makefile.am): Likewise.
48623         * modules/long-options (Makefile.am): Likewise.
48624         * modules/lstat (Makefile.am): Likewise.
48625         * modules/malloc (Makefile.am): Likewise.
48626         * modules/mathl (Makefile.am): Likewise.
48627         * modules/mbchar (Makefile.am): Likewise.
48628         * modules/md2 (Makefile.am): Likewise.
48629         * modules/md4 (Makefile.am): Likewise.
48630         * modules/md5 (Makefile.am): Likewise.
48631         * modules/memcasecmp (Makefile.am): Likewise.
48632         * modules/memchr (Makefile.am): Likewise.
48633         * modules/memcmp (Makefile.am): Likewise.
48634         * modules/memcoll (Makefile.am): Likewise.
48635         * modules/memcpy (Makefile.am): Likewise.
48636         * modules/memmem (Makefile.am): Likewise.
48637         * modules/memmove (Makefile.am): Likewise.
48638         * modules/mempcpy (Makefile.am): Likewise.
48639         * modules/memrchr (Makefile.am): Likewise.
48640         * modules/memset (Makefile.am): Likewise.
48641         * modules/memxor (Makefile.am): Likewise.
48642         * modules/mkancesdirs (Makefile.am): Likewise.
48643         * modules/mkdir (Makefile.am): Likewise.
48644         * modules/mkdir-p (Makefile.am): Likewise.
48645         * modules/mkdtemp (Makefile.am): Likewise.
48646         * modules/mkstemp (Makefile.am): Likewise.
48647         * modules/mktime (Makefile.am): Likewise.
48648         * modules/modechange (Makefile.am): Likewise.
48649         * modules/mountlist (Makefile.am): Likewise.
48650         * modules/nanosleep (Makefile.am): Likewise.
48651         * modules/openat (Makefile.am): Likewise.
48652         * modules/pagealign_alloc (Makefile.am): Likewise.
48653         * modules/physmem (Makefile.am): Likewise.
48654         * modules/poll (Makefile.am): Likewise.
48655         * modules/posixtm (Makefile.am): Likewise.
48656         * modules/posixver (Makefile.am): Likewise.
48657         * modules/putenv (Makefile.am): Likewise.
48658         * modules/quote (Makefile.am): Likewise.
48659         * modules/quotearg (Makefile.am): Likewise.
48660         * modules/raise (Makefile.am): Likewise.
48661         * modules/read-file (Makefile.am): Likewise.
48662         * modules/readline (Makefile.am): Likewise.
48663         * modules/readlink (Makefile.am): Likewise.
48664         * modules/readtokens (Makefile.am): Likewise.
48665         * modules/readutmp (Makefile.am): Likewise.
48666         * modules/realloc (Makefile.am): Likewise.
48667         * modules/regex (Makefile.am): Likewise.
48668         * modules/rename (Makefile.am): Likewise.
48669         * modules/rename-dest-slash (Makefile.am): Likewise.
48670         * modules/rijndael (Makefile.am): Likewise.
48671         * modules/rmdir (Makefile.am): Likewise.
48672         * modules/rpmatch (Makefile.am): Likewise.
48673         * modules/safe-read (Makefile.am): Likewise.
48674         * modules/safe-write (Makefile.am): Likewise.
48675         * modules/same (Makefile.am): Likewise.
48676         * modules/save-cwd (Makefile.am): Likewise.
48677         * modules/savedir (Makefile.am): Likewise.
48678         * modules/setenv (Makefile.am): Likewise.
48679         * modules/settime (Makefile.am): Likewise.
48680         * modules/sha1 (Makefile.am): Likewise.
48681         * modules/sig2str (Makefile.am): Likewise.
48682         * modules/snprintf (Makefile.am): Likewise.
48683         * modules/stdlib-safer (Makefile.am): Likewise.
48684         * modules/stpcpy (Makefile.am): Likewise.
48685         * modules/stpncpy (Makefile.am): Likewise.
48686         * modules/strcase (Makefile.am): Likewise.
48687         * modules/strcasestr (Makefile.am): Likewise.
48688         * modules/strchrnul (Makefile.am): Likewise.
48689         * modules/strcspn (Makefile.am): Likewise.
48690         * modules/strdup (Makefile.am): Likewise.
48691         * modules/strerror (Makefile.am): Likewise.
48692         * modules/strftime (Makefile.am): Likewise.
48693         * modules/strndup (Makefile.am): Likewise.
48694         * modules/strnlen (Makefile.am): Likewise.
48695         * modules/strpbrk (Makefile.am): Likewise.
48696         * modules/strsep (Makefile.am): Likewise.
48697         * modules/strstr (Makefile.am): Likewise.
48698         * modules/strtod (Makefile.am): Likewise.
48699         * modules/strtoimax (Makefile.am): Likewise.
48700         * modules/strtok_r (Makefile.am): Likewise.
48701         * modules/strtol (Makefile.am): Likewise.
48702         * modules/strtoll (Makefile.am): Likewise.
48703         * modules/strtoul (Makefile.am): Likewise.
48704         * modules/strtoull (Makefile.am): Likewise.
48705         * modules/strtoumax (Makefile.am): Likewise.
48706         * modules/strverscmp (Makefile.am): Likewise.
48707         * modules/time_r (Makefile.am): Likewise.
48708         * modules/timegm (Makefile.am): Likewise.
48709         * modules/tmpfile-safer (Makefile.am): Likewise.
48710         * modules/unistd-safer (Makefile.am): Likewise.
48711         * modules/unlinkdir (Makefile.am): Likewise.
48712         * modules/userspec (Makefile.am): Likewise.
48713         * modules/utime (Makefile.am): Likewise.
48714         * modules/utimecmp (Makefile.am): Likewise.
48715         * modules/utimens (Makefile.am): Likewise.
48716         * modules/vasnprintf (Makefile.am): Likewise.
48717         * modules/vasprintf (Makefile.am): Likewise.
48718         * modules/vsnprintf (Makefile.am): Likewise.
48719         * modules/xalloc (Makefile.am): Likewise.
48720         * modules/xgetcwd (Makefile.am): Likewise.
48721         * modules/xnanosleep (Makefile.am): Likewise.
48722         * modules/xreadlink (Makefile.am): Likewise.
48723         * modules/xstrtod (Makefile.am): Likewise.
48724         * modules/xstrtol (Makefile.am): Likewise.
48725         * modules/xstrtold (Makefile.am): Likewise.
48726         * modules/yesno (Makefile.am): Likewise.
48727
48728 2006-10-12  Jim Meyering  <jim@meyering.net>
48729
48730         * m4/getloadavg.m4: Revert the change below.
48731
48732         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48733         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48734         fail with a symlink, which is what coreutils' ./bootstrap now
48735         creates by default.
48736
48737 2006-10-12  Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48740         mingw.
48741         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48742         MSVC and mingw explicitly.
48743
48744 2006-10-11  Simon Josefsson  <jas@extundo.com>
48745             Bruno Haible  <bruno@clisp.org>
48746
48747         Add support for multiple gnulib-tool invocations in the scope of a
48748         single configure.ac file.
48749         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48750         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48751         with the same contents as the _LIBADD variable.
48752         (func_emit_initmacro_start, func_emit_initmacro_end,
48753         func_emit_initmacro_done): New functions.
48754         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48755         gl_LIBOBJS and gl_LTLIBOBJS.
48756
48757 2006-10-11  Bruno Haible  <bruno@clisp.org>
48758
48759         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48760         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48761         autoreconf. Instead, invoke autopoint explicitly but move back the
48762         *.m4 files from gnulib.
48763
48764 2006-10-11  Bruno Haible  <bruno@clisp.org>
48765
48766         * gnulib-tool (func_usage): Make module names after --create-testdir
48767         optional.
48768         (func_create_testdir): If no module was specified, use nearly all
48769         modules.
48770
48771 2006-10-12  Jim Meyering  <jim@meyering.net>
48772
48773         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48774         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48775         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48776         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48777         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48778         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48779         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48780         (fts_set_stat_required): New function.
48781         (fts_open): Defer the calls to fts_stat, if possible or requested.
48782         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48783         into fts_stat itself.
48784         (fts_read): Perform any required (deferred) fts_stat call.
48785         (fts_build): Likewise, for the directory we're about to open and read.
48786         In the readdir loop, carefully decide whether each entry will require
48787         an eventual call to fts_stat, using dirent.d_type info if available.
48788         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48789         a command line argument into this function.  Update all callers.
48790         Map a return value of FTS_DOT to FTS_D for a command line argument.
48791         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48792         Thanks to Miklos Szeredi for his tenacity and for the initial
48793         bug report about "find" failing on a FUSE-based file system.
48794
48795         * lib/fts.c (fts_open): Use consistent indentation.
48796
48797 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48798
48799         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48800         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48801         reported by Jim Meyering.  All uses of cache variables renamed
48802         to match Autoconf's.
48803         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48804         the other one.
48805
48806         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48807         Fix misspelling in diagnostic.
48808
48809 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48810
48811         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48812         defined.  Problem reported by Matthew Woehlke.
48813
48814         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48815         Add support for Tandem NonStop R series.
48816         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48817         Use new macro.
48818
48819         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48820         (has_trailing_slash): Omit size arg; all callers changed.
48821         Omit 'inline', since it doesn't help performance and we'd
48822         need to configure it.
48823         Don't count //, ///, etc. as having a trailing slash.
48824         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48825         (rpl_rename_dest_slash): On failure, use rename's errno rather
48826         than (in some cases) an incorrect or junk errno.
48827         Simplify code by removing need to compute length; this does
48828         cause it to make two passes instead of one over the file name,
48829         but it's worth it.
48830
48831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48832         change, since Autoconf's version may no longer be appropriate now
48833         that we are using CVS Autoconf's version.  Add support for Tandem.
48834
48835 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48836             Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48839         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48840         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48841         gl_AC_TYPE_LONG_LONG.
48842
48843         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48844         instead of HAVE_LONG_LONG.
48845         * lib/printf-args.c (printf_fetchargs): Likewise.
48846         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48847         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48848         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48849         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48850         gl_AC_TYPE_LONG_LONG.
48851
48852 2006-10-11  Bruno Haible  <bruno@clisp.org>
48853
48854         * m4/longlong.m4: Add comments.
48855         * m4/ulonglong.m4: Likewise.
48856
48857 2006-10-10  Bruno Haible  <bruno@clisp.org>
48858
48859         Make it possible to #define stpcpy, strdup to aliases.
48860         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48861         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48862
48863 2006-10-10  Bruno Haible  <bruno@clisp.org>
48864
48865         Make it possible to #define gcd to an alias.
48866         * lib/gcd.c: Include config.h.
48867
48868 2006-10-10  Bruno Haible  <bruno@clisp.org>
48869
48870         Make it possible to #define c_isascii to an alias.
48871         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48872         defined. Undefine the macros before defining them, to avoid gcc
48873         warnings.
48874         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48875         define NO_C_CTYPE_MACROS early.
48876
48877 2006-10-10  Bruno Haible  <bruno@clisp.org>
48878
48879         Make it possible to #define set_program_name to an alias.
48880         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48881         ENABLE_RELOCATABLE early.
48882
48883 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48884
48885         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48886         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48887         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48888         More generally, don't assume that 64-bit signed int is available
48889         if unsigned int is, and vice versa.
48890         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48891         unsigned symbols, not on their signed counterparts.
48892         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48893         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48894         (UINT64_C, UINTMAX_C):
48895         Likewise.
48896         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48897         unsigned counterparts.
48898         (Have_long_long, Unsigned): New macros.
48899         (Int): Renamed from INT.
48900         (strtoimax): Use the new macros.
48901         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48902         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48903         * modules/inttypes (inttypes.h): Substitute
48904         HAVE_UNSIGNED_LONG_LONG_INT.
48905         * modules/stdint (stdint.h): Likewise.
48906         (Files): Add m4/ulonglong.m4.
48907
48908 2006-10-10  Bruno Haible  <bruno@clisp.org>
48909
48910         Fix a gcc -Wshadow warning.
48911         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48912         to 'bucket'.
48913         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48914         gl_linked_indexof_from_to): Likewise.
48915         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48916         Likewise.
48917         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48918         Likewise.
48919         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48920         Reported by Eric Blake.
48921
48922 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48923
48924         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48925         for NetBSD.  Problem reported by Bruno Haible.
48926
48927 2006-10-09  Jim Meyering  <jim@meyering.net>
48928
48929         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48930         Patch from Bruno Haible.
48931
48932 2006-10-09  Jim Meyering  <jim@meyering.net>
48933
48934         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48935         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
48936         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
48937
48938 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48939
48940         Don't include <config.h> twice; this doesn't work in some cases,
48941         e.g., when config.h has "#define intmax_t long long int" and
48942         we include <config.h>, <inttypes.h>, <config.h> in that order.
48943         Problem reported by Matthew Woehlke in:
48944         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
48945         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
48946         * lib/fts-cycle.c: Don't include config.h.
48947         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
48948         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
48949         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
48950         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
48951         inttypes.h.
48952         * lib/xstrtoumax.c: Likewise.
48953         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
48954         __strtol and the like, so that this module is more like its siblings.
48955         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
48956         Remove; no longer needed now that we assume gnulib inttypes.h.
48957
48958 2006-10-08  Bruno Haible  <bruno@clisp.org>
48959
48960         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
48961         option.
48962
48963 2006-10-07  Jim Meyering  <jim@meyering.net>
48964
48965         * modules/inttypes (inttypes.h): Revert what seems to have been
48966         an inadvertent part of today's change: use "|", not "/" in the
48967         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
48968
48969 2006-10-07  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/sublist: New file.
48972
48973 2006-10-07  Bruno Haible  <bruno@clisp.org>
48974
48975         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
48976         * modules/argz (argz.h): Likewise.
48977         * modules/arpa_inet (arpa/inet.h): Likewise.
48978         * modules/byteswap (byteswap.h): Likewise.
48979         * modules/configmake (configmake.h): Likewise.
48980         * modules/fcntl (fcntl.h): Likewise.
48981         * modules/fnmatch (fnmatch.h): Likewise.
48982         * modules/getopt (getopt.h): Likewise.
48983         * modules/glob (glob.h): Likewise.
48984         * modules/inttypes (inttypes.h): Likewise.
48985         * modules/netinet_in (netinet/in.h): Likewise.
48986         * modules/poll (poll.h): Likewise.
48987         * modules/stdbool (stdbool.h): Likewise.
48988         * modules/stdint (stdint.h): Likewise.
48989         * modules/sys_select (sys/select.h): Likewise.
48990         * modules/sys_socket (sys/socket.h): Likewise.
48991         * modules/sys_stat (sys/stat.h): Likewise.
48992         * modules/sysexits (sysexits.h): Likewise.
48993         * modules/unistd (unistd.h): Likewise.
48994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48995         Add a "DO NOT EDIT" comment to the generated file.
48996         (func_import): Likewise for gnulib-comp.m4.
48997
48998 2006-10-07  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/gl_sublist.h: New file.
49001         * lib/gl_sublist.c: New file.
49002
49003 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49004
49005         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49006         name (relative to the original working directory) and the file
49007         name component (relative to the temporary working directory).  All
49008         callers changed.
49009         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49010         * lib/mkdir-p.c (make_dir_parents): Likewise.
49011         * lib/mkdir-p.h (make_dir_parents): Likewise.
49012
49013 2006-10-06  Eric Blake  <ebb9@byu.net>
49014
49015         Define several macros for use by the clean-temp module.
49016         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49017         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49018         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49019
49020         * lib/clean-temp.h (close_stream_temp): New declaration.
49021         * lib/clean-temp.c (includes): Pull in headers according to what
49022         other modules are in use.
49023         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49024
49025 2006-10-06  Bruno Haible  <bruno@clisp.org>
49026
49027         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49028         instead of fopen, fwriteerror.
49029
49030 2006-10-06  Bruno Haible  <bruno@clisp.org>
49031
49032         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49033         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49034         int.
49035         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49036         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49037         Return an error indicator.
49038         Suggested by Eric Blake.
49039
49040 2006-10-06  Bruno Haible  <bruno@clisp.org>
49041
49042         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49043         Reported by Eric Blake.
49044
49045 2006-10-06  Bruno Haible  <bruno@clisp.org>
49046
49047         * modules/closeout (Description): Mention stderr too.
49048
49049 2006-10-06  Bruno Haible  <bruno@clisp.org>
49050         and Paul Eggert  <eggert@cs.ucla.edu>
49051
49052         * lib/closeout.c (close_stdout): Also close stderr.
49053         * lib/closeout.h: Update comment.
49054
49055 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49056
49057         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49058         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49059         * lib/dirchownmod.c: Include lchown.h.
49060         * lib/lchown.c: Don't include files that lchown.h now includes.
49061         Don't declare chown, since lchown.h now does that.
49062         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49063         (lchown): Define to rpl_chown if lchown is declared but
49064         does not exist.  Declare using a prototype if lchown is not
49065         declared.  Add a copyright notice.
49066         * lib/mkstemp.h: Include <unistd.h>.
49067         * lib/openat.c: Include lchown.h.
49068
49069         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49070         we now test for that separately.
49071         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49072         rather than O_NOFOLLOW, when testing whether it's possible to
49073         avoid a race condition reliably.
49074         * lib/savewd.c (savewd_chdir): Likewise.
49075
49076         Remove macros that are no longer needed now that stdint.h is
49077         reliable.
49078         * lib/fsusage.c (UINTMAX_MAX): Remove.
49079         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49080         * lib/utimecmp.c (SIZE_MAX): Remove.
49081
49082         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49083
49084         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49085         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49086         O_NOATIME works.
49087
49088 2006-10-05  Bruno Haible  <bruno@clisp.org>
49089
49090         * lib/gl_list.h (gl_sortedlist_search_from_to,
49091         gl_sortedlist_indexof_from_to): New declarations.
49092         (gl_list_implementation): New fields sortedlist_search_from_to,
49093         sortedlist_indexof_from_to.
49094         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49095         inline functions.
49096         * lib/gl_list.c (gl_sortedlist_search_from_to,
49097         gl_sortedlist_indexof_from_to): New functions.
49098         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49099         function.
49100         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49101         (gl_array_sortedlist_search_from_to): New function.
49102         (gl_array_list_implementation): Update.
49103         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49104         function.
49105         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49106         (gl_carray_sortedlist_search_from_to): New function.
49107         (gl_carray_list_implementation): Update.
49108         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49109         gl_linked_sortedlist_indexof_from_to): New functions.
49110         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49111         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49112         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49113         gl_tree_sortedlist_indexof_from_to): New functions.
49114         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49115         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49116         Update.
49117         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49118         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49119         Update.
49120
49121 2006-10-05  Bruno Haible  <bruno@clisp.org>
49122
49123         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49124         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49125         (struct gl_list_implementation): Add fields search_from_to,
49126         indexof_from_to. Remove fields search, indexof.
49127         (gl_list_search): Use the search_from_to method.
49128         (gl_list_search_from, gl_list_search_from_to): New functions.
49129         (gl_list_indexof): Use the indexof_from_to method.
49130         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49131         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49132         (gl_list_search_from, gl_list_search_from_to): New functions.
49133         (gl_list_indexof): Use the indexof_from_to method.
49134         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49135         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49136         gl_array_indexof. Add start_index, end_index arguments.
49137         (gl_array_search_from_to): Renamed from gl_array_search. Add
49138         start_index, end_index arguments.
49139         (gl_array_remove, gl_array_list_implementation): Update.
49140         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49141         gl_carray_indexof. Add start_index, end_index arguments.
49142         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49143         start_index, end_index arguments.
49144         (gl_carray_remove, gl_carray_list_implementation): Update.
49145         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49146         gl_linked_search. Add start_index, end_index arguments.
49147         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49148         start_index, end_index arguments.
49149         (gl_linked_remove): Update.
49150         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49151         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49152         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49153         field to 'size_t'.
49154         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49155         gl_tree_search. Add start_index, end_index arguments.
49156         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49157         start_index, end_index arguments.
49158         (gl_tree_remove): Update.
49159         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49160         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49161         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49162         function.
49163         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49164         gl_tree_search. Add start_index, end_index arguments.
49165         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49166         start_index, end_index arguments.
49167         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49168         Update.
49169         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49170
49171 2006-10-05  Bruno Haible  <bruno@clisp.org>
49172
49173         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49174
49175         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49176         fwriteerror_temp): New declarations.
49177         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49178         (descriptors): New variable.
49179         (cleanup): First, close the descriptors.
49180         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49181         fclose_temp, fwriteerror_temp): New functions.
49182
49183 2006-10-04  Jim Meyering  <jim@meyering.net>
49184
49185         * lib/fts.c (fts_open): Tiny comment change.
49186
49187 2006-10-04  Bruno Haible  <bruno@clisp.org>
49188
49189         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49190         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49191         gl_LOCK_BODY.
49192         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49193         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49194         gl_LOCK_EARLY_BODY.
49195         (gl_LOCK): Require gl_LOCK_BODY.
49196
49197 2006-10-04  Bruno Haible  <bruno@clisp.org>
49198
49199         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49200         (gl_oset_search_atleast): New declaration.
49201         (struct gl_oset_implementation): Add field 'search_atleast'.
49202         (gl_oset_search_atleast): New inline function.
49203         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49204         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49205         (gl_array_oset_implementation): Update.
49206         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49207         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49208         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49209
49210 2006-10-04  Bruno Haible  <bruno@clisp.org>
49211
49212         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49213
49214 2006-10-03  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49217         from gl_avltreehash_list_implementation.
49218
49219 2006-10-03  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/gl_oset.c (gl_oset_add): Fix return type.
49222
49223 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49224
49225         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49226
49227 2006-10-02  Eric Blake  <ebb9@byu.net>
49228
49229         * modules/strnlen (Depends-on): Add extensions.
49230
49231 2006-10-02  Eric Blake  <ebb9@byu.net>
49232
49233         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49234         definition in 2.60+.
49235
49236 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49237
49238         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49239         checks.
49240
49241 2006-10-02  Bruno Haible  <bruno@clisp.org>
49242
49243         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49244         to the AUTOMAKE_OPTIONS.
49245         Reported by Jim Meyering.
49246
49247 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49248
49249         Work around bug in Solaris 10 /proc file system:
49250         /proc/self/fd/NNN/.. isn't the parent directory of
49251         the directory whose file descriptor is NNN.  This needs to
49252         be worked around at run time, not compile time, since a
49253         program might be built on Solaris 8, where things work, and
49254         run on Solaris 10.
49255         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49256         to use the following interface instead:
49257         (OPENAT_BUFFER_SIZE): New macro.
49258         (openat_proc_name): New function.
49259         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49260         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49261         Likewise.
49262         * lib/openat-proc.c: New file.
49263         * modules/openat (Files): Add lib/openat-proc.c.
49264         (Depends-on): Add same-inode, stdbool.
49265         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49266
49267 2006-09-29  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49270         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49271         argument. Set stdout_closed before testing for ferror, not after.
49272         (fwriteerror, fwriteerror_no_ebadf): New functions.
49273
49274 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49275
49276         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49277
49278 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49279
49280         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49281         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49282
49283 2006-09-28  Jim Meyering  <jim@meyering.net>
49284
49285         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49286         Include <unistd.h>.
49287
49288 2006-09-28  Bruno Haible  <bruno@clisp.org>
49289
49290         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49291         * modules/linkedhash-list (Depends-on): Likewise.
49292         * modules/rbtreehash-list (Depends-on): Likewise.
49293
49294 2006-09-28  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/strndup.h: Simplify the redefinition of strndup.
49297         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49298         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49299
49300 2006-09-28  Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49303         * lib/gl_linkedhash_list.c: Likewise.
49304         * lib/gl_rbtreehash_list.c: Likewise.
49305
49306 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49307
49308         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49309         getaddrinfo.
49310
49311         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49312         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49313         it causes <stdio_ext.h> to cause a compile-time error.
49314         Problem reported by Nelson H. F. Beebe.
49315         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49316         of HAVE_DECL___PENDING.
49317
49318         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49319         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49320         declaration.
49321
49322 2006-09-27  Jim Meyering  <jim@meyering.net>
49323
49324         This file could end up with a definition for a function
49325         named __strndup, rather than rpl_strndup on a system with
49326         incomplete weak_alias support.
49327         * lib/strndup.c (strndup): Rename from __strndup.
49328         Remove #defines that used to map __strndup to strndup.
49329         Don't use K&R prototypes.
49330         Remove LIBC-related code, since this file is not sync'd with glibc.
49331         * lib/strndup.h: Revamp, accordingly.
49332         * m4/strndup.m4: Modernize.
49333
49334 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49335
49336         * modules/savewd (Depends-on): Add 'raise'.
49337         * lib/savewd.c: Include <signal.h>, for 'raise'.
49338
49339 2006-09-26  Jim Meyering  <jim@meyering.net>
49340
49341         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49342         when we detect Darwin 8.7.0's acl_get_file bug.
49343         Rearrange to perform the new (below) run-test while $LIBS
49344         contains any acl-related library.  Set USE_ACL at the end.
49345         (gl_ACL_GET_FILE): New function.
49346
49347 2006-09-26  Eric Blake  <ebb9@byu.net>
49348
49349         * lib/verror.c: Include <config.h> unconditionally.
49350
49351 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49352
49353         * modules/clock-time (Maintainer): Add self.
49354         * modules/getlogin_r (Depends-on): Add extensions.
49355
49356 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49357
49358         * modules/clock-time: New module.
49359         * modules/nanosleep (Depends-on): Add clock-time.
49360         * modules/gethrxtime (Depends-on): Likewise.
49361         * modules/gettime (Depends-on): Likewise.
49362         * modules/settime (Depends-on): Likewise.
49363
49364         * modules/fts-lgpl: Depend on openat.
49365         * modules/mkancesdirs: Depend on savewd.
49366         * modules/mkdir-p: Likewise.
49367
49368 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49369
49370         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49371
49372         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49373         `gl_have_arbitrary_file_name_length_limit' to
49374         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49375         actually works between configure runs.
49376
49377 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49378             Bruno Haible  <bruno@clisp.org>
49379
49380         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49381
49382 2006-09-25  Jim Meyering  <jim@meyering.net>
49383
49384         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49385         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49386
49387 2006-09-25  Eric Blake  <ebb9@byu.net>
49388
49389         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49390         exec's in 2006-09-18 patch when shuffling fds.
49391
49392 2006-09-25  Bruno Haible  <bruno@clisp.org>
49393
49394         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49395         Reported by Jim Meyering.
49396
49397 2006-09-24  Jim Meyering  <jim@meyering.net>
49398
49399         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49400         compare a pointer against a literal "0".  That caused failures with
49401         at least HP-UX's hpcc.
49402
49403 2006-09-22  Simon Josefsson  <jas@extundo.com>
49404
49405         * modules/gc-sha1:
49406         * modules/gc-md4:
49407         * modules/gc-hmac-sha1:
49408         * modules/gc-hmac-md5:
49409         * modules/gc-des:
49410         * modules/gc-arcfour: Distribute more files.
49411
49412 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49413
49414         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49415         (gl_linked_iterator_from_to): Initialize struct completely.
49416         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49417         (gl_tree_iterator_from_to): Likewise
49418         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49419         * lib/gl_array_list.c [lint] (gl_array_iterator)
49420         (gl_array_iterator_from_to): Likewise.
49421         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49422         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49423         (gl_carray_iterator_from_to): Likewise.
49424
49425         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49426         * lib/md4.c (md4_process_block): Remove unused variable.
49427         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49428         parentheses for clarity.
49429
49430 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49431
49432         * modules/bison-i18n (Depends-on): Add gettext.
49433
49434 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49435
49436         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49437         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49438         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49439         also add missing comma that caused broken test.
49440         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49441         stdlib.h, for `abort'.
49442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49443         variables.
49444         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49445         include unistd.h if present, for `rmdir'.
49446         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49447         variables.
49448         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49449         in the process include standard headers for prototypes.
49450         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49451         gets declared on GNU/Linux.
49452         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49453         unistd.h, for `rmdir'.
49454         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49455
49456         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49457         always true.
49458         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49459
49460         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49461
49462 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49463
49464         * gnulib-tool (func_version): Create output all at once.  This
49465         may help avoid triggering unnecessary SIGPIPEs, and at any
49466         rate it doesn't hurt.
49467
49468 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49469             Bruno Haible  <bruno@clisp.org>
49470
49471         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49472         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49473         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49474
49475         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49476         (gl_FUNC_VASPRINTF): Invoke it.
49477
49478 2006-09-22  Bruno Haible  <bruno@clisp.org>
49479
49480         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49481         getloadavg.c as first argument.
49482
49483 2006-09-22  Bruno Haible  <bruno@clisp.org>
49484
49485         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49486         at the beginning of the gl_INIT macro.
49487         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49488         gl_GETLOADAVG.
49489
49490 2006-09-22  Bruno Haible  <bruno@clisp.org>
49491
49492         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49493         module.
49494         Suggested by Ralf Wildenhues.
49495
49496 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49497
49498         Import this patch from libc:
49499
49500         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49501
49502         * lib/regex_internal.c (re_string_reconstruct): Handle
49503         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49504         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49505         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49506         re_string_context_at.
49507
49508         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49509         now requires it.
49510         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49511         gl_REGEX now does it for us.
49512         (gl_REGEX): Add test taken from
49513         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49514
49515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49516         Check that large offsets work.  Modernize Autoconf usages.
49517         Prefer "yes" to mean a good thing rather than a bad.
49518         Don't put "#define mkstemp" in config.h, as this might interfere
49519         with standard system headers that "#define mkstemp mkstemp64".
49520
49521         * modules/mkstemp (Depends-on): Add extensions, so that
49522         mkstemp is visible on some platforms.
49523         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49524         (Include): Change to "mkstemp.h" from <stdlib.h>.
49525         (Files): Add mkstemp.h.
49526
49527         * lib/mkstemp.h: New file, since some standard headers
49528         #define mkstemp.
49529         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49530         Include "mkstemp.h".
49531         Make the _LIBC code resemble glibc original more,
49532         e.g., use K&R style.
49533         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49534         (mkstemp): Remove, since mkstemp.h does this for us.
49535         * lib/stdlib--.h: Include mkstemp.h.
49536
49537         Import this patch from libc:
49538
49539         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49540
49541         * lib/tempname.c (__gen_tempname): Change attempts_min
49542         into a macro.  Use preprocessor to decide how to initialize
49543         attempts [Coverity CID 67].
49544
49545 2006-09-20  Bruno Haible  <bruno@clisp.org>
49546
49547         * lib/mkdtemp.c: Import from libc.
49548         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49549                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49550                 attempts_min into a macro.  Use preprocessor to decide how to
49551                 initialize attempts [Coverity CID 67].
49552         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49553                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49554                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49555
49556 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49557
49558         * gnulib-tool (func_exit): New function, to allow to pass the
49559         exit status portably through the trap.  Use everywhere.
49560         (--help, --version): Signal a write error.
49561         (trap): catch SIGPIPE, for write errors.
49562         Exit at the end of the trap, with the correct exit status.
49563
49564 2006-09-19  Karl Berry  <karl@gnu.org>
49565
49566         * doc/gnulib.texi: note about the license texinfo files.
49567
49568 2006-09-19  Eric Blake  <ebb9@byu.net>
49569
49570         * gnulib-tool: Avoid space-tab.
49571
49572 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49573
49574         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49575         that prevented coreutils 6.1 from building.  Problem reported
49576         by Petter Reinholdtsen.
49577
49578 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49579
49580         * gnulib-tool (avoidlist): Fix typo that broke options like
49581         --avoid=lock that are used by coreutils bootstrap.
49582
49583 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49584
49585         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49586         more systematically.
49587
49588 2006-09-18  Jim Meyering  <jim@meyering.net>
49589
49590         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49591
49592 2006-09-18  Bruno Haible  <bruno@clisp.org>
49593
49594         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49595
49596 2006-09-18  Bruno Haible  <bruno@clisp.org>
49597
49598         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49599         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49600         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49601         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49602         * m4/gettext.m4: Require autoconf >= 2.52.
49603         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49604         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49605         of gl_cv_header_inttypes_h.
49606
49607 2006-09-18  Bruno Haible  <bruno@clisp.org>
49608
49609         * lib/javaversion.c: Include configmake.h.
49610
49611 2006-09-18  Bruno Haible  <bruno@clisp.org>
49612
49613         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49614         avoid that the while loops be executed in a subshell.
49615
49616 2006-09-18  Bruno Haible  <bruno@clisp.org>
49617
49618         * MODULES.html.sh (func_module): Break long lines.
49619         Suggested by Bruce Korb <bkorb@gnu.org>.
49620
49621 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49622
49623         Speed up by a factor of 1.12.
49624         * gnulib-tool (nl): New variable.
49625         (func_import): Rewrite include directive extraction to only read each
49626         directive once.
49627
49628 2006-09-17  Bruno Haible  <bruno@clisp.org>
49629
49630         * modules/javaversion (Makefile.am): Remove DEFS setting.
49631         (Depends-on): Add configmake, for PKGDATADIR definition.
49632
49633 2006-09-17  Bruno Haible  <bruno@clisp.org>
49634
49635         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49636
49637 2006-09-17  Bruno Haible  <bruno@clisp.org>
49638
49639         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49640         (func_modules_transitive_closure, func_modules_add_dummy,
49641         func_modules_to_filelist, func_import, func_create_testdir,
49642         func_create_megatestdir, ...): Use it wherever possible.
49643         Suggested by Ralf Wildenhues.
49644
49645 2006-09-16  Karl Berry  <karl@gnu.org>
49646
49647         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49648         to avoid sectioning errors.
49649         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49650         [ifinfo]: blank line after @center-ed titles.
49651         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49652         Spell FSF address consistently with others.
49653         (These changes approved by rms.)
49654
49655 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49656
49657         Speed up by a factor of 1.61.
49658         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49659         already checked module names again.
49660
49661 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49662
49663         Speed up by a factor of 1.13.
49664         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49665         for new_files, and the input to func_add_or_update.
49666
49667 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49668
49669         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49670         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49671
49672 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49673
49674         * modules/mkancesdirs (Depends-on): Add fcntl.
49675         * modules/savewd: New file.
49676         * MODULES.html.sh (File system functions): Add savewd.
49677
49678         * modules/configmake (Makefile.am): Add support for the
49679         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49680
49681 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         * m4/savewd.m4: New file.
49684
49685 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49686
49687         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49688         (dirchownmod): New arg FD.  All callers changed.
49689         Use FD rather than opening the directory ourself, as opening is
49690         now the caller's responsibility.
49691         * lib/dirchownmod.h: Likewise.
49692         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49693         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49694         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49695         (test_dir): Remove.
49696         (mkancesdirs): Return length of prefix of FILE that has already
49697         been made, or -2 if there is a child doing the work.  Redo
49698         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49699         ".", and treat ".." specially since it might stray back into
49700         already-created areas.  Use a subprocess if necessary.  New arg
49701         WD; all users changed.  MAKE_DIR function should now return 1
49702         if it creates a directory that is not readable.  Return -2 if
49703         a child process is spun off.
49704         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49705         Adjust signature to match code.
49706         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49707         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49708         all users changed.
49709         * lib/savewd.c, lib/savewd.h: New files.
49710
49711 2006-09-15  Jim Meyering  <jim@meyering.net>
49712
49713         * modules/rename-dest-slash: New module.
49714         * MODULES.html.sh (posix_compat): Add it here.
49715
49716         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49717
49718 2006-09-15  Jim Meyering  <jim@meyering.net>
49719
49720         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49721         file.
49722
49723         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49724
49725 2006-09-15  Jim Meyering  <jim@meyering.net>
49726
49727         * lib/rename-dest-slash.c (has_trailing_slash): Use
49728         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49729         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49730         test before testing whether SRC is a directory.
49731         Suggestions from Bruno Haible.
49732
49733         Avoid a warning about an unused variable.
49734         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49735         into the #ifdef block where it's used.
49736
49737         * lib/rename-dest-slash.c: New file.
49738
49739 2006-09-14  Bruno Haible  <bruno@clisp.org>
49740
49741         * lib/allocsa.c: Include <config.h> unconditionally.
49742         * lib/asnprintf.c: Likewise.
49743         * lib/asprintf.c: Likewise.
49744         * lib/c-strcasecmp.c: Likewise.
49745         * lib/c-strcasestr.c: Likewise.
49746         * lib/c-strncasecmp.c: Likewise.
49747         * lib/c-strstr.c: Likewise.
49748         * lib/classpath.c: Likewise.
49749         * lib/clean-temp.c: Likewise.
49750         * lib/concatpath.c: Likewise.
49751         * lib/copy-file.c: Likewise.
49752         * lib/csharpcomp.c: Likewise.
49753         * lib/csharpexec.c: Likewise.
49754         * lib/execute.c: Likewise.
49755         * lib/fatal-signal.c: Likewise.
49756         * lib/findprog.c: Likewise.
49757         * lib/fwriteerror.c: Likewise.
49758         * lib/gl_array_list.c: Likewise.
49759         * lib/gl_array_oset.c: Likewise.
49760         * lib/gl_avltree_list.c: Likewise.
49761         * lib/gl_avltree_oset.c: Likewise.
49762         * lib/gl_avltreehash_list.c: Likewise.
49763         * lib/gl_carray_list.c: Likewise.
49764         * lib/gl_linked_list.c: Likewise.
49765         * lib/gl_linkedhash_list.c: Likewise.
49766         * lib/gl_list.c: Likewise.
49767         * lib/gl_oset.c: Likewise.
49768         * lib/gl_rbtree_list.c: Likewise.
49769         * lib/gl_rbtree_oset.c: Likewise.
49770         * lib/gl_rbtreehash_list.c: Likewise.
49771         * lib/imaxabs.c: Likewise.
49772         * lib/imaxdiv.c: Likewise.
49773         * lib/javacomp.c: Likewise.
49774         * lib/javaexec.c: Likewise.
49775         * lib/javaversion.c: Likewise.
49776         * lib/linebreak.c: Likewise.
49777         * lib/localcharset.c: Likewise.
49778         * lib/lock.c: Likewise.
49779         * lib/mbchar.c: Likewise.
49780         * lib/mbswidth.c: Likewise.
49781         * lib/mkdtemp.c: Likewise.
49782         * lib/pipe.c: Likewise.
49783         * lib/printf-args.c: Likewise.
49784         * lib/printf-parse.c: Likewise.
49785         * lib/progname.c: Likewise.
49786         * lib/progreloc.c: Likewise.
49787         * lib/readlink.c: Likewise.
49788         * lib/sh-quote.c: Likewise.
49789         * lib/stpcpy.c: Likewise.
49790         * lib/stpncpy.c: Likewise.
49791         * lib/strcasecmp.c: Likewise.
49792         * lib/strcasestr.c: Likewise.
49793         * lib/strcspn.c: Likewise.
49794         * lib/striconv.c: Likewise.
49795         * lib/strncasecmp.c: Likewise.
49796         * lib/strnlen1.c: Likewise.
49797         * lib/strstr.c: Likewise.
49798         * lib/strtok_r.c: Likewise.
49799         * lib/tls.c: Likewise.
49800         * lib/tmpdir.c: Likewise.
49801         * lib/unicodeio.c: Likewise.
49802         * lib/unsetenv.c: Likewise.
49803         * lib/vasnprintf.c: Likewise.
49804         * lib/vasprintf.c: Likewise.
49805         * lib/wait-process.c: Likewise.
49806         * lib/xallocsa.c: Likewise.
49807         * lib/xsetenv.c: Likewise.
49808         * lib/xstriconv.c: Likewise.
49809
49810 2006-09-13  Simon Josefsson  <jas@extundo.com>
49811
49812         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49813         that internally, suggested by Ralf Wildenhues
49814         <Ralf.Wildenhues@gmx.de>.
49815
49816 2006-09-13  Simon Josefsson  <jas@extundo.com>
49817
49818         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49819         @LIBOBJS@.
49820         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49821
49822 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49825         longer worry about uses that don't define HAVE_CONFIG_H.
49826         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49827         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49828         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49829         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49830         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49831         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49832         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49833         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49834         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49835         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49836         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49837         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49838         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49839         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49840         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49841         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49842         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49843         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49844         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49845         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49846         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49847         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49848         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49849         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49850         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49851         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49852         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49853         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49854         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49855         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49856         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49857         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49858         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49859         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49860         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49861         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49862         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49863         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49864         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49865         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49866         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49867         Likewise.
49868
49869 2006-09-13  Eric Blake  <ebb9@byu.net>
49870
49871         * lib/getopt.c: Fix typo in last commit.
49872
49873 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49874
49875         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49876         dgettext.
49877
49878 2006-09-12  Jim Meyering  <jim@meyering.net>
49879
49880         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49881         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49882         Reported by Nelson H. F. Beebe.
49883
49884 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49885
49886         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49887         program_invocation_name and program_invocation_short_name are
49888         initialized.
49889         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49890         and program_invocation_short_name to argp.h, so they are visible
49891         to user programs.
49892         * lib/argp.h: Likewise
49893
49894 2006-09-10  Bruno Haible  <bruno@clisp.org>
49895
49896         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49897         m4/inttypes_h.m4, m4/uintmax_t.m4.
49898
49899 2006-09-10  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49902         gl_AC_TYPE_UINTMAX_T.
49903
49904 2006-09-10  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49907
49908 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49909
49910         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49911         convention.  Text proposed by Bruno Haible.
49912         (struct argp_option): Document the use of N_() wrappers.
49913
49914         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49915         '\v', and translate the two parts separately, instead of feeding
49916         the whole string to gettext.  This allows to exclude
49917         '\v' from the strings visible to the translator by writing doc
49918         strings as N_("..") "\v" N_("..").
49919
49920 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49921
49922         * config/srclist.txt: Undo latest change; the bug was fixed.
49923
49924 2006-09-09  Bruno Haible  <bruno@clisp.org>
49925
49926         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49927         assignments if building a library without libtool.
49928         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49929         in func_emit_lib_Makefile_am.
49930         (func_import): When building a static library libfoo.a, arrange to
49931         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49932         (func_create_testdir): Likewise.
49933         * modules/gc (configure.ac, Makefile.am): If building statically,
49934         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49935         * modules/iconvme (configure.ac, Makefile.am): Likewise.
49936         * modules/striconv (configure.ac, Makefile.am): Likewise.
49937         Based on a suggestion by Ralf Wildenhues.
49938
49939 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49942         Check for unistd.h too, since Autoconf doesn't assume POSIX.
49943         Also:
49944
49945         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49946         Add year_2050_test to catch glibc bug 2821
49947         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49948
49949         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49950         Prefer #ifdef to #if.
49951
49952         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
49953         Return from 'main' instead of calling 'exit'.
49954
49955 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49956
49957         * lib/mktime.c (guess_time_tm): Fix bug where mktime
49958         returned the maximum time_t value rather than (time_t) -1.
49959         Problem originally reported by William Bardwell
49960         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49961
49962         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49963         Moved to here ...
49964         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49965         ... from here.
49966
49967 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
49970         2821 is fixed.
49971
49972 2006-09-08  Jim Meyering  <jim@meyering.net>
49973
49974         Don't make generated files read-only.  That would bother too many
49975         people.  However, do retain the ability to work when targets are
49976         read-only: remove the destination and temporary files before writing
49977         them (when generated via sed or echo), or by using the -f option for
49978         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
49979         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49980         * modules/byteswap, modules/configmake, modules/fcntl:
49981         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49982         * modules/localcharset, modules/netinet_in, modules/poll:
49983         * modules/stdbool, modules/stdint, modules/sys_select:
49984         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49985
49986 2006-09-08  Jim Meyering  <jim@meyering.net>
49987
49988         Avoid new build failure on FreeBSD 6.0.
49989         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
49990         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
49991         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
49992
49993 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49994
49995         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
49996
49997 2006-09-07  Jim Meyering  <jim@meyering.net>
49998
49999         Fix global typo in last change: use chmod u-w, not chmod u-x.
50000         Spotted by Paul Eggert and Bruce Korb.
50001         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50002         * modules/byteswap, modules/configmake, modules/fcntl:
50003         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50004         * modules/localcharset, modules/netinet_in, modules/poll:
50005         * modules/stdbool, modules/stdint, modules/sys_select:
50006         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50007
50008 2006-09-06  Jim Meyering  <jim@meyering.net>
50009
50010         Make generated files be read-only.
50011         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50012         Ensure that each generated file is now read-only.
50013         * modules/argz: Likewise.
50014         * modules/arpa_inet: Likewise.
50015         * modules/byteswap: Likewise.
50016         * modules/configmake: Likewise.
50017         * modules/fcntl: Likewise.
50018         * modules/fnmatch: Likewise.
50019         * modules/getopt: Likewise.
50020         * modules/glob: Likewise.
50021         * modules/inttypes: Likewise.
50022         * modules/netinet_in: Likewise.
50023         * modules/poll: Likewise.
50024         * modules/stdbool: Likewise.
50025         * modules/stdint: Likewise.
50026         * modules/sys_select: Likewise.
50027         * modules/sys_socket: Likewise.
50028         * modules/sys_stat: Likewise.
50029         * modules/sysexits: Likewise.
50030         * modules/localcharset: Same as above, but continue using temporary
50031         file named "t-$@" (why different?) rather than the "$@-t" used
50032         everywhere else.
50033
50034         * modules/sysexits (Makefile.am): Replace literal occurrences
50035         of "sysexit.h" more readable, and more consistent, "$@".
50036
50037 2006-09-06  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/striconv: New file.
50040         * modules/xstriconv: New file.
50041         * MODULES.html.sh (Internationalization functions): Add striconv,
50042         xstriconv.
50043
50044 2006-09-06  Bruno Haible  <bruno@clisp.org>
50045
50046         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50047         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50048         not using libtool correctly.
50049
50050 2006-09-06  Bruno Haible  <bruno@clisp.org>
50051
50052         * lib/striconv.h: New file.
50053         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50054         iconvstring.c.
50055         * lib/xstriconv.h: New file.
50056         * lib/xstriconv.c: New file.
50057
50058 2006-09-06  Bruno Haible  <bruno@clisp.org>
50059
50060         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50061         lib_..._LDFLAGS.
50062
50063 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50064
50065         * lib/argz_.h: Sync from Libtool.
50066
50067         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50068                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50069
50070         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50071
50072 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50073
50074         * modules/trim: New file.
50075
50076 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50077
50078         * lib/trim.h: New file.
50079         * lib/trim.c: New file.
50080
50081 2006-09-05  Bruno Haible  <bruno@clisp.org>
50082
50083         * MODULES.html.sh (String handling): Add trim.
50084
50085 2006-09-04  Karl Berry  <karl@gnu.org>
50086
50087         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50088         until next release.
50089
50090 2006-09-03  Bruno Haible  <bruno@clisp.org>
50091
50092         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50093         correctly.
50094
50095 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50096
50097         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50098         not gl_GETLOADAVG.  Omit unneeded semicolons.
50099         Problems reported by Ralf Wildenhues in
50100         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50101         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50102         at the end, which is the usual gnulib style.
50103
50104         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50105         of doing all the work ourselves.
50106         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50107         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50108
50109 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50110
50111         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50112         Problem reported by Ralf Wildenhues in
50113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50114
50115         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50116         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50117
50118 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50119
50120         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50121         yesterday's patch by changing test -n to test -z.
50122
50123 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50124
50125         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50126         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50127         the former is now obsolescent.
50128
50129         * modules/chdir-long (Depends-on): Add fcntl.
50130
50131 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50134         obsolescent, and programs should use gnulib instead.
50135         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50136         but with prefixes changed.
50137
50138 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50139
50140         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50141         or stdbool.h, because they might not exist while configuring.
50142
50143         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50144         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50145         does that for us.
50146         (O_DIRECTORY): Remove.
50147
50148 2006-08-31  Eric Blake  <ebb9@byu.net>
50149
50150         * gnulib-tool: Don't let emacs change spaces to TAB.
50151
50152 2006-08-31  Bruno Haible  <bruno@clisp.org>
50153
50154         * gnulib-tool: When calling func_import more than once, do it in a
50155         subshell.
50156         Reported by Eric Blake <ebb9@byu.net>.
50157
50158 2006-08-31  Bruno Haible  <bruno@clisp.org>
50159
50160         * gnulib-tool (nl): Remove variable.
50161         (sed_transform_lib_file): Use more robust test for config-h module.
50162         (func_import): Fix typo in 2006-08-25 patch.
50163
50164 2006-08-31  Bruno Haible  <bruno@clisp.org>
50165
50166         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50167         specified, augment Makefile.am variables instead of assigning them.
50168
50169 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50170
50171         Work around a bug in both the Linux and SunOS 64-bit kernels:
50172         nanosleep mishandles sleeps for longer than 2**31 seconds.
50173         Problem reported by Frank v Waveren in
50174         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50176         Check for nanosleep bug.
50177         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50178
50179 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50180
50181         Work around a bug in both the Linux and SunOS 64-bit kernels:
50182         nanosleep mishandles sleeps for longer than 2**31 seconds.
50183         Problem reported by Frank v Waveren in
50184         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50185         * lib/nanosleep.c (BILLION): New constant.
50186         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50187         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50188         implementation.
50189
50190 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50191
50192         * modules/nanosleep (Depends-on): Add gettime.
50193
50194 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50195         and Simon Josefsson  <jas@extundo.com>
50196         and Oskar Liljeblad  <oskar@osk.mine.nu>
50197
50198         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50199         * gnulib-tool (func_import): New license type 'unmodifiable license
50200         text'.
50201         * modules/fdl: Use it.  Longer description.
50202         * module/gpl, module/lgpl: New files.
50203
50204 2006-08-30  Jim Meyering  <jim@meyering.net>
50205
50206         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50207         shadowing the parameter.
50208
50209 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50210
50211         Sync from Libtool:
50212
50213         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50214
50215         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50216         sharing with gnulib.  Report by Eric Blake.
50217
50218 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50219
50220         * modules/isapipe: New file.
50221         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50222
50223 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50224
50225         * modules/configmake (Makefile.am): Add a comment, and omit
50226         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50227         by Bruno Haible.
50228
50229 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50230
50231         * m4/isapipe.m4: New file.
50232
50233 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         * lib/isapipe.c, lib/isapipe.h: New files.
50236
50237 2006-08-29  Jim Meyering  <jim@meyering.net>
50238
50239         * modules/configmake (Makefile.am): Make configmake.h depend on
50240         Makefile.  Otherwise, a stale configmake.h could hang around.
50241
50242 2006-08-29  Eric Blake  <ebb9@byu.net>
50243
50244         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50245         resolution of upstream bug 3044.
50246
50247 2006-08-29  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/localcharset (Depends-on): Add configmake.
50250         (Makefile.am): Remove setting of LIBDIR through DEFS.
50251
50252 2006-08-29  Bruno Haible  <bruno@clisp.org>
50253
50254         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50255         defined.
50256
50257 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50258
50259         * modules/fcntl: New file.
50260         * modules/chdir-safer (Depends-on): Add fcntl.
50261         * modules/fts: Likewise.
50262         * modules/mkdir-p: Likewise.
50263
50264         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50265         This undoes the most recent change, since we're now addressing the
50266         problem in a different way.
50267
50268         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50269         into output, since the output might be called Makefile.am even
50270         if $makefile_name is something different.
50271         (func_import): Use $makefile_am rather than
50272         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50273         empty.
50274
50275         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50276
50277 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50278
50279         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50280         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50281         recent change to stdint.m4, since we're now addressing the problem in a
50282         different way.
50283
50284 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50285
50286         * m4/fcntl_h.m4: New file.
50287
50288 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50289
50290         * lib/fcntl_.h: New file.
50291         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50292         the fcntl module.
50293         * lib/dirchownmod.c: Likewise.
50294         * lib/fts.c: Likewise.
50295
50296         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50297         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50298         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50299         just before including <inttypes.h>, to avoid circular inclusion.
50300
50301 2006-08-28  Jim Meyering  <jim@meyering.net>
50302
50303         * doc/visibility.texi: Actually read and correct the grammar of the
50304         sentence affected by yesterday's change.
50305
50306 2006-08-28  Eric Blake  <ebb9@byu.net>
50307
50308         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50309         needs wrapper.
50310
50311 2006-08-28  Eric Blake  <ebb9@byu.net>
50312
50313         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50314
50315 2006-08-28  Eric Blake  <ebb9@byu.net>
50316
50317         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50318
50319 2006-08-28  Bruno Haible  <bruno@clisp.org>
50320
50321         * modules/c-strstr: New file, from GNU gettext.
50322         * MODULES.html.sh (String handling): Add c-strstr.
50323
50324 2006-08-28  Bruno Haible  <bruno@clisp.org>
50325
50326         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50327         macros.
50328         Reported by Eric Blake.
50329
50330 2006-08-28  Bruno Haible  <bruno@clisp.org>
50331
50332         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50333         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50334         * lib/vasprintf.c: Include errno.h, limits.h.
50335         (EOVERFLOW): New fallback definition.
50336         (vasprintf): Test here whether the string length is > INT_MAX.
50337         * lib/vsnprintf.c: Include errno.h, limits.h.
50338         (EOVERFLOW): New fallback definition.
50339         (vsnprintf): Fix bug when generated string was too long for the buffer.
50340         Test here whether the string length is > INT_MAX.
50341
50342 2006-08-28  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/inttypes_.h (SCNX*): Remove definitions.
50345         Reported by Eric Blake.
50346
50347 2006-08-28  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/c-strstr.h: New file, from GNU gettext.
50350         * lib/c-strstr.c: New file, from GNU gettext.
50351
50352 2006-08-28  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool: Reorder some statements.
50355
50356 2006-08-28  Bruno Haible  <bruno@clisp.org>
50357
50358         * gnulib-tool: New option --makefile-name.
50359         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50360         $makefile_name.
50361         (func_import): Write $makefile_name to the cache file, and read it from
50362         there unless explicitly specified. Use $makefile_name as file name
50363         instead of Makefile.am. Adjust the recommendations accordingly.
50364
50365 2006-08-28  Bruno Haible  <bruno@clisp.org>
50366
50367         * gnulib-tool (func_verify_module): Check against misapplying patch.
50368
50369 2006-08-28  Bruno Haible  <bruno@clisp.org>
50370
50371         * gnulib-tool (func_relativize, func_relconcat): New functions.
50372         Give an error if --local-dir is given with --update.
50373         Remove trailing slashes from $local_gnulib_dir.
50374         (func_import): Store the relativized $local_gnulib_dir in
50375         gnulib-cache.m4, and read it from there if not specified explicitly.
50376
50377 2006-08-28  Bruno Haible  <bruno@clisp.org>
50378
50379         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50380         is the current directory. Respect also $local_gnulib_dir.
50381
50382 2006-08-28  Bruno Haible  <bruno@clisp.org>
50383             Simon Josefsson  <jas@extundo.com>
50384
50385         BeOS portability.
50386         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50387
50388 2006-08-27  Jim Meyering  <jim@meyering.net>
50389
50390         * doc/visibility.texi: Remove duplicate word: "pointer".
50391
50392 2006-08-26  Bruno Haible  <bruno@clisp.org>
50393
50394         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50395         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50396         (Makefile.am): Create inttypes.h from inttypes_.h.
50397         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50398
50399         * modules/imaxabs: New file.
50400
50401         * modules/imaxdiv: New file.
50402
50403 2006-08-26  Bruno Haible  <bruno@clisp.org>
50404
50405         * m4/inttypes.m4: New file.
50406         * m4/_inttypes_h.m4: Remove file.
50407         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50408         PRI_MACROS_BROKEN.
50409         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50410
50411         * m4/imaxabs.m4: New file.
50412
50413         * m4/imaxdiv.m4: New file.
50414
50415 2006-08-26  Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/inttypes_.h: New file.
50418         * lib/inttypes.h: Remove file.
50419         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50420
50421         * lib/imaxabs.c: New file.
50422
50423         * lib/imaxdiv.c: New file.
50424
50425 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         New config-h module, so that "make" output needn't be cluttered
50428         by -DHAVE_CONFIG_H.
50429         * MODULES.html.sh (Support for building libraries and executables):
50430         Add config-h.
50431         * modules/config-h: New file.
50432         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50433         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50434         the config-h module is used.
50435
50436         New configmake module, so that "make" output needn't be cluttered
50437         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50438         * MODULES.html.sh (Support for building libraries and executables):
50439         Add configmake.
50440         * modules/configmake: New file.
50441
50442 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50443
50444         * m4/config-h.m4: New file.
50445
50446 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         * config/srclist.txt: Add elisp-comp.
50449
50450 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         * MODULES.html.sh (Support for building libraries and executables):
50453         Add elisp-comp.
50454         * build-aux/elisp-comp: New file.
50455         * modules/elisp-comp: New file.
50456
50457 2006-08-24  Bruno Haible  <bruno@clisp.org>
50458
50459         * gnulib-tool (func_create_testdir): Use non-default values of
50460         sourcebase and m4base.
50461
50462 2006-08-24  Bruno Haible  <bruno@clisp.org>
50463
50464         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50465         HTML structure.
50466
50467 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50468
50469         * modules/openat (Depends-on): Add lchown.
50470
50471 2006-08-23  Bruno Haible  <bruno@clisp.org>
50472
50473         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50474         of gl_LOCK_EARLY instead of gl_LOCK.
50475
50476 2006-08-23  Bruno Haible  <bruno@clisp.org>
50477
50478         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50479         on OSF/1 to no.
50480         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50481
50482 2006-08-23  Bruno Haible  <bruno@clisp.org>
50483
50484         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50485         as unusable.
50486
50487         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50488         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50489         (gl_LOCK): New macro.
50490
50491 2006-08-22  Simon Josefsson  <jas@extundo.com>
50492
50493         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50494         to md5 module.
50495
50496 2006-08-22  Simon Josefsson  <jas@extundo.com>
50497
50498         * MODULES.html.sh: Add "Support for maintaining and release
50499         projects".
50500
50501         * build-aux/gnupload: New file, from coreutils.
50502
50503 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         Avoid the need for AC_LIBSOURCES in m4 macros.
50506         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50507         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50508         * modules/check-version (EXTRA_DIST): Add check-version.h.
50509         * modules/crc (EXTRA_DIST): Add crc.h.
50510         * modules/des (EXTRA_DIST): Add des.h.
50511         * modules/gc (EXTRA_DIST): Add gc.h.
50512         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50513         * modules/getline (EXTRA_DIST): Add getline.h.
50514         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50515         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50516         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50517         * modules/md2 (EXTRA_DIST): Add md2.h.
50518         * modules/md4 (EXTRA_DIST): Add md4.h.
50519         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50520         * modules/read-file (EXTRA_DIST): Add read-file.h.
50521         * modules/readline (EXTRA_DIST): Add readline.h.
50522         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50523         rijndael-api-fst.h.
50524
50525 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50526
50527         * m4/rijndael.m4 (gl_ARCFOUR):
50528         * m4/arctwo.m4 (gl_ARCTWO):
50529         * m4/check-version.m4 (gl_CHECK_VERSION):
50530         * m4/crc.m4 (gl_CRC):
50531         * m4/des.m4 (gl_DES):
50532         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50533         * m4/gc.m4 (gl_GC):
50534         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50535         * m4/getline.m4 (gl_FUNC_GETLINE):
50536         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50537         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50538         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50539         * m4/md2.m4 (gl_MD2):
50540         * m4/md4.m4 (gl_MD4):
50541         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50542         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50543         * m4/readline.m4 (gl_FUNC_READLINE):
50544         * m4/rijndael.m4 (gl_RIJNDAEL):
50545         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50546         to get the necessary .h files and whatnot.
50547
50548 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50549
50550         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50551         gnulib rather than the other way around.
50552         * config/srclistvars.sh (COREUTILS): Remove.
50553
50554 2006-08-22  Jim Meyering  <jim@meyering.net>
50555
50556         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50557
50558         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50559
50560 2006-08-22  Eric Blake  <ebb9@byu.net>
50561
50562         * modules/regexprops-generic: New file.
50563         * MODULES.html.sh (Support for building documentation): List it.
50564
50565 2006-08-22  Eric Blake  <ebb9@byu.net>
50566
50567         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50568         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50569         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50570         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50571
50572 2006-08-22  Bruno Haible  <bruno@clisp.org>
50573
50574         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50575         and lib_LTLIBRARIES like the other lib_* variables.
50576
50577 2006-08-22  Bruno Haible  <bruno@clisp.org>
50578
50579         * build-aux/x-to-1.in: New file, from GNU gettext.
50580
50581 2006-08-22  Bruno Haible  <bruno@clisp.org>
50582
50583         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50584         <utmpx.h> exists.
50585
50586 2006-08-22  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50589         <utmpx.h> exists.
50590
50591 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50592
50593         BeOS portability.
50594         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50595         exist.
50596         Problem reported by Bruno Haible.
50597
50598 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50599
50600         Avoid the need for AC_LIBSOURCES in m4 macros.
50601         * modules/acl (EXTRA_DIST): Add acl.h.
50602         * modules/argmatch (Files): Add m4/argmatch.m4.
50603         (configure.ac): Add gl_ARGMATCH.
50604         (EXTRA_DIST): Renamed from lib_SOURCES, for
50605         consistency with the other modules.  Remove argmatch.c.
50606         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50607         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50608         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50609         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50610         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50611         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50612         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50613         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50614         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50615         * modules/closeout (EXTRA_DIST): Add closeout.h.
50616         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50617         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50618         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50619         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50620         dirname.h; remove basename.c and stripslash.c.
50621         * modules/exclude (EXTRA_DIST): Add exclude.h.
50622         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50623         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50624         * modules/file-type (EXTRA_DIST): Add file-type.h.
50625         * modules/filemode (EXTRA_DIST): Add filemode.h.
50626         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50627         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50628         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50629         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50630         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50631         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50632         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50633         * modules/getdate (EXTRA_DIST): Add getdate.c.
50634         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50635         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50636         * modules/getpass (EXTRA_DIST): Add getpass.h.
50637         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50638         * modules/group-member (EXTRA_DIST): Add group-member.h.
50639         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50640         * modules/hash (EXTRA_DIST): Add hash.h.
50641         * modules/human (EXTRA_DIST): Add human.h.
50642         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50643         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50644         * modules/lchown (EXTRA_DIST): Add lchown.h.
50645         * modules/long-options (EXTRA_DIST): Add long-options.h.
50646         * modules/lstat (EXTRA_DIST): Add lstat.h.
50647         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50648         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50649         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50650         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50651         * modules/memxor (EXTRA_DIST): Add memxor.h.
50652         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50653         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50654         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50655         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50656         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50657         * modules/physmem (EXTRA_DIST): Add physmem.h.
50658         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50659         * modules/posixver (EXTRA_DIST): Add posixver.h.
50660         * modules/quote (EXTRA_DIST): Add quote.h.
50661         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50662         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50663         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50664         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50665         regex_internal.h regexec.c.
50666         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50667         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50668         * modules/same (EXTRA_DIST): Add same.h.
50669         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50670         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50671         * modules/savedir (EXTRA_DIST): Add savedir.h.
50672         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50673         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50674         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50675         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50676         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50677         * modules/strdup (EXTRA_DIST): Add strdup.h.
50678         * modules/strftime (EXTRA_DIST): Add strftime.h.
50679         * modules/strndup (EXTRA_DIST): Add strndup.h.
50680         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50681         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50682         * modules/time_r (EXTRA_DIST): Add time_r.h.
50683         * modules/timespec (EXTRA_DIST): Add timespec.h.
50684         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50685         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50686         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50687         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50688         * modules/userspec (EXTRA_DIST): Add userspec.h.
50689         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50690         * modules/utimens (EXTRA_DIST): Add utimens.h.
50691         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50692         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50693         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50694         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50695         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50696         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50697         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50698         * modules/yesno (EXTRA_DIST): Add yesno.h.
50699
50700 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50701
50702         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50703
50704         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50705         * m4/dev-ino.m4, same-inode.m4: Remove.
50706
50707         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50708         * m4/acl.m4 (AC_FUNC_ACL):
50709         * m4/backupfile.m4 (gl_BACKUPFILE):
50710         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50711         * m4/canon-host.m4 (gl_CANON_HOST):
50712         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50713         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50714         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50715         * m4/cloexec.m4 (gl_CLOEXEC):
50716         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50717         * m4/closeout.m4 (gl_CLOSEOUT):
50718         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50719         * m4/dirname.m4 (gl_DIRNAME):
50720         * m4/exclude.m4 (gl_EXCLUDE):
50721         * m4/exitfail.m4 (gl_EXITFAIL):
50722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50723         * m4/file-type.m4 (gl_FILE_TYPE):
50724         * m4/filemode.m4 (gl_FILEMODE):
50725         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50726         * m4/fpending.m4 (gl_FUNC_FPENDING):
50727         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50728         * m4/fts.m4 (gl_FUNC_FTS):
50729         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50730         * m4/getdate.m4 (gl_GETDATE):
50731         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50732         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50733         * m4/getpass.m4 (gl_FUNC_GETPASS):
50734         * m4/gettime.m4 (gl_GETTIME):
50735         * m4/getugroups.m4 (gl_GETUGROUPS):
50736         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50737         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50738         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50739         * m4/hash.m4 (gl_HASH):
50740         * m4/idcache.m4 (gl_IDCACHE):
50741         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50742         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50743         * m4/long-options.m4 (gl_LONG_OPTIONS):
50744         * m4/lstat.m4 (gl_FUNC_LSTAT):
50745         * m4/md5.m4 (gl_MD5):
50746         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50747         * m4/memcoll.m4 (gl_MEMCOLL):
50748         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50749         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50750         * m4/memxor.m4 (gl_MEMXOR):
50751         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50752         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50753         * m4/modechange.m4 (gl_MODECHANGE):
50754         * m4/mountlist.m4 (gl_MOUNTLIST):
50755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50756         * m4/openat.m4 (gl_FUNC_OPENAT):
50757         * m4/pathmax.m4 (gl_PATHMAX):
50758         * m4/physmem.m4 (gl_PHYSMEM):
50759         * m4/posixtm.m4 (gl_POSIXTM):
50760         * m4/posixver.m4 (gl_POSIXVER):
50761         * m4/quote.m4 (gl_QUOTE):
50762         * m4/quotearg.m4 (gl_QUOTEARG):
50763         * m4/readtokens.m4 (gl_READTOKENS):
50764         * m4/readutmp.m4 (gl_READUTMP):
50765         * m4/regex.m4 (gl_REGEX):
50766         * m4/safe-read.m4 (gl_SAFE_READ):
50767         * m4/safe-write.m4 (gl_SAFE_WRITE):
50768         * m4/same.m4 (gl_SAME):
50769         * m4/save-cwd.m4 (gl_SAVE_CWD):
50770         * m4/savedir.m4 (gl_SAVEDIR):
50771         * m4/settime.m4 (gl_SETTIME):
50772         * m4/sha1.m4 (gl_SHA1):
50773         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50774         * m4/stat-macros.m4 (gl_STAT_MACROS):
50775         * m4/stat-time.m4 (gl_STAT_TIME):
50776         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50777         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50778         * m4/strdup.m4 (gl_FUNC_STRDUP):
50779         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50780         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50781         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50782         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50783         * m4/time_r.m4 (gl_TIME_R):
50784         * m4/timespec.m4 (gl_TIMESPEC):
50785         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50786         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50787         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50788         * m4/userspec.m4 (gl_USERSPEC):
50789         * m4/utimecmp.m4 (gl_UTIMECMP):
50790         * m4/utimens.m4 (gl_UTIMENS):
50791         * m4/xalloc.m4 (gl_XALLOC):
50792         * m4/xgetcwd.m4 (gl_XGETCWD):
50793         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50794         * m4/xreadlink.m4 (gl_XREADLINK):
50795         * m4/xstrtod.m4 (gl_XSTRTOD):
50796         * m4/yesno.m4 (gl_YESNO):
50797         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50798         to get the necessary .h files and whatnot.
50799
50800 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50801             Bruno Haible  <bruno@clisp.org>
50802
50803         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50804         /bin/sh understanding of '!' conditional negation.
50805
50806 2006-08-21  Jim Meyering  <jim@meyering.net>
50807
50808         * modules/openat (Depends-on): Really alphabetize.
50809
50810         * modules/acl (Depends-on): Add error and quote.
50811
50812         * check-module (find_included_lib_files): Add at-func.c to the
50813         ok-to-include-more-than-once white list.
50814
50815         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50816
50817 2006-08-21  Bruno Haible  <bruno@clisp.org>
50818
50819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50820         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50821         Reported by Martin Lambers <marlam@marlam.de>.
50822
50823 2006-08-21  Bruno Haible  <bruno@clisp.org>
50824
50825         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50826         specify an installation location, don't emit a noinst_LIBRARIES or
50827         noinst_LTLIBRARIES assignment.
50828
50829 2006-08-21  Bruno Haible  <bruno@clisp.org>
50830
50831         BeOS portability.
50832         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50833         BeOS has mbrtowc() but no <wctype.h>.
50834
50835 2006-08-21  Bruno Haible  <bruno@clisp.org>
50836
50837         BeOS portability.
50838         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50839         exist.
50840
50841 2006-08-21  Bruno Haible  <bruno@clisp.org>
50842
50843         BeOS portability.
50844         * lib/mbchar.h: Include <wctype.h> only if it exists.
50845
50846 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50847
50848         Remove files that are no longer needed by their respective modules.
50849         * m4/obstack.m4: Remove.
50850         * m4/strerror_r.m4: Remove.
50851         * m4/uint32_t.m4: Remove.
50852         * m4/uintptr_t.m4: Remove.
50853         * m4/ullong_max.m4: Remove.
50854         * m4/xstrtoimax.m4: Remove.
50855         * m4/xstrtoumax.m4: Remove.
50856
50857         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50858         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50859         dependencies now capture this.
50860
50861         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50862         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50863         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50864         * m4/human.m4 (gl_HUMAN): Likewise.
50865         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50866         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50867
50868         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50869
50870         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50871         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50872         stdint.
50873         * m4/human.m4 (gl_HUMAN): Likewise.
50874         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50875         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50876         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50877         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50878         * m4/xstrtol (gl_XSTRTOL): Likewise.
50879
50880         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50881         AC_TYPE_LONG_LONG_INT.
50882         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50883         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50884         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50885         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50886
50887         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50888         on stdbool.
50889
50890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50891         (gl_PREREQ_XSTRTOUL): Remove.
50892
50893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50894
50895         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50896         mode.
50897
50898 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50899
50900         Add and change modules to make it easier for coreutils to use
50901         gnulib-tool.
50902         * modules/backupfile (Files): Remove m4/d-ino.m4.
50903         (Depends-on): Add d-ino.
50904         * modules/cycle-check (Depends-on): Add stdint.
50905         (lib_SOURCES): Add cycle-check.h.
50906         * modules/d-ino: New module.
50907         * modules/d-type: New module.
50908         * modules/error (Files): Remove m4/strerror_r.m4.
50909         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50910         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50911         m4/inttypes_h.m4, m4/uintmax_t.m4.
50912         (Depends-on): Add stdint.
50913         (lib_SOURCES): Add fsusage.h.
50914         * modules/getcwd (Files): Remove d-ino.m4.
50915         (Depends-on): Add d-ino.
50916         * modules/getndelim2 (Depends-on): Add stdint.
50917         * modules/glob (Files): Remove m4/d-type.m4.
50918         (Depends-on): Add d-type.
50919         * modules/host-os: New module.
50920         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50921         m4/inttypes_h.m4, m4/uintmax_t.m4.
50922         * Depends-on: Add stdint.
50923         (lib_SOURCES): Add human.h.
50924         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50925         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50926         m4/uintmax_t.m4, m4/ulonglong.m4.
50927         (Depends-on): Add stdint.
50928         (EXTRA_DIST): Add inttostr.h.
50929         * modules/lchmod: New module.
50930         * modules/link-follow: New module.
50931         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50932         (Depends-on): Add lchmod.
50933         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50934         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50935         (Depends-on): Add stdint.
50936         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
50937         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
50938         (Depends-on): Add stdint.
50939         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
50940         * modules/perl: New module.
50941         * modules/regex (Depends-on): Add stdint.
50942         * modules/rmdir-errno: New module.
50943         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50944         m4/intmax_t.m4.
50945         (Depends-on): Add stdint.
50946         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50947         m4/uintmax_t.m4.
50948         (Depends-on): Add stdint.
50949         * modules/unlink-busy: New module.
50950         * modules/utimecmp (Depends-on): Add stdint.
50951         * modules/uptime: New module.
50952         * modules/winsz-ioctl: New module.
50953         * modules/winsz-termios: New module.
50954         * modules/xnanosleep (Depends-on): Add nanosleep.
50955         * modules/ullong_max: Remove.
50956         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
50957         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
50958         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
50959         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
50960         (Depends-on): Add inttypes.
50961         (lib_SOURCES): Add xstrtol.h.
50962         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
50963         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
50964         * MODULES.html.sh: Move 'assert' into the assert section.
50965         Move 'dummy' into the linking section.
50966         Remove ullong_max.
50967         Add section for compatibility checks for POSIX:2001 functions,
50968         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
50969         winsz-ioctl, and winsz-termios into it.
50970         Add lchmod.
50971         Add top-level Misc section and put host-os, perl, and uptime
50972         into it.
50973
50974 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50975
50976         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
50977         now assume the stdint module.  Do not include inttypes.h.
50978         * lib/fsusage.h: Likewise.
50979         * lib/getndelim2.c: Likewise.
50980         * lib/human.h: Likewise.
50981         * lib/inttostr.h: Likewise.
50982         * lib/obstack.c: Likewise.
50983         * lib/regex_internal.h: Likewise.
50984         * lib/tempname.c: Likewise.
50985         * lib/utimecmp.c: Likewise.
50986         * lib/xstrtol.h: Likewise.
50987
50988         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
50989
50990         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
50991         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
50992         * lib/xtime.h: Likewise.
50993
50994 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * modules/openat (Files): Add lib/fchmodat.c.
50997         Fixes problem reported by Jay Youngman.
50998
50999 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51002         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51003
51004 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51005             Bruno Haible  <bruno@clisp.org>
51006
51007         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51008         and is a script that invokes bison. Tighten the code. Add comments.
51009
51010 2006-08-18  Jim Meyering  <jim@meyering.net>
51011
51012         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51013         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51014         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51015         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51016
51017 2006-08-18  Bruno Haible  <bruno@clisp.org>
51018
51019         * modules/bison-i18n: New file.
51020         * MODULES.html.sh (Internationalization functions): Add it.
51021
51022 2006-08-18  Bruno Haible  <bruno@clisp.org>
51023
51024         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51025         sys/statvfs.h. When getmntinfo was found, check its declaration and
51026         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51027
51028 2006-08-18  Bruno Haible  <bruno@clisp.org>
51029
51030         * m4/bison-i18n.m4: New file, from bison.
51031
51032 2006-08-18  Bruno Haible  <bruno@clisp.org>
51033
51034         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51035         (ME_DUMMY): Treat "kernfs" as a dummy.
51036         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51037
51038 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51039
51040         Update from coreutils.
51041
51042         2006-08-15  Jim Meyering  <jim@meyering.net>
51043
51044         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51045
51046         2006-01-17  Jim Meyering  <jim@meyering.net>
51047
51048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51049
51050         2006-01-11  Jim Meyering  <jim@meyering.net>
51051
51052         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51053         Check for the lchmod function.
51054
51055 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51056
51057         Update from coreutils.
51058
51059         * lib/__fpending.h: Add copyright notice.
51060         * lib/fprintftime.h: Likewise.
51061         * lib/savedir.c: Use (C) in copyright notice.
51062         * lib/savedir.h: Likewise.
51063
51064         2006-08-15  Jim Meyering  <jim@meyering.net>
51065
51066         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51067         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51068         in support of the EXPECTED_ERRNO macro.
51069         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51070         definitions.  Instead, define the appropriate symbols and include
51071         "at-func.c".
51072         * lib/mkdirat.c (mkdirat): Likewise.
51073         * lib/fchmodat.c (fchmodat): Likewise.
51074         (ENOSYS): Remove definition.
51075         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51076         it.  Don't include "unistd--.h" -- it wasn't ever used.
51077
51078         2006-01-17  Jim Meyering  <jim@meyering.net>
51079
51080         Rewrite fts.c not to change the current working directory,
51081         by using openat, fstatat, fdopendir, etc..
51082
51083         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51084         (HAVE_OPENAT_SUPPORT): Define.
51085         [_LIBC] (fchdir): Don't undef or define; no longer used.
51086         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51087         Now, this `function' always succeeds, and consumes its file descriptor
51088         parameter -- so callers must not close such FDs.  Update callers.
51089         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51090         (diropen): Add parameter, SP.  Adjust all callers.
51091         Implement using diropen_fd, rather than open.
51092         (fts_open): Initialize new member, fts_cwd_fd.
51093         Remove fts_rft-setting code.
51094         (fts_close): Close fts_cwd_fd, if necessary.
51095         (__opendir2): Define in terms of opendir or opendirat,
51096         depending on whether the FST_NOCHDIR flag is set.
51097         (fts_build): Since fts_safe_changedir consumes its FD, and since
51098         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51099         and close the dup'd file descriptor upon failure.
51100         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51101         (fts_safe_changedir): Tweak semantics to reflect that this function
51102         now calls cwd_advance_fd and hence consumes its FD argument.
51103         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51104         [struct FTS] (fts_rft): Remove now-unused member.
51105         [struct FTS] (fts_cycle.state): Improve comment.
51106
51107         * lib/openat.c (openat_needs_fchdir): New function.
51108         * lib/openat.h (openat_needs_fchdir): Declare it.
51109
51110 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51113         Problem and fix reported by Pádraig Brady in
51114         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51115
51116 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51117
51118         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51119
51120 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51121
51122         * lib/memcoll.c (memcoll): Optimize for the common case where the
51123         arguments are bytewise equal.
51124
51125 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         * doc/regexprops-generic.texi: Add a copyright notice.
51128
51129 2006-08-15  Bruno Haible  <bruno@clisp.org>
51130
51131         * modules/tmpdir (License): Change to LGPL.
51132
51133 2006-08-15  Bruno Haible  <bruno@clisp.org>
51134
51135         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51136         module.
51137
51138 2006-08-14  Simon Josefsson  <jas@extundo.com>
51139
51140         * config/srclist.txt: Add gnupload.
51141
51142 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51143
51144         Change copyright notice from LGPL 2 to GPL 2, since that's the
51145         standard form used in the gnulib repository.
51146         * tests/test-lock.c: Likewise.
51147         * tests/test-stdint.c: Likewise.
51148         * tests/test-tls.c: Likewise.
51149
51150         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51151         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51152         Add copyright notice.
51153
51154         * check-module: Add copyright notice.  Output a copyright
51155         notice if "--version" is specified.
51156         * modules/COPYING: New file.
51157         * tests/test-getaddrinfo.c: Add copyright notice.
51158         * tests/test-verify.c: Likewise.
51159
51160 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51161
51162         Change copyright notice from LGPL 2 to GPL 2, since that's the
51163         standard form used in the gnulib repository.
51164         * lib/lock.c: LGPL -> GPL.
51165         * lib/lock.h: Likewise.
51166         * lib/strnlen1.c: Likewise.
51167         * lib/strnlen1.h: Likewise.
51168         * lib/tls.c: Likewise.
51169         * lib/tls.h: Likewise.
51170         * lib/tmpdir.c: Likewise.
51171
51172         * lib/TODO: Remove; this belongs only in coreutils.
51173
51174 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51175
51176         Add copyright notices to long-enough files that lack them, since
51177         otherwise the files aren't clearly free.  Use the same notice that
51178         getdate.texi already uses.
51179         * doc/alloca-opt.texi: Add copyright notice.
51180         * doc/alloca.texi: Likewise.
51181         * doc/ctime.texi: Likewise.
51182         * doc/functions.texi: Likewise.
51183         * doc/gcd.texi: Likewise.
51184         * doc/gnulib-tool.texi: Likewise.
51185         * doc/inet_ntoa.texi: Likewise.
51186         * doc/visibility.texi: Likewise.
51187
51188         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51189         * doc/quote.texi: Add copyright notice.
51190
51191         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51192         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51193         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51194         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51195         is now obsolete, and give a pointer to the Sun list.
51196         Add copyright notice.
51197
51198 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51199
51200         * config/srclistvars.sh: Add copyright notice.
51201
51202 2006-08-14  Eric Blake  <ebb9@byu.net>
51203
51204         Import the following change from libc:
51205
51206         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51207
51208         Upstream bug 2997.
51209         * lib/misc/error.c: Add space between program name and message if file
51210         name is missing.
51211
51212 2006-08-12  Karl Berry  <karl@gnu.org>
51213
51214         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51215         remove, these originate in gnulib now.
51216
51217 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51218
51219         * doc/Makefile (standards.info standards.html standards.dvi):
51220         Also depend on make-stds.texi.
51221
51222 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51223
51224         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51225         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51226
51227         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51228         in wchar_t.  Problem reported by Eric Blake.
51229
51230         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51231         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51232         Also, help the compiler to keep LEN in a register.
51233
51234 2006-08-11  Eric Blake  <ebb9@byu.net>
51235
51236         * users.txt: Sort.  Add tar.
51237
51238 2006-08-11  Bruno Haible  <bruno@clisp.org>
51239
51240         * users.txt: New file.
51241
51242 2006-08-11  Bruno Haible  <bruno@clisp.org>
51243
51244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51245         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51246
51247 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * modules/snprintf (Depends-on): Remove minmax.
51250         (Maintainer): Add self and Bruno.
51251
51252 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51255         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51256         (EOVERFLOW): Define if the system does not.
51257         Do not include "minmax.h"; it wasn't used.
51258         (snprintf): Don't assume size_t promotes to an unsigned type.
51259         Fix bug when generated string was too long for the buffer: the
51260         buffer's contents are supposed to be the initial prefix of the
51261         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51262         exceeds INT_MAX; do the check ourselves.
51263
51264         Import the following changes from libc:
51265
51266         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51267
51268         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51269         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51270         set wc to the byte which couldn't be converted.
51271         (re_string_reconstruct): Don't clear valid_raw_len before calling
51272         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51273         tip_context using re_string_context_at.
51274
51275         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51276
51277         * lib/posix/regex.h: g++ still cannot handled [restrict].
51278
51279         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51280
51281         * lib/posix/regex.h: Remove special handling for VMS.
51282
51283 2006-08-10  Jim Meyering  <jim@meyering.net>
51284
51285         * modules/same-inode: New module.
51286         * modules/dev-ino: New module.
51287         * modules/cycle-check: Depend on these modules, rather than simply
51288         including their .h files.
51289         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51290         required via m4/cycle-check.m4.
51291         * modules/same: Depend on new same-inode module, rather than
51292         including same-inode.h.
51293         * modules/chdir-safer: New file.
51294
51295         * modules/chown (Depends-on): Add stat-macros.
51296
51297 2006-08-10  Jim Meyering  <jim@meyering.net>
51298
51299         * m4/cycle-check.m4: New file.
51300         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51301         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51302
51303 2006-08-10  Eric Blake  <ebb9@byu.net>
51304
51305         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51306         in from original proposal.
51307
51308 2006-08-10  Eric Blake  <ebb9@byu.net>
51309         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51310
51311         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51312         namespace.
51313
51314 2006-08-10  Bruno Haible  <bruno@clisp.org>
51315
51316         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51317         as well.
51318
51319 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51320
51321         Sync from coreutils.
51322
51323         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51324
51325         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51326         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51327
51328 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * modules/restrict: Remove; no longer needed now that we assume
51331         Autoconf 2.59 or later.
51332         * MODULES.html.sh: Remove 'restrict'.
51333         * modules/argp (Depends-on): Remove 'restrict'.
51334         * modules/base64 (Depends-on): Likewise.
51335         * modules/gc (Depends-on): Likewise.
51336         * modules/getaddrinfo (Depends-on): Likewise.
51337         * modules/glob (Depends-on): Likewise.
51338         * modules/inet_ntop (Depends-on): Likewise.
51339         * modules/inet_pton (Depends-on): Likewise.
51340         * modules/memxor (Depends-on): Likewise.
51341         * modules/regex (Depends-on): Likewise.
51342         * modules/strtok_r (Depends-on): Likewise.
51343         * modules/time_r (Depends-on): Likewise.
51344
51345 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51346
51347         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51348         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51349         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51350         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51351         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51352         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51353         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51354         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51355
51356         Merge from coreutils.
51357         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51358         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51359         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51360         * m4/time_r.m4 (gl_TIME_R): Likewise.
51361
51362 2006-08-09  Karl Berry  <karl@gnu.org>
51363
51364         * config/srclist.txt: no more gettext-tools, per Bruno.
51365
51366 2006-08-08  Eric Blake  <ebb9@byu.net>
51367
51368         * modules/verror: New module.
51369         * MODULES.html.sh: Document it.
51370
51371 2006-08-08  Eric Blake  <ebb9@byu.net>
51372
51373         * lib/verror.h, lib/verror.c: New files.
51374
51375 2006-08-08  Eric Blake  <ebb9@byu.net>
51376
51377         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51378         verror_at_line output complies with GNU Coding Standards even when
51379         file is NULL.
51380
51381 2006-08-07  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51384         versions of AIX.
51385         Reported by Ralf Wildenhues.
51386
51387 2006-08-07  Bruno Haible  <bruno@clisp.org>
51388
51389         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51390         in an AC_DEFUN. Needed so that the autoconf snippets can use
51391         AC_REQUIRE.
51392
51393 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51394
51395         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51396         Initialize pkgdata_DATA.
51397         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51398         overriding it.
51399
51400 2006-08-06  Eric Blake  <ebb9@byu.net>
51401
51402         * lib/error.h: Fold in some upstream changes from glibc.
51403         * lib/error.c: Likewise.
51404
51405 2006-08-04  Bruno Haible  <bruno@clisp.org>
51406
51407         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51408         Make the mostlyclean-local rule depend on mostlyclean-generic.
51409         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51410
51411 2006-07-31  Bruno Haible  <bruno@clisp.org>
51412
51413         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51414         <stdlib.h>, <string.h>.
51415
51416 2006-07-30  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/readlink (License): Change to LGPL.
51419
51420 2006-07-30  Bruno Haible  <bruno@clisp.org>
51421
51422         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51423         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51424         set PKGDATADIR to point to it.
51425
51426 2006-07-30  Bruno Haible  <bruno@clisp.org>
51427
51428         * modules/csharpexec (configure.ac): Comment out macro invocation.
51429         * modules/javaexec (configure.ac): Likewise.
51430         * modules/javacomp-script (configure.ac): Likewise.
51431
51432         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51433
51434 2006-07-30  Bruno Haible  <bruno@clisp.org>
51435
51436         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51437         linked-list.
51438
51439 2006-07-30  Bruno Haible  <bruno@clisp.org>
51440
51441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51442
51443 2006-07-30  Bruno Haible  <bruno@clisp.org>
51444
51445         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51446         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51447         get removed.
51448
51449 2006-07-29  Bruno Haible  <bruno@clisp.org>
51450
51451         Make it possible for gnulib-tool to work with locally modified or
51452         augmented gnulib repositories.
51453         * gnulib-tool (func_usage): Document --local-dir option.
51454         (local_gnulib_dir): New variable.
51455         Handle --local-dir option.
51456         (func_lookup_file): New function.
51457         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51458         (func_get_description, func_get_filelist, func_get_description,
51459         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51460         func_get_automake_snippet, func_get_include_directive,
51461         func_get_license, func_get_maintainer): Use func_lookup_file.
51462         (func_import, func_create_testdir): Use func_lookup_file.
51463
51464 2006-07-29  Bruno Haible  <bruno@clisp.org>
51465
51466         * modules/setenv (Depends-on): Add unistd.
51467
51468 2006-07-29  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51471
51472 2006-07-29  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51475
51476 2006-07-29  Bruno Haible  <bruno@clisp.org>
51477
51478         * gnulib-tool (import, update): If there is no Makefile.am, look at
51479         aclocal.m4, instead of bailing out.
51480
51481 2006-07-29  Bruno Haible  <bruno@clisp.org>
51482
51483         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51484         Categorize the options by when they are useful.
51485
51486 2006-07-29  Bruno Haible  <bruno@clisp.org>
51487
51488         * gnulib-tool (func_usage): Document option --no-libtool.
51489         Handle option --no-libtool.
51490         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51491         for changed semantics of $libtool variable.
51492         (func_import): Likewise. If libtool is not used, show this through
51493         an option --no-libtool.
51494         (func_create_testdir): Update.
51495
51496 2006-07-29  Bruno Haible  <bruno@clisp.org>
51497
51498         * gnulib-tool (func_import): Extend error message about missing
51499         --doc-base.
51500
51501 2006-07-29  Bruno Haible  <bruno@clisp.org>
51502
51503         * gnulib-tool (func_import): Don't create the $docbase directory if
51504         there is no file to store there.
51505
51506 2006-07-29  Bruno Haible  <bruno@clisp.org>
51507
51508         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51509         relevant, look for configure.ac there, not in the current directory.
51510         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51511
51512 2006-07-29  Bruno Haible  <bruno@clisp.org>
51513
51514         * gnulib-tool (SORT): New variable.
51515         (func_usage): Undocument --assume-autoconf option.
51516         Remove --assume-autoconf option handling.
51517         (autoconf_minversion): Determine from the contents of configure.ac.
51518         (func_import): Remove autoconf_minversion handling.
51519         Suggested by Eric Blake.
51520
51521 2006-07-29  Bruno Haible  <bruno@clisp.org>
51522
51523         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51524
51525 2006-07-29  Bruno Haible  <bruno@clisp.org>
51526
51527         * config/srclist.txt (*setenv.[ch]): Remove rules.
51528
51529 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51530
51531         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51532
51533 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51534
51535         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51536         arpa/inet.h.
51537
51538 2006-07-28  Simon Josefsson  <jas@extundo.com>
51539
51540         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51541         * modules/inet_pton (Depends-on): Likewise.
51542
51543 2006-07-28  Simon Josefsson  <jas@extundo.com>
51544
51545         * m4/netinet_in_h.m4: New file.
51546
51547 2006-07-28  Simon Josefsson  <jas@extundo.com>
51548
51549         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51550         #include's.
51551
51552 2006-07-28  Simon Josefsson  <jas@extundo.com>
51553
51554         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51555         #include's.
51556
51557 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51560         setgid on directories only if they set these bits.
51561         * lib/modechange.h: Remove obsolete comment about masks.
51562
51563 2006-07-28  Eric Blake  <ebb9@byu.net>
51564
51565         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51566         macro expansion.
51567
51568 2006-07-28  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51571
51572 2006-07-28  Bruno Haible  <bruno@clisp.org>
51573
51574         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51575
51576 2006-07-28  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51579         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51580         Define fallbacks.
51581         Avoids link error on FreeBSD 4.x.
51582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51583
51584         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51585         encoding.
51586         * lib/mbswidth.c (iswcntrl): Likewise.
51587
51588 2006-07-27  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51591         test.
51592
51593 2006-07-27  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51596         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51597         defined.
51598
51599 2006-07-26  Eric Blake  <ebb9@byu.net>
51600
51601         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51602
51603 2006-07-26  Eric Blake  <ebb9@byu.net>
51604
51605         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51606         like mingw that lack mkstemp.
51607         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51608         avoid compilation warning on mingw.
51609
51610 2006-07-26  Bruno Haible  <bruno@clisp.org>
51611
51612         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51613         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51614         INT_FAST*_MIN, INTPTR_MIN.
51615
51616 2006-07-25  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/version-etc (Depends-on): Add stdarg.
51619
51620 2006-07-25  Bruno Haible  <bruno@clisp.org>
51621
51622         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51623         complex commands.
51624
51625 2006-07-25  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51628         defined in <stdarg.h> or config.h.
51629
51630 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51631
51632         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51633         (gl_STDIO_SAFER): Remove.
51634
51635 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51636
51637         * MODULES.html.sh (File stream based Input/Output):
51638         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51639         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51640         * modules/fopen-safer, modules/tmpfile-safer: New files.
51641         * modules/stdio-safer: Remove.
51642
51643 2006-07-24  Bruno Haible  <bruno@clisp.org>
51644
51645         * modules/tmpdir: New file.
51646         * MODULES.html.sh (File system functions): Add it.
51647
51648 2006-07-24  Bruno Haible  <bruno@clisp.org>
51649
51650         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51651         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51652
51653 2006-07-24  Bruno Haible  <bruno@clisp.org>
51654
51655         * modules/clean-temp: New file.
51656
51657 2006-07-24  Bruno Haible  <bruno@clisp.org>
51658
51659         * m4/tmpdir.m4: New file, from GNU gettext.
51660
51661 2006-07-24  Bruno Haible  <bruno@clisp.org>
51662
51663         * lib/tmpdir.h: New file, from GNU gettext.
51664         * lib/tmpdir.c: New file, from GNU gettext.
51665
51666 2006-07-24  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/clean-temp.h: New file, from GNU gettext.
51669         * lib/clean-temp.c: New file, from GNU gettext.
51670
51671 2006-07-23  Eric Blake  <ebb9@byu.net>
51672
51673         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51674         (Depends-on): Add binary-io.
51675
51676 2006-07-23  Eric Blake  <ebb9@byu.net>
51677
51678         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51679
51680 2006-07-23  Eric Blake  <ebb9@byu.net>
51681
51682         * lib/tmpfile-safer.c: New file.
51683         * lib/stdio-safer.h (fopen_safer): Add prototype.
51684         * lib/stdio--.h (tmpfile): Make safer.
51685
51686 2006-07-23  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51689         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51690         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51691         gl_linked_remove_at): Use it.
51692
51693 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51694         and Simon Josefsson <jas@extundo.com>
51695
51696         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51697
51698         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51699
51700 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         * modules/close-stream: New file.
51703         * modules/closeout (Description): Make it clear that it exits
51704         with a diagnostic on error.
51705         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51706         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51707
51708 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * m4/close-stream.m4: New file.
51711
51712 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51713
51714         * lib/close-stream.c, lib/close-stream.h: New files.
51715
51716 2006-07-22  Bruno Haible  <bruno@clisp.org>
51717
51718         Merge from GNU gettext 0.15.
51719
51720         2006-05-01  Bruno Haible  <bruno@clisp.org>
51721
51722                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51723
51724         2006-07-22  Bruno Haible  <bruno@clisp.org>
51725
51726                 * modules/javaversion: New file.
51727                 * MODULES.html.sh (Java): Add javaversion.
51728
51729         2006-03-12  Bruno Haible  <bruno@clisp.org>
51730
51731                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51732
51733         2005-12-04  Bruno Haible  <bruno@clisp.org>
51734
51735                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51736                 (untested).
51737
51738         2006-06-21  Bruno Haible  <bruno@clisp.org>
51739
51740                 Avoid warnings from recent versions of mcs.
51741                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51742                 -o, -L, -r any more. Use options documented since mcs-1.0
51743                 instead. Similarly for -g.
51744
51745         2005-12-04  Bruno Haible  <bruno@clisp.org>
51746
51747                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51748                 .resources, not .resource.
51749
51750         2005-07-09  Bruno Haible  <bruno@clisp.org>
51751
51752                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51753                 add a .dll suffix.
51754                 Reported by Mark Junker <mjscod@gmx.de>.
51755
51756         2006-07-22  Bruno Haible  <bruno@clisp.org>
51757
51758                 * modules/gettext: Upgrade to gettext-0.15.
51759                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51760                 m4/visibility.m4.
51761                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51762
51763 2006-07-22  Bruno Haible  <bruno@clisp.org>
51764
51765         Merge from GNU gettext 0.15.
51766
51767         2006-03-25  Bruno Haible  <bruno@clisp.org>
51768
51769                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51770
51771         2006-07-21  Bruno Haible  <bruno@clisp.org>
51772
51773                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51774                 "1.1".
51775
51776         2006-05-09  Bruno Haible  <bruno@clisp.org>
51777
51778                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51779                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51780                 for the conftestver execution.
51781
51782         2006-05-01  Bruno Haible  <bruno@clisp.org>
51783
51784                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51785                 optional target-version argument. Verify that the compiler
51786                 groks source of the specified source-version, or add -source
51787                 option as necessary. Verify that the compiler produces
51788                 bytecode in the specified target-version, or add -target and
51789                 -source options as necessary. Make the result of the test
51790                 available as variable CONF_JAVAC. Also log error output in
51791                 config.log.
51792
51793         2006-03-11  Bruno Haible  <bruno@clisp.org>
51794
51795                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51796
51797         2006-05-09  Bruno Haible  <bruno@clisp.org>
51798
51799                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51800                 CLASSPATH_SEPARATOR to a semicolon.
51801
51802         2006-03-12  Bruno Haible  <bruno@clisp.org>
51803
51804                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51805                 available as variable CONF_JAVA, for subsequent autoconf
51806                 tests. Also log error output in config.log.
51807
51808         2006-07-19  Bruno Haible  <bruno@clisp.org>
51809
51810                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51811                 that getline works on glibc2 systems. Needed to avoid trouble
51812                 in relocatable.c.
51813                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51814
51815         2005-12-04  Bruno Haible  <bruno@clisp.org>
51816
51817                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51818                 launcher (untested).
51819
51820         2005-12-04  Bruno Haible  <bruno@clisp.org>
51821
51822                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51823
51824         2006-07-22  Bruno Haible  <bruno@clisp.org>
51825
51826                 * gettext.m4: Update from GNU gettext-0.15.
51827                 * nls.m4: Likewise.
51828                 * po.m4: Likewise.
51829                 * inttypes-pri.m4: Likewise.
51830                 * inttypes-h.m4: Renamed from inttypes.m4.
51831                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51832
51833 2006-07-22  Bruno Haible  <bruno@clisp.org>
51834
51835         Merge from GNU gettext 0.15.
51836
51837         2005-07-05  Bruno Haible  <bruno@clisp.org>
51838
51839                 * printf-args.c (printf_fetchargs): Work around broken
51840                 definition of wint_t on mingw.
51841
51842         2005-02-12  Bruno Haible  <bruno@clisp.org>
51843
51844                 * xallocsa.h: Add extern "C" for C++.
51845
51846         2006-05-17  Bruno Haible  <bruno@clisp.org>
51847
51848                 Cygwin portability.
51849                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51850
51851         2006-04-30  Bruno Haible  <bruno@clisp.org>
51852
51853                 * progreloc.c: Include <mach-o/dyld.h> if available.
51854                 (find_executable): Use _NSGetExecutablePath when possible.
51855
51856         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51857
51858                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51859                 function.
51860
51861         2005-12-29  Bruno Haible  <bruno@clisp.org>
51862
51863                 * progreloc.c (set_program_name_and_installdir): Fix
51864                 compilation error.
51865
51866         2005-12-04  Bruno Haible  <bruno@clisp.org>
51867
51868                 Cygwin portability.
51869                 * progreloc.c: Include <windows.h> also on Cygwin.
51870                 (find_executable): Add support for Cygwin.
51871                 (set_program_name_and_installdir): Handle also platforms with
51872                 nonempty EXEEXT.
51873
51874         2006-07-11  Bruno Haible  <bruno@clisp.org>
51875
51876                 * javacomp.c: Fix a comment.
51877                 Reported by Jim Meyering.
51878
51879         2006-04-30  Bruno Haible  <bruno@clisp.org>
51880
51881                 * javacomp.h (compile_java_class): Add source_version,
51882                 target_version arguments.
51883                 * javacomp.c: Rewritten to choose only a compiler that
51884                 respects the specified source_version and target_version.
51885
51886         2006-06-27  Bruno Haible  <bruno@clisp.org>
51887
51888                 Assume correct S_ISDIR macro.
51889                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51890
51891         2006-07-22  Bruno Haible  <bruno@clisp.org>
51892
51893                 * javaversion.h: New file, from GNU gettext.
51894                 * javaversion.c: New file, from GNU gettext.
51895                 * javaversion.java: New file, from GNU gettext.
51896                 * javaversion.class: New file, from GNU gettext.
51897
51898         2006-05-17  Bruno Haible  <bruno@clisp.org>
51899
51900                 Cygwin portability.
51901                 * javaexec.c (execute_java_class): Test for jview program
51902                 also on Cygwin.
51903
51904         2006-04-09  Bruno Haible  <bruno@clisp.org>
51905
51906                 * fatal-signal.c: Don't include string.h.
51907                 (at_fatal_signal): Use a copying loop instead of memcpy.
51908
51909         2005-12-04  Bruno Haible  <bruno@clisp.org>
51910
51911                 * csharpexec.c: Add support for 'clix' launcher (untested).
51912                 (execute_csharp_using_sscli): New function.
51913                 (execute_csharp_program): Call it.
51914
51915         2006-06-21  Bruno Haible  <bruno@clisp.org>
51916
51917                 Avoid warnings from recent versions of mcs.
51918                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51919                 -o, -L, -r any more. Use options documented since mcs-1.0
51920                 instead. Similarly for -g.
51921
51922         2005-07-09  Bruno Haible  <bruno@clisp.org>
51923
51924                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51925                 add a .dll suffix.
51926                 Reported by Mark Junker <mjscod@gmx.de>.
51927
51928         2006-06-17  Bruno Haible  <bruno@clisp.org>
51929
51930                 * config.charset: Update for NetBSD 3.0.
51931
51932         2006-05-17  Bruno Haible  <bruno@clisp.org>
51933
51934                 Cygwin portability.
51935                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
51936
51937         2006-05-16  Bruno Haible  <bruno@clisp.org>
51938
51939                 * localcharset.c [CYGWIN]: Include <windows.h>.
51940                 (get_charset_aliases): For Cygwin, return the same CPxxx
51941                 aliases list as under WIN32.
51942                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
51943                 the environment variables. Fall back to GetACP().
51944
51945         2006-04-05  Bruno Haible  <bruno@clisp.org>
51946
51947                 * config.charset: Update Juan Manuel Guerrero's address.
51948
51949         2005-02-12  Bruno Haible  <bruno@clisp.org>
51950
51951                 * allocsa.h: Add extern "C" for C++.
51952
51953         2005-02-10  Bruno Haible  <bruno@clisp.org>
51954
51955                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
51956                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
51957
51958         2006-07-22  Bruno Haible  <bruno@clisp.org>
51959
51960                 * gettext.h: Update to GNU gettext-0.15.
51961
51962 2006-07-22  Bruno Haible  <bruno@clisp.org>
51963
51964         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
51965         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
51966         lib-prefix.m4, longdouble.m4, ssize_t.m4.
51967
51968 2006-07-21  Eric Blake  <ebb9@byu.net>
51969
51970         * modules/stdlib-safer: New file.
51971         * MODULES.html.sh (File stream based Input/Output): Add
51972         stdlib-safer.
51973
51974 2006-07-21  Eric Blake  <ebb9@byu.net>
51975
51976         * lib/stdlib-safer.h: New file from coreutils, required by
51977         stdlib--.h.
51978
51979 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
51982
51983 2006-07-20  Bruno Haible  <bruno@clisp.org>
51984
51985         * gnulib-tool: Recognize new option --assume-autoconf.
51986         (autoconf_minversion): New variable.
51987         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
51988
51989 2006-07-20  Bruno Haible  <bruno@clisp.org>
51990
51991         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
51992
51993 2006-07-19  Derek R. Price  <derek@ximbiot.com>
51994
51995         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
51996         Reindent and repaginate.
51997
51998 2006-07-19  Derek Price  <derek@ximbiot.com>
51999
52000         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52001         Correct grammar.
52002
52003 2006-07-17  Bruno Haible  <bruno@clisp.org>
52004
52005         * modules/list: New file.
52006         * modules/array-list: New file.
52007         * modules/carray-list, modules/carray-list-tests: New files.
52008         * modules/linked-list, modules/linked-list-tests: New files.
52009         * modules/avltree-list, modules/avltree-list-tests: New files.
52010         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52011         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52012         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52013         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52014         * modules/oset: New file.
52015         * modules/array-oset: New file.
52016         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52017         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52018         * tests/test-carray_list.c: New file.
52019         * tests/test-linked_list.c: New file.
52020         * tests/test-avltree_list.c: New file.
52021         * tests/test-rbtree_list.c: New file.
52022         * tests/test-linkedhash_list.c: New file.
52023         * tests/test-avltreehash_list.c: New file.
52024         * tests/test-rbtreehash_list.c: New file.
52025         * tests/test-avltree_oset.c: New file.
52026         * tests/test-rbtree_oset.c: New file.
52027         * MODULES.html.sh (Container data structures): New section.
52028
52029 2006-07-17  Bruno Haible  <bruno@clisp.org>
52030
52031         * m4/gl_list.m4: New file.
52032
52033 2006-07-17  Bruno Haible  <bruno@clisp.org>
52034
52035         * lib/gl_list.h: New file.
52036         * lib/gl_list.c: New file.
52037         * lib/gl_array_list.h: New file.
52038         * lib/gl_array_list.c: New file.
52039         * lib/gl_carray_list.h: New file.
52040         * lib/gl_carray_list.c: New file.
52041         * lib/gl_linked_list.h: New file.
52042         * lib/gl_linked_list.c: New file.
52043         * lib/gl_anylinked_list1.h: New file.
52044         * lib/gl_anylinked_list2.h: New file.
52045         * lib/gl_avltree_list.h: New file.
52046         * lib/gl_avltree_list.c: New file.
52047         * lib/gl_anyavltree_list1.h: New file.
52048         * lib/gl_anyavltree_list2.h: New file.
52049         * lib/gl_rbtree_list.h: New file.
52050         * lib/gl_rbtree_list.c: New file.
52051         * lib/gl_anyrbtree_list1.h: New file.
52052         * lib/gl_anyrbtree_list2.h: New file.
52053         * lib/gl_anytree_list1.h: New file.
52054         * lib/gl_anytree_list2.h: New file.
52055         * lib/gl_linkedhash_list.h: New file.
52056         * lib/gl_linkedhash_list.c: New file.
52057         * lib/gl_anyhash_list1.h: New file.
52058         * lib/gl_anyhash_list2.h: New file.
52059         * lib/gl_avltreehash_list.h: New file.
52060         * lib/gl_avltreehash_list.c: New file.
52061         * lib/gl_rbtreehash_list.h: New file.
52062         * lib/gl_rbtreehash_list.c: New file.
52063         * lib/gl_anytreehash_list1.h: New file.
52064         * lib/gl_anytreehash_list2.h: New file.
52065
52066         * lib/gl_oset.h: New file.
52067         * lib/gl_oset.c: New file.
52068         * lib/gl_array_oset.h: New file.
52069         * lib/gl_array_oset.c: New file.
52070         * lib/gl_avltree_oset.h: New file.
52071         * lib/gl_avltree_oset.c: New file.
52072         * lib/gl_rbtree_oset.h: New file.
52073         * lib/gl_rbtree_oset.c: New file.
52074         * lib/gl_anytree_oset.h: New file.
52075
52076 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * m4/mkancesdirs.m4: New file.
52079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52080         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52081         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52082         it.
52083
52084 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52085
52086         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52087         * lib/mkancesdirs.h: New files.
52088         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52089         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52090         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52091         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52092         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52093         callers changed.  Revamp internals significantly, by not
52094         attempting to create directories that are temporarily more
52095         permissive than the final results.  Do not attempt to use
52096         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52097         This removes some race conditions, fixes some bugs, and simplifies
52098         things.  Use new dirchownmod function to do owner and mode changes.
52099         * lib/mkdir-p.h: Likewise.
52100         * lib/modechange.c (octal_to_mode): New function.
52101         (struct mode_change): New member mentioned.
52102         (make_node_op_equals): New arg mentioned.  All callers changed.
52103         (mode_compile): Keep track of which mode bits the user has explicitly
52104         mentioned.
52105         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52106         New arg PMODE_BITS, to keep track of which mode bits the user
52107         mentioned; it treats S_ISUID and S_ISGID speciall.
52108         All callers changed.
52109         * lib/modechange.h: Likewise.
52110
52111 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52112
52113         * MODULES.html.sh: Add mkancestors.
52114         * modules/mkancesdirs: New module.
52115         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52116         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52117         The chdir-safer and afs files are now orphans; I'll remove them
52118         unless someone speaks up.
52119         Add lib/dirchownmod.c, lib/dirchownmod.h.
52120         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52121         Add lchown, mkancesdirs.
52122         (Maintainer): Add self.
52123
52124 2006-07-15  Karl Berry  <karl@gnu.org>
52125
52126         * gnulib-tool: help message wording/arrangement.
52127
52128 2006-07-14  Simon Josefsson  <jas@extundo.com>
52129
52130         * doc/gnulib.texi (Libtool and Windows): New section.
52131
52132 2006-07-12  Simon Josefsson  <jas@extundo.com>
52133
52134         * modules/gendocs (License): Fix license, approved by Karl.
52135
52136 2006-07-12  Eric Blake  <ebb9@byu.net>
52137
52138         * MODULES.html.sh: Add gendocs.
52139
52140 2006-07-11  Eric Blake  <ebb9@byu.net>
52141
52142         * modules/fdl: New module, to install doc/fdl.texi.
52143         * MODULES.html.sh: Add new section for documentation modules.
52144         * gnulib-tool: Avoid space-tab.
52145         (--doc-base): New option, to manage files from doc.
52146
52147 2006-07-11  Eric Blake  <ebb9@byu.net>
52148
52149         * m4/absolute-header.m4: Fix comments to match recent change.
52150
52151 2006-07-11  Eric Blake  <ebb9@byu.net>
52152
52153         * gnulib-tool: List --doc-base before --tests-base.
52154
52155 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52156
52157         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52158
52159 2006-07-11  Bruno Haible  <bruno@clisp.org>
52160
52161         * README: Mention where to put documentation.
52162
52163 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52164
52165         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52166
52167 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52170         to stdint.m4.
52171
52172 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52173
52174         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52175         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52176         "no/such/file/stdint.h" when there is no such file, so that
52177         the resulting C code can be parsed by dodgy compilers.
52178         Problems reported by Bob Proulx.
52179
52180 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52181
52182         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52183         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52184         macros into the GNU _D_EXACT_NAMLEN.
52185         * lib/savedir.c:  Likewise.
52186         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52187
52188 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52189         and Paul Eggert  <eggert@cs.ucla.edu>
52190
52191         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52192         * m4/savedir.m4:
52193         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52194         macros into the GNU _D_EXACT_NAMLEN.
52195
52196 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52197
52198         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52199         around the absolute name, to work around a problem with the HP-UX
52200         11.23 native C compiler, reported by Bob Proulx.
52201
52202 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * doc/maintain.texi, make-stds.texi: Sync from
52205         <http://savannah.gnu.org/projects/gnustandards>.
52206
52207 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52208
52209         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52210
52211 2006-07-09  Jim Meyering  <jim@meyering.net>
52212
52213         * m4/glob.m4: Remove a doubled word in a comment.
52214
52215 2006-07-09  Jim Meyering  <jim@meyering.net>
52216
52217         * lib/argp-pv.c: Remove a doubled word in a comment.
52218         * lib/check-version.c (check_version): Likewise.
52219         * lib/javacomp.c (compile_java_class): Likewise.
52220
52221 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52222
52223         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52224         for the benefit of people using Autoconf 2.60.  If you want to
52225         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52226         (or m4/onceonly.m4, if pre-2.57) manually.
52227
52228 2006-07-08  Jim Meyering  <jim@meyering.net>
52229
52230         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52231         comment.
52232         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52233         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52234         comment.
52235
52236 2006-07-08  Jim Meyering  <jim@meyering.net>
52237
52238         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52239
52240 2006-07-07  Simon Josefsson  <jas@extundo.com>
52241
52242         * tests/test-crc.c: Change expected crc value, the test vector
52243         were probably computed using the old broken crc.c?
52244
52245 2006-07-06  Simon Josefsson  <jas@extundo.com>
52246
52247         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52248         now the canonical place for the M4 file).
52249
52250         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52251         from the sys_socket dependency now.
52252
52253         * modules/inet_pton (Files): Ditto.
52254
52255         * modules/inet_ntop (Files): Ditto.
52256
52257 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52258
52259         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52260         not gl_PREREQ_GETUSERSHELL.
52261
52262 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52263
52264         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52265         with only one argument, for Autoconf 2.60.
52266         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52267         expand to nothing, so add a shell command to avoid syntax error.
52268         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52269
52270 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52271
52272         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52273
52274 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52275
52276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52277         no longer needed.  Check for isblank decl.
52278         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52279         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52280         of existence.
52281
52282 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         * lib/getloadavg.c: Use __VMS, not VMS.
52285         * lib/getopt.c: Likewise.
52286         * lib/getpagesize.h: Likewise.
52287         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52288         and probably does not work.
52289
52290 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52291
52292         * lib/.cppi-disable: Add wcwidth.
52293         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52294         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52295         (ISGRAPH): Remove.  All uses changed to isgraph.
52296         (FOLD) [!defined _LIBC]: Remove special case.
52297         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52298         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52299         HAVE_ISBLANK.
52300         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52301         case.
52302
52303 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52304
52305         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52306         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52307         brackets.  Other minor changes to suppress some compiler
52308         warnings.
52309
52310 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52311         and Paul Eggert  <eggert@cs.ucla.edu>
52312
52313         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52314         of invoking obsolescent AC_HEADER_DIRENT macro.
52315         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52316         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52319         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52320         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52321         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52322         * m4/readdir.m4: Remove; no longer needed.
52323
52324 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52325         and Paul Eggert  <eggert@cs.ucla.edu>
52326
52327         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52328         Don't worry about this obsolete case any more.
52329         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52330         directories.
52331         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52332         worry about this obsolete case any more.
52333         * lib/fts.c: Likewise.
52334         * lib/getcwd.c: Likewise.
52335         * lib/glob.h: Likewise.
52336         * lib/savedir.c: Likewise.
52337
52338 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52341         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52342         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52343         needed.
52344         All uses removed.
52345         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52346         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52347         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52348         needed.
52349         * m4/getdate.m4 (gl_GETDATE): Likewise.
52350         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52351         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52352         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52353         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52354         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52355         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52356         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52357         needed.
52358
52359 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/memcasecmp.c: Include <limits.h>.
52362         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52363         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52364         Don't assume isdigit succeeds only on '0' through '9'.
52365
52366 2006-07-05  Eric Blake  <ebb9@byu.net>
52367
52368         * modules/getaddrinfo (Depends-on): Add snprintf.
52369
52370 2006-07-05  Eric Blake  <ebb9@byu.net>
52371
52372         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52373         to avoid 'header present but could not be compiled' on cygwin.
52374
52375 2006-07-05  Eric Blake  <ebb9@byu.net>
52376
52377         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52378         missing from netdb.h.
52379         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52380
52381 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52382
52383         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52384         no longer needed.
52385         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52386         * m4/getdate.m4 (gl_GETDATE): Likewise.
52387         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52388         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52389         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52390         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52391         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52392
52393 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52394
52395         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52396         All uses of is_space replaced by isspace.
52397         * lib/exit.h: Don't talk about STDC_HEADERS.
52398         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52399         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52400         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52401         replaced by isprint etc.
52402         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52403         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52404         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52405         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52406         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52407         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52408
52409 2006-07-05  Bruno Haible  <bruno@clisp.org>
52410
52411         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52412         the function exists, before testing against AIX.
52413         Reported by Martin Lambers <marlam@marlam.de>.
52414
52415 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52418         From Mark D. Baushke.
52419
52420 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52421
52422         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52423         to the absolute name, not just one, to bypass Sun C 5.8's
52424         "warning: #include of /usr/include/... may be non-portable".
52425
52426 2006-07-04  Eric Blake  <ebb9@byu.net>
52427
52428         * modules/dirname-tests: New test module.
52429         * tests/test-dirname.c: New file, replacing dirname.c
52430         TEST_DIRNAME section that was recently deleted.
52431
52432 2006-07-04  Bruno Haible  <bruno@clisp.org>
52433
52434         Assume ANSI C header files and <ctype.h> functions.
52435         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52436         (mbsnwidth): Use isprint, iscntrl instead.
52437
52438 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52439
52440         Merge from coreutils.
52441         * MODULES.html.sh: Add xstrtold.
52442         * modules/xstrtold: New file.
52443         * modules/cycle-check (Files): Add lib/same-inode.h.
52444         * modules/dirname (Files): Add m4/double-slash-root.m4.
52445         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52446         * modules/mkdir-p (Files): Add lib/same-inode.h.
52447         * modules/same (Files): Add lib/same-inode.h.
52448
52449 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52450
52451         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52452         This is to keep the terminology clean; POSIX talks about
52453         "absolute pathnames", not "full pathnames", but the GNU
52454         Coding Standards say to use "path" for something else;
52455         so use "absolute" to keep both sides happy.
52456         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52457         Set gl_absolute_header, not gl_full_header_path.
52458         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52459         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52460         All uses changed.
52461
52462         Merge from coreutils.
52463
52464         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52465
52466         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52467         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52468         want to require the building of c-strtod.o.
52469         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52470         needs -lm directly.
52471         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52472
52473         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52476         --as-needed option if available.  Problem reported by Albert Chin in
52477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52478         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52479         cc merely issues a bunch of annoying warnings for --as-needed
52480         (this problem was reported by Bob Proulx).  Also, try linking with
52481         -lm to detect a bug in binutils 2.16 (this problem was reported
52482         by Ralf Wildenhues).
52483
52484         2006-06-18  Jim Meyering  <jim@meyering.net>
52485
52486         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52487         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52488         macro.
52489         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52490         also check for glibc-2.4's abort-inducing bug.
52491
52492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52493         Low-probability clean-up should be to use rmdir to get rid of
52494         the just-created directory, not unlink.
52495
52496         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52497         configure fail, and request a bug report to inform us about it.
52498         Add a comment that, barring reports to the contrary, in 2007 we'll
52499         assume ftruncate is universally available.
52500
52501         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52504
52505         2006-03-12  Jim Meyering  <jim@meyering.net>
52506
52507         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52508         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52509         * m4/same.m4 (gl_SAME): Likewise.
52510         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52511
52512         2006-03-11  Eric Blake  <ebb9@byu.net>
52513
52514         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52515         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52516         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52517         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52518
52519 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52520
52521         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52522         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52523         reported by Mark D. Baushke, one in
52524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52525
52526         Merge from coreutils.
52527
52528         * lib/.cppi-disable: Add stdint_.h.
52529         * lib/.cvsignore: Add stdint.h.
52530
52531         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52534         both double and long double versions.
52535         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52536         * lib/xstrtold.c: New file.
52537         * lib/xstrtod.h (xstrtold): New decl.
52538
52539         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52540
52541         * lib/filemode.c (setst): Remove.
52542         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52543         (arguably) clearer, and the generated code is a bit smaller on my
52544         Debian GNU/Linux stable x86 host.
52545
52546         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52547
52548         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52549         Assume that filemode.h includes sys/types.h and sys/stat.h.
52550         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52551         (ftypelet): Reorder to put common cases first, for efficiency.
52552         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52553         to do 'M'.
52554         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52555         of 10, for compatibility with FreeBSD.  All callers changed.
52556         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52557         types that can't be deduced solely from st_mode.  First arg is now a
52558         const pointer.
52559         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52560         (strmode): Renamed from mode_string.
52561         (filemodestring): New decl.
52562         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52563         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52564         needed.
52565         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52566
52567         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52568
52569         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52570         fsusage.h now does that.  Include fsusage.h first, to test interface.
52571         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52572         at most one method (the old code could have generated decls that
52573         didn't conform to C89, not that this was ever exercised).
52574         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52575
52576         2006-03-19  Jim Meyering  <jim@meyering.net>
52577
52578         Work even in a chroot where d_ino values for entries in "/"
52579         don't match the stat.st_ino values for the same names.
52580         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52581         number, iterate through all entries again, using lstat instead.
52582         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52583         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52584
52585         * lib/getcwd.c (__getcwd): Clarify a comment.
52586         Use memcpy in place of a call to strcpy.
52587
52588         2006-03-12  Jim Meyering  <jim@meyering.net>
52589
52590         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52591         matches that of the current directory (which we're about to chdir ".."
52592         out of), then save the dev-ino of the parent, instead.
52593
52594         * lib/same-inode.h (SAME_INODE): New file/macro.
52595         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52596         Include "same-inode.h", instead.
52597         * lib/same.c: Likewise.
52598         * lib/cycle-check.h: Include "same-inode.h".
52599         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52600         * lib/cycle-check.c (SAME_INODE): Remove definition.
52601         * lib/root-dev-ino.h: Include "same-inode.h".
52602
52603         2006-03-11  Eric Blake  <ebb9@byu.net>
52604
52605         * lib/same.c (same_name): s/base_name/last_component/
52606         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52607         * lib/filenamecat.c (file_name_concat): Likewise.
52608
52609         2006-03-11  Eric Blake  <ebb9@byu.net>,
52610                     Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52613         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52614         drive prefix.
52615         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52616         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52617         (last_component): New method.
52618         * lib/dirname.c (dir_len): Determine when drive letters need a
52619         subsequent slash.  Preserve // when it is special.
52620         (dir_name): Don't append dot when drive letter is absolute.
52621         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52622         * lib/basename.c (base_name): New semantics - malloc the result.
52623         Preserve // when it is special.  Preserve relative files that look
52624         like drive letters.
52625         (base_len): Preserve // when it is special.
52626         (last_component): New method, similar to old base_name semantics.
52627         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52628         base_name.  Strip redundant slashes from ///.
52629
52630 2006-07-03  Jim Meyering  <jim@meyering.net>
52631
52632         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52633         macro is used before the first cycle_check call.
52634
52635 2006-07-03  Eric Blake  <ebb9@byu.net>
52636
52637         * modules/dirname (Depends-on): Add xstrndup.
52638
52639 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52640
52641         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52642         test cases, so that config.log is a bit easier to follow.
52643
52644 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52647         both are 64 bits, since this seems to be the tradition, and this
52648         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52649         we ever run into a host that prefers long long to long in this
52650         case, we'll need another configure-time test.  Problem reported by
52651         Jim Meyering.
52652
52653 2006-07-02  Eric Blake  <ebb9@byu.net>
52654
52655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52656
52657 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * modules/inttypes (Depends-on): No longer depends on stdint.
52660         * modules/stdint (Description): Say more about assumptions.
52661         Say that the fast types might differ.  Say macros are used.
52662         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52663         (Makefile.am): Revise list of substituted symbols to match
52664         new stdint.m4.
52665         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52666         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52667         * tests/test-stdint.c (verify_same_types)
52668         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52669         the code conforms to C99/C89.
52670         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52671         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52672
52673 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52676         but fix a bug, by requiring at least 64 bits.
52677         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52678         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52679         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52680         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52681
52682         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52683         changes.  Make 2.59 a prerequisite.  Check and substitute for
52684         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52685         inttypes.h.  Do not use special include files; just use the
52686         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52687         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52688         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52689         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52690         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52691         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52692         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52693         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52694         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52695         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52696         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52697         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52698         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52699         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52700         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52701         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52702         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52703         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52704         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52705         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52706         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52707         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52708         not check for things that C99 does not require, e.g., int8_t.  If
52709         a test isn't needed unless <stdint.h> isn't working, and is
52710         unlikely to be needed for any other reason, then don't do it
52711         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52712         size_t, since we assume C89 freestanding at least.  Do not check
52713         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52714         the right thing even if the types are not defined.  Instead use:
52715         (gl_STDINT_TYPE_PROPERTIES): New macro.
52716         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52717         testing whether <sys/types.h> clashes, as Autoconf does this for
52718         us now.  All uses removed.
52719         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52720         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52721         (gl_CHECK_TYPE_SAME):
52722         Remove; no longer needed.
52723         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52724         exists, since we'll return 0 anyway in that case.
52725         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52726
52727 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52730         possible collision with system files.
52731         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52732         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52733         WCHAR_MIN and WCHAR_MAX in this case.
52734         (<stddef.h>): Do not include; no longer needed.
52735         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52736         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52737         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52738         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52739         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52740         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52741         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52742         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52743         !defined(__c99))]: Include in this case too, since it's harmless
52744         now.
52745         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52746         dangerous to do so.
52747         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52748         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52749         (_STDINT_MIN, _STDINT_MAX): New macros.
52750         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52751         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52752         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52753         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52754         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52755         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52756         macros, not typedefs; this simplifies things quite a bit.
52757         Use long int for all types narrower than int64_t.
52758         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52759         Define in terms of long long int or int64_t or long int,
52760         not int64_t or int32_t.  This saves some compile-time testing.
52761         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52762         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52763         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52764         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52765         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52766         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52767         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52768         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52769         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52770         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52771         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52772         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52773         undef any previous version and define our own version, for
52774         simplicity and consistency with the new macros for types.
52775         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52776         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52777         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52778         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52779         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52780         @WINT_T_SUFFIX@ to keep things simple here.
52781         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52782         Simplify by assuming typical 8/16/32/64 host, since we're
52783         already doing that elsewhere anyway.
52784         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52785         and assume long long int is 64 bits if available.  This
52786         speeds up 'configure'.
52787
52788 2006-07-01  Eric Blake  <ebb9@byu.net>
52789
52790         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52791         Reported by Andreas Buening.
52792
52793 2006-07-01  Eric Blake  <ebb9@byu.net>
52794
52795         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52796
52797 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52798
52799         * lib/getaddrinfo.c: fixed typo
52800
52801 2006-06-29  Jim Meyering  <jim@meyering.net>
52802
52803         * modules/strftime (Maintainer): Add my name, since with the
52804         FPRINTFTIME changes strftime.c has forked from glibc.
52805
52806 2006-06-29  Eric Blake  <ebb9@byu.net>
52807
52808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52809
52810 2006-06-29  Eric Blake  <ebb9@byu.net>
52811
52812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52813
52814 2006-06-29  Eric Blake  <ebb9@byu.net>
52815
52816         * lib/stat_.h: New file.
52817
52818 2006-06-29  Eric Blake  <ebb9@byu.net>
52819
52820         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52821         unused static function.
52822
52823 2006-06-29  Eric Blake  <ebb9@byu.net>
52824
52825         * doc/functions.texi (Function Portability): Document missing lstat
52826         on mingw.
52827
52828 2006-06-29  Eric Blake  <ebb9@byu.net>
52829
52830         * MODULES.html.sh: Add sys_stat.
52831         * modules/sys_stat: New module.
52832         * modules/mkstemp (Depends-on): Add sys_stat.
52833
52834 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52835
52836         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52837
52838 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52839
52840         * m4/c-bs-a.m4: Removed.
52841
52842 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52843
52844         * lib/strftime.c: Assume strftime() exists.
52845
52846 2006-06-29  Derek Price  <derek@ximbiot.com>
52847
52848         * modules/c-bs-a: Removed - \a is C89.
52849         * MODULES.html.sh: Remove c-bs-a.
52850
52851 2006-06-29  Bruno Haible  <bruno@clisp.org>
52852
52853         * modules/wcwidth (License): Change to LGPL.
52854
52855 2006-06-28  Simon Josefsson  <jas@extundo.com>
52856
52857         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52858         on _WIN32.
52859
52860         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52861         getnameinfo.
52862
52863 2006-06-28  Simon Josefsson  <jas@extundo.com>
52864
52865         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52866
52867 2006-06-28  Simon Josefsson  <jas@extundo.com>
52868
52869         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52870         functions there.  It will succeed on Windows XP, but on Windows
52871         2000 and (presumably) earlier, it will fail, and use the internal
52872         re-implementation.
52873         (use_win32_p): New function.
52874         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52875         Support AI_NUMERICSERV to disable getservbyname.
52876         (getnameinfo): New function, only supports
52877         NI_NUMERICHOST|NI_NUMERICSERV for now.
52878
52879         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52880         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52881         getnameinfo.
52882
52883 2006-06-28  Eric Blake  <ebb9@byu.net>
52884
52885         * modules/wcwidth: New file.
52886         * modules/mbchar (Depends-on): Add wcwidth.
52887         * modules/mbswidth (Depends-on): Add wcwidth.
52888         * MODULES.html.sh: Add wcwidth.
52889
52890 2006-06-28  Eric Blake  <ebb9@byu.net>
52891
52892         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52894
52895 2006-06-28  Eric Blake  <ebb9@byu.net>
52896
52897         * lib/xvasprintf.h: Fix comments.
52898
52899 2006-06-28  Eric Blake  <ebb9@byu.net>
52900
52901         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52902         * lib/mbswidth.c (wcwidth): Move from here...
52903         * lib/wcwidth.h: ...to this new file.
52904
52905 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52906
52907         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52908
52909         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52910         it's obsolete.
52911         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52912
52913 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52914
52915         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52916         Autoconf 2.60 says this stuff was obsolete.
52917
52918 2006-06-28  Bruno Haible  <bruno@clisp.org>
52919
52920         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52921
52922 2006-06-28  Bruno Haible  <bruno@clisp.org>
52923
52924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52925         gt_TYPE_WCHAR_T.
52926
52927 2006-06-28  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52930         declaration for wcwidth.
52931         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52932
52933 2006-06-28  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/mkdtemp.c [MINGW]: Include <io.h>.
52936         (mkdir): Define using _mkdir.
52937
52938 2006-06-28  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/getaddrinfo.h: Fix POSIX URL.
52941         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
52942         _WIN32.
52943         (use_win32_p): Make static.
52944         (getaddrinfo): Reject service name if it is empty or does not consist
52945         solely of decimal digits, or if its value is > 65535.
52946         (getnameinfo): Remove useless casts.
52947
52948 2006-06-27  Simon Josefsson  <jas@extundo.com>
52949
52950         * modules/sys_select: New file, suggested by Bruno Haible, Paul
52951         Eggert and Martin Lambers.
52952
52953 2006-06-27  Simon Josefsson  <jas@extundo.com>
52954
52955         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
52956         Eggert and Martin Lambers.
52957
52958 2006-06-27  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
52961         result to 0, not to empty.
52962         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
52963
52964 2006-06-27  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
52967
52968 2006-06-26  Simon Josefsson  <jas@extundo.com>
52969
52970         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
52971         present.
52972
52973 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
52976         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
52977         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
52978
52979 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
52980
52981         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
52982
52983 2006-06-26  Bruno Haible  <bruno@clisp.org>
52984
52985         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
52986
52987 2006-06-26  Bruno Haible  <bruno@clisp.org>
52988
52989         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
52990
52991 2006-06-26  Bruno Haible  <bruno@clisp.org>
52992
52993         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
52994         SGI C compiler in pre-C99 mode.
52995         Suggested by Mark D. Baushke and Larry Jones.
52996
52997 2006-06-26  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53000         WCHAR_MAX.
53001         Reported by Mark D. Baushke and Larry Jones.
53002
53003 2006-06-26  Bruno Haible  <bruno@clisp.org>
53004
53005         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53006         in pre-C99 mode.
53007         Suggested by Mark D. Baushke and Larry Jones.
53008
53009 2006-06-23  Simon Josefsson  <jas@extundo.com>
53010             Bruno Haible  <bruno@clisp.org>
53011
53012         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53013         Emit mostlyclean-local rule.
53014         (func_emit_tests_Makefile_am): Likewise.
53015         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53016
53017 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53018
53019         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53020
53021 2006-06-23  Bruno Haible  <bruno@clisp.org>
53022
53023         * tests/test-stdint.c: Update to match ISO C 99 Technical
53024         Corrigendum 1.
53025
53026 2006-06-23  Bruno Haible  <bruno@clisp.org>
53027
53028         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53029
53030 2006-06-23  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/stdint_.h: Treat IRIX like OpenBSD.
53033
53034 2006-06-23  Bruno Haible  <bruno@clisp.org>
53035
53036         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53037         ISO C 99 Technical Corrigendum 1.
53038
53039 2006-06-22  Simon Josefsson  <jas@extundo.com>
53040
53041         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53042         MinGW.
53043
53044 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53045
53046         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53047         needed.  Some compiler complained about some of them.  Problem reported
53048         by Larry Jones in
53049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53050
53051 2006-06-21  Simon Josefsson  <jas@extundo.com>
53052
53053         * tests/test-getaddrinfo.c: New file.
53054
53055         * modules/getaddrinfo-tests: New file.
53056
53057         * MODULES.html.sh: Add inet_pton.
53058
53059         * modules/inet_pton: New file.
53060
53061 2006-06-21  Simon Josefsson  <jas@extundo.com>
53062
53063         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53064         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53065         of using the (limited) gnulib implementation on Windows XP.
53066
53067         * m4/inet_pton.m4: New file.
53068
53069 2006-06-21  Simon Josefsson  <jas@extundo.com>
53070
53071         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53072         variable.
53073
53074         * lib/socket_.h: Don't define WINVER.
53075
53076         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53077         slightly modified to work in gnulib.
53078
53079 2006-06-21  Simon Josefsson  <jas@extundo.com>
53080
53081         * doc/gnulib.texi (Windows sockets): Add.
53082
53083 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53084
53085         * lib/read-file.c (fread_file): Start with buffer allocation of
53086         0 bytes rather than 1 byte; this simplifies the code.
53087         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53088         code to free buffer and save/restore errno.
53089         (internal_read_file): Remove unused local.
53090
53091 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53094         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53095         Problem reported by Denis Excoffier in
53096         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53097
53098 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53099
53100         * modules/sys_socket, modules/socklen: Include sys/types since
53101         FreeBSD 4.x's sys/socket.h needs it.
53102
53103 2006-06-19  Simon Josefsson  <jas@extundo.com>
53104
53105         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53106
53107 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53108
53109         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53110
53111 2006-06-19  Bruno Haible  <bruno@clisp.org>
53112
53113         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53114         and FULL_PATH_INTTYPES_H in angle brackets.
53115         Reported by Mark D. Baushke <mdb@gnu.org>.
53116
53117 2006-06-17  Eric Blake  <ebb9@byu.net>
53118
53119         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53120         errno.
53121
53122 2006-06-17  Bruno Haible  <bruno@clisp.org>
53123
53124         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53125         <sys/inttypes.h>.
53126
53127 2006-06-17  Bruno Haible  <bruno@clisp.org>
53128
53129         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53130         whether errno is declared. Assume <errno.h> declares errno.
53131
53132 2006-06-17  Bruno Haible  <bruno@clisp.org>
53133
53134         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53135
53136 2006-06-17  Bruno Haible  <bruno@clisp.org>
53137
53138         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53139         problem on Solaris 2.5.1.
53140
53141 2006-06-16  Eric Blake  <ebb9@byu.net>
53142
53143         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53144         * lib/unicodeio.c [!defined errno]: Likewise.
53145         * lib/strtol.c [!defined errno]: Likewise.
53146         * lib/strtod.c [!defined errno]: Likewise.
53147
53148 2006-06-15  Eric Blake  <ebb9@byu.net>
53149
53150         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53151
53152 2006-06-15  Eric Blake  <ebb9@byu.net>
53153
53154         * config/srclist.txt (ssize_t.m4): Lose sync.
53155
53156 2006-06-15  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/stdint (Files): Include m4/full-header-path.m4,
53159         m4/size_max.m4, m4/wchar_t.m4.
53160         (Makefile.am): Many more substitutions.
53161         * modules/stdint-tests: New file.
53162         * tests/test-stdint.c: New file.
53163
53164 2006-06-15  Bruno Haible  <bruno@clisp.org>
53165
53166         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53167         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53168         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53169         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53170         gl_CHECK_TYPE_SAME): New macros.
53171
53172 2006-06-15  Bruno Haible  <bruno@clisp.org>
53173
53174         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53175
53176 2006-06-15  Bruno Haible  <bruno@clisp.org>
53177
53178         * lib/stdint_.h: Rewritten to be fully auto-configured.
53179         Fixes bug on HP-UX/IA64.
53180
53181 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53182
53183         * lib/getdate.y (__attribute__): Don't define if already defined.
53184         Problem reported by Larry Jones.
53185         * lib/utimens.c (__attribute__): Likewise.
53186
53187 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53190         reported by Andreas Schwab.
53191
53192 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53193             Bruno Haible  <bruno@clisp.org>
53194
53195         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53196         check for the declaration of strnlen and a run test that exposes the
53197         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53198         rpl_strndup.
53199
53200 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53201             Bruno Haible  <bruno@clisp.org>
53202
53203         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53204
53205 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53206
53207         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53208         compile test, for Tru64 4.0D.
53209
53210 2006-05-28  Karl Berry  <karl@gnu.org>
53211
53212         * config/srclist.txt (printf-args.c): lose sync.
53213
53214 2006-05-26  Martin Lambers  <marlam@marlam.de>
53215
53216         * lib/getpass.c: Updates the test for the native W32 API, and adds
53217         missing includes, thus fixing compilation warnings.
53218
53219 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53220
53221         * lib/exclude.c (exclude_fnmatch): New function.
53222         (excluded_file_name): Call exclude_fnmatch.
53223         * lib/exclude.h (excluded_file_name): New prototype
53224
53225 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * lib/tempname.c (small_open, large_open): New macros.
53228         (__open, __open64) [!_LIBC]: Remove.
53229         (__gen_tempname): Use small_open and large_open instead of __open
53230         and __open64.  This fixes a portability bug on HP-UX 11.11i
53231         reported by Simon Wing-Tang in
53232         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53233
53234 2006-05-24  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53237         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53238         Reported by Thorsten Maerz <torte@netztorte.de> via
53239         Aaron Stone <aaron@serendipity.cx>.
53240
53241 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53242
53243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53244         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53245         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53246         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53247         not really conditional on the cache.
53248         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53249
53250 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53251
53252         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53253         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53254         (my_usleep): Don't mishandle maximum value.
53255
53256 2006-05-19  Jim Meyering  <jim@meyering.net>
53257
53258         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53259
53260 2006-05-17  Bruno Haible  <bruno@clisp.org>
53261
53262         Cygwin portability.
53263         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53264
53265 2006-05-17  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/stdint_.h: Fix recognition of Cygwin.
53268
53269 2006-05-15  Bruno Haible  <bruno@clisp.org>
53270
53271         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53272         on libtool patch by Ralf Wildenhues.
53273
53274 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53277         test for C99 conformance; (bool) 0.5 is an integer constant
53278         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53279         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53280
53281 2006-05-11  Simon Josefsson  <jas@extundo.com>
53282
53283         * m4/xvasprintf.m4: Fix obvious typo.
53284
53285 2006-05-11  Jim Meyering  <jim@meyering.net>
53286
53287         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53288         James Lemley.
53289
53290 2006-05-10  Simon Josefsson  <jas@extundo.com>
53291
53292         * lib/md4.c: Typo fix, update copyright years.
53293         (K1, K2): Don't use L because it turn computations into 64-bit on
53294         64-bit platforms.
53295
53296 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53299         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53300         unwanted sign propagation, e.g., on hosts with 64-bit int.
53301         There still are some problems with reeelly weird theoretical hosts
53302         (e.g., 33-bit int) but it's not worth worrying about now.
53303         * lib/sha1.c (rol): Likewise.
53304         (K1, K2, K3, K4): Remove unnecessary L suffix.
53305
53306 2006-05-10  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/des.c: Cast to avoid warnings.
53309
53310 2006-05-09  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53313         (Depends-on): Depend also on xsize, stdarg.
53314         (configure.ac): Add gl_XVASPRINTF.
53315
53316 2006-05-09  Bruno Haible  <bruno@clisp.org>
53317
53318         * m4/xvasprintf.m4: New file.
53319
53320 2006-05-09  Bruno Haible  <bruno@clisp.org>
53321
53322         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53323         (EOVERFLOW): Define fallback value.
53324         (xstrcat): New function.
53325         (xvasprintf): Recognize the special case of a string concatenation.
53326
53327 2006-05-08  Eric Blake  <ebb9@byu.net>
53328
53329         * gnulib-tool (func_version): Base copyright year on CVS date.
53330         (func_emit_copyright_notice): New function.
53331         (func_emit_lib_Makefile_am): Use it.
53332         (func_emit_tests_Makefile_am): Likewise.
53333         (func_import): Likewise.
53334
53335 2006-05-08  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/stdarg: New file.
53338         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53339
53340 2006-05-08  Bruno Haible  <bruno@clisp.org>
53341
53342         * m4/stdarg.m4: New file, from GNU gettext.
53343
53344 2006-05-08  Bruno Haible  <bruno@clisp.org>
53345
53346         * config/srclist.txt (build-aux/config.rpath): different from latest
53347         release.
53348
53349 2006-05-08  Bruno Haible  <bruno@clisp.org>
53350
53351         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53352
53353 2006-05-05  Jim Meyering  <jim@meyering.net>
53354
53355         * m4/warning.m4: New file, derived from bison's file by the same name.
53356
53357 2006-05-03  Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/stdint_.h: Shorter URL.
53360         * lib/inttypes.h: Likewise.
53361
53362 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53363
53364         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53365
53366 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         * lib/verify.h: Document the internals better.  Most of this change
53369         was written by Bruno Haible.
53370
53371 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         * doc/verify.texi: New file, partly based on a proposal by
53374         Bruno Haible.
53375
53376 2006-05-02  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53379         test from here...
53380         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53381
53382 2006-04-29  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53385         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53386
53387 2006-04-29  Bruno Haible  <bruno@clisp.org>
53388
53389         * gnulib-tool: Make --update option actually work.
53390
53391 2006-04-29  Bruno Haible  <bruno@clisp.org>
53392
53393         * doc/gcd.texi: New file.
53394         * doc/gnulib.texi: Include it.
53395
53396 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53397
53398         * lib/getdate.y (get_date): When adding relative date, start with the
53399         initial time, not with the result of the first mktime call.
53400
53401 2006-04-25  Bruno Haible  <bruno@clisp.org>
53402
53403         * gnulib-tool (func_import): Output the include directives in three
53404         blocks, sorted separately.
53405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53406
53407 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53410         to define main with arguments, for C++.  Reported by Eric Blake.
53411         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53412         Prefer 'int main ()' to 'int main (void)', for C++.
53413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53414         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53415         for 'main', for C99 and C++.
53416
53417 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53418
53419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53420         Don't assume that exit status -1 is valid.
53421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53422         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53423         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53424         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53425         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53426         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53427         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53428         functions can be used without declaring them, or that you can
53429         exit with status -1.
53430         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53431
53432 2006-04-24  Karl Berry  <karl@gnu.org>
53433
53434         * config/srclist.txt (longdouble.m4): sync lost.
53435
53436 2006-04-24  Eric Blake  <ebb9@byu.net>
53437
53438         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53439
53440 2006-04-24  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53443         poll() implementation in AIX.
53444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53445
53446 2006-04-24  Bruno Haible  <bruno@clisp.org>
53447
53448         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53449         assigned exactly once.
53450
53451 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53452             Bruno Haible  <bruno@clisp.org>
53453
53454         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53455         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53456         for AM_CPPFLAGS.
53457
53458 2006-04-23  Bruno Haible  <bruno@clisp.org>
53459
53460         * modules/copy-file: Depend on unistd.
53461         * modules/execute: Likewise.
53462         * modules/fatal-signal: Likewise.
53463         * modules/findprog: Likewise.
53464         * modules/mkdtemp : Likewise.
53465         * modules/pipe: Likewise.
53466         * modules/wait-process: Likewise.
53467
53468 2006-04-23  Bruno Haible  <bruno@clisp.org>
53469
53470         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53471         condition was already detected.
53472         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53473
53474 2006-04-23  Bruno Haible  <bruno@clisp.org>
53475
53476         * lib/copy-file.c: Include <unistd.h> unconditionally.
53477         * lib/execute.c: Likewise.
53478         * lib/fatal-signal.c: Likewise.
53479         * lib/findprog.c: Likewise.
53480         * lib/mkdtemp.c: Likewise.
53481         * lib/pipe.h: Likewise.
53482         * lib/pipe.c: Likewise.
53483         * lib/wait-process.h: Likewise.
53484
53485 2006-04-23  Bruno Haible  <bruno@clisp.org>
53486
53487         * gnulib-tool (func_usage): Fix --import description. Document
53488         --update.
53489         (func_import): Create temporary file in a temporary directory, if
53490         --dry-run is specified. Silence errors from 'grep' when there are no
53491         m4 files in $m4dir.
53492         (func_create_testdir): Silence errors from 'grep' when there are no
53493         m4 files in $m4dir.
53494         Reported by Karl Berry <karl@freefriends.org>.
53495
53496 2006-04-20  Bruno Haible  <bruno@clisp.org>
53497
53498         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53499         one argument, so that the code will be portable to Autoconf 2.60.
53500         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53501         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53502         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53503
53504 2006-04-19  Derek Price  <derek@ximbiot.com>
53505             Eric Blake  <ebb9@byu.net>
53506
53507         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53508         rather than "/full/path.h".  Update comment to match.  Shorten &
53509         generalize m4_translit call via AS_TR_CPP.
53510
53511 2006-04-19  Derek Price  <derek@ximbiot.com>
53512             Eric Blake  <ebb9@byu.net>
53513
53514         * lib/inttypes.h: Correct grammar in comment.
53515
53516 2006-04-18  Derek Price  <derek@ximbiot.com>
53517             Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         * modules/inttypes: New file.
53520         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53521
53522 2006-04-18  Derek Price  <derek@ximbiot.com>
53523             Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53526         New files.
53527
53528 2006-04-18  Derek Price  <derek@ximbiot.com>
53529             Paul Eggert  <eggert@cs.ucla.edu>
53530
53531         * lib/inttypes.h: New file.
53532         * lib/strtoimax.c: Assume <inttypes.h>.
53533
53534 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53537         isn't mounted.  Problem reported by Kir Kolyshkin.
53538
53539 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53542         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53543         Derek R. Price.
53544         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53545         implementation.
53546
53547 2006-04-12  Eric Blake  <ebb9@byu.net>
53548
53549         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53550         is now done automatically by the corresponding Autoconf macro.
53551
53552 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53553
53554         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53555         time_r.h.
53556
53557 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53558
53559         Merge regex changes from libc, removing some of our
53560         POSIX-conformance changes that were rejected and redoing them in a
53561         less-intrusive way.
53562
53563         * lib/regcomp.c (re_compile_internal, init_dfa):
53564         Length arg is now size_t, not Idx.  All uses changed.
53565         (peek_token): Forward decl now says internal_function.
53566         (__re_error_msgid, __re_error_msgid_idx):
53567         Now static rather than extern with attribute_hidden.
53568         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53569         For some reason libc prefers K&R style defns for external functions.
53570         (regerror) [!defined _LIBC]: Likewise.
53571         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53572         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53573         (build_range_exp, build_collating_symbol):
53574         Use K&R-style defn.
53575         (re_compile_fastmap): Use '\0' to memset, not 0.
53576         (utf8_sb_map): Make the calculations more obvious.
53577         (init_dfa, parse_bracket_exp, build_charclass_op):
53578         Call calloc and cast result, as glibc does.
53579         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53580         (build_range_exp, build_collating_symbol):
53581         Now internal functions.
53582
53583         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53584
53585         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53586         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53587         Don't depend on VMS; depend on __VMS instead, for POSIX
53588         namespace cleanness.
53589         (regoff_t): Define to ssize_t, not long int.
53590
53591         Remove the REG_ macros named below.  Instead, make the old names
53592         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53593         __USE_GNU_REGEX.
53594         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53595         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53596         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53597         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53598         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53599         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53600         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53601         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53602         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53603         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53604         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53605         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53606         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53607         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53608         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53609         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53610         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53611         (REG_NREGS):
53612         Remove.  All uses replaced by the old RE_* names.
53613         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53614         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53615         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53616         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53617         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53618         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53619         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53620         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53621         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53622         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53623         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53624         Don't bother having these macros be independent of each others'
53625         values, since they no longer exist in the POSIX name space.
53626
53627         Rename the following member names back to their old names,
53628         unless !__USE_GNU_REGEX.  All uses changed back.
53629         (buffer): Renamed from re_buffer.
53630         (allocated): Renamed from re_allocated.
53631         (used): Renamed from re_used.
53632         (syntax): Renamed from re_syntax.
53633         (fastmap): Renamed from re_fastmap.
53634         (translate): Renamed from re_translate.
53635         (can_be_null): Renamed from re_can_be_null.
53636         (regs_allocated): Renamed from re_regs_allocated.
53637         (fastmap_accurate): Renamed from re_fastmap_accurate.
53638         (no_sub): Renamed from re_no_sub.
53639         (not_bol): Renamed from re_not_bol.
53640         (not_eol): Renamed from re_not_eol.
53641         (newline_anchor): Renamed from re_newline_anchor.
53642         (num_regs): Renamed from rm_num_regs.
53643         (start): Renamed from rm_start.
53644         (end): Renamed from rm_end.
53645
53646         (free_state): Move up a bit.
53647
53648         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53649         #define to be empty.
53650         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53651         when that is what is intended.
53652         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53653         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53654         (MAX): New macro.
53655         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53656         All uses changed back to re_malloc, etc.  It's now the caller's
53657         responsibility to check for overflow; all callers changed.
53658         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53659         (re_x2nrealloc): Remove.
53660         (free_state): Remove decl.
53661
53662         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53663         (re_set_registers, re_exec):
53664         Use K&R-style defn.
53665
53666         2006-01-31  Roland McGrath  <roland@redhat.com>
53667
53668         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53669         Reported by Mike Frysinger <vapier@gentoo.org>.
53670
53671         2006-01-15  Andreas Jaeger  <aj@suse.de>
53672
53673         [BZ #1950]
53674         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53675         build_wcs_upper_buffer change.
53676         (build_wcs_upper_buffer): Change return type.
53677
53678         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53679
53680         * lib/regex_internal.h: Include <stdint.h> if available.
53681
53682         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53683
53684         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53685
53686         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53687
53688         * lib/regcomp.c: Adjust for changed secondary hash function.
53689
53690         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53691
53692         * lib/regex.h: Pretty printing.
53693         Clean up namespace a bit.
53694
53695         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53696
53697         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53698         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53699
53700         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53701                     Ulrich Drepper  <drepper@redhat.com>
53702
53703         [BZ #1302]
53704         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53705         changed.
53706         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53707
53708         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53709
53710         [BZ #281]
53711         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53712         * lib/regcomp.c: Remove unnecessary uses of
53713         unsigned RE_TRANSLATE_TYPE.
53714         * lib/regex_internal.h: Likewise.
53715         * lib/regex_internal.c: Likewise.
53716         * lib/regexec.c: Likewise.
53717         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53718
53719         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53720
53721         * lib/regexec.c (find_recover_state): Remove unnecessary
53722         initialization.
53723         (transit_state_bkref): Make DFA a const pointer.
53724         (get_subexp): Likewise.
53725         (check_arrival): Likewise.
53726         (update_cur_sifted_state): Likewise.
53727         (re_search_internal): Likewise.
53728         (prune_impossible_nodes): Likewise.
53729         (acquire_init_state_context): Likewise.
53730         (proceed_next_node): Likewise.
53731         (set_regs): Likewise.
53732         (free_fail_stack_return): Likewise.
53733         (check_arrival_expand_ecl): Mark DFA parameter as const.
53734         (check_arrival_expand_ecl_sub): Likewise.
53735         (check_subexp_limits): Likewise.
53736         (sub_epsilon_src_nodes):  Likewise.
53737         (add_epsilon_src_nodes):  Likewise.
53738         (merge_state_array): Likewise.
53739         (update_regs): Likewise.
53740         (build_trtable): Likewise.
53741         (sift_states_backward): Mark MCTX parameter as const.
53742         (build_sifted_states): Likewise.
53743         (update_cur_sifted_state): Likewise.
53744         (sift_states_mkref): Likewise.
53745         (check_arrival_expand_ecl): Mark eclosure as const.
53746         (check_dst_limits_calc_pos_1): Likewise.
53747         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53748         pointer.
53749
53750         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53751
53752         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53753         (transit_state_sb): Likewise.
53754         (transit_state_mb): Likewise.
53755         (sift_states_iter_mb): Likewise.
53756         (check_arrival_add_next_nodes): Likewise.
53757         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53758         [_LIBC] (re_search_2_stub): Use mempcpy.
53759
53760         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53761         mbrtowc for very simple UTF-8 case.
53762
53763         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53764         a pointer-to-const.
53765         (re_acquire_state_context): Likewise.
53766         * lib/regex_internal.h: Adjust prototypes.
53767
53768         * lib/regex.c: Prevent using C++ compilers.
53769
53770         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53771         (re_acquire_state_context): Likewise.
53772
53773 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * modules/regex (Depends-on): Add ssize_t.
53776
53777 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53780         translation table.
53781
53782 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53785
53786 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53787             Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53790         <sys/types.h> and <inttypes.h>.
53791
53792 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53793
53794         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53795         `__error_t_defined', so argp.h will not typedef the former.
53796
53797 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53798
53799         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53800         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53801         glibc names.  Even if glibc is changed to conform to POSIX, the
53802         traditional names will be available anyway, since regex depends on
53803         the extensions module.  Also, fix a longstanding typo in the
53804         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53805         reported by Emanuele Giaquinta.  Also, change sense of cached
53806         variable, so that the message makes sense.
53807
53808 2006-03-24  Simon Josefsson  <jas@extundo.com>
53809
53810         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53811         including some doc fixes.
53812         (base64_encode_alloc): Fix +1 bug on allocation failures.
53813
53814 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53815
53816         * lib/base64.c (base64_encode): Do not read past end of array with
53817         unsanitized input on systems with CHAR_BIT > 8.
53818
53819 2006-03-24  Eric Blake  <ebb9@byu.net>
53820
53821         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53822
53823 2006-03-22  Karl Berry  <karl@gnu.org>
53824
53825         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53826         * config/srclistvars.sh (COREUTILS): new var.
53827
53828 2006-03-17  Jim Meyering  <jim@meyering.net>
53829
53830         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53831         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53832
53833 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53836         no longer needs it.  Instead, check that regoff_t is as least
53837         as wide as ptrdiff_t.
53838
53839         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53840         so that our regex.h stays compatible with the installed regex.
53841         This is helpful for installers who configure --without-included-regex.
53842         Problem reported by Emanuele Giaquinta.
53843
53844 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53845
53846         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53847         Typedef to long int, not to off_, as POSIX will likely change
53848         in that direction.
53849
53850 2006-03-15  Eric Blake  <ebb9@byu.net>
53851
53852         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53853
53854 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53855
53856         * lib/argp-help.c (validate_uparams): Fix typo
53857         * lib/argp-parse.c (argp_default_options): Consistently begin help
53858         messages with a lowercase letter.
53859
53860 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53863         overrun buffers and shouldn't be used (much as gets shouldn't be
53864         used).
53865         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53866
53867 2006-03-08  Simon Josefsson  <jas@extundo.com>
53868
53869         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53870         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53871
53872 2006-03-08  Simon Josefsson  <jas@extundo.com>
53873
53874         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53875         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53876
53877 2006-03-08  Simon Josefsson  <jas@extundo.com>
53878
53879         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53880         signal that configure disabled the device.
53881
53882 2006-03-08  Simon Josefsson  <jas@extundo.com>
53883
53884         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53885         languages.
53886
53887 2006-03-07  Simon Josefsson  <jas@extundo.com>
53888
53889         * modules/getopt (Depends-on): Add unistd.
53890
53891         * modules/unistd: New file.
53892
53893 2006-03-07  Simon Josefsson  <jas@extundo.com>
53894
53895         * modules/gc-random: New file.
53896
53897 2006-03-07  Simon Josefsson  <jas@extundo.com>
53898
53899         * m4/unistd_h.m4: New file.
53900
53901 2006-03-07  Simon Josefsson  <jas@extundo.com>
53902
53903         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53904         test to be side-effect free by storing the result in the cache
53905         variable gl_cv_lib_readline, and moving the assignment of
53906         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53907         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53908
53909 2006-03-07  Simon Josefsson  <jas@extundo.com>
53910
53911         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53912         error on missing devices (the functions will return an error).
53913
53914         * m4/gc.m4: Move random stuff to gc-random.m4
53915
53916 2006-03-07  Simon Josefsson  <jas@extundo.com>
53917
53918         * lib/unistd_.h: New file.
53919
53920 2006-03-07  Simon Josefsson  <jas@extundo.com>
53921
53922         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53923
53924 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53925
53926         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53927         Problem reported by Juan Manuel Guerrero.
53928
53929 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53930
53931         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53932         the unistd module.
53933         * lib/getlogin_r.c: Likewise.
53934         * lib/getlogin_r.h: Likewise.
53935         * lib/glob.c: Likewise.
53936         * lib/pagealign_alloc.c: Likewise.
53937         * lib/unistd_.h: Remove; no longer needed.
53938
53939 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53942         Add unistd.
53943         * modules/c-stack (Depends-on): Add unistd.
53944         * modules/getlogin_r: Likewise.
53945         * modules/glob: Likewise.
53946         * modules/pagealign_alloc: Likewise.
53947         * modules/unistd (Files): Remove lib/unistd_.h.
53948         (EXTRA_DIST): Remove.
53949         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
53950         need unistd_.h.
53951         (MOSTLYCLEANFILES): Remove unistd.h-t.
53952
53953 2006-03-03  Simon Josefsson  <jas@extundo.com>
53954
53955         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
53956
53957 2006-03-03  Simon Josefsson  <jas@extundo.com>
53958
53959         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
53960         libidn and bison.
53961
53962 2006-03-03  Simon Josefsson  <jas@extundo.com>
53963
53964         * build-aux/maint.mk: Add indent target.
53965
53966 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
53967
53968         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
53969         our replacement poll.h in any case, to avoid a differing
53970         declaration from a system header.  Seen on AIX.
53971
53972 2006-03-01  Simon Josefsson  <jas@extundo.com>
53973
53974         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
53975         <kasal@ucw.cz>.
53976
53977 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * modules/gettime (Depends-on): Add extensions module.
53980         * modules/nanosleep (Depends-on): Likewise.
53981         * modules/settime (Depends-on): Likewise.
53982
53983 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
53986         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
53987         pedantically.
53988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53989         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
53990
53991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
53992         not "==".  Reported by Ralf Wildenhues.
53993
53994 2006-03-01  Karl Berry  <karl@gnu.org>
53995
53996         * doc/Copyright/request-*: new files, synced from gnuorg.
53997
53998 2006-03-01  Karl Berry  <karl@gnu.org>
53999
54000         * config/srclist.txt (Copyright/*): new entries.
54001
54002 2006-02-28  Simon Josefsson  <jas@extundo.com>
54003
54004         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54005
54006 2006-02-27  Simon Josefsson  <jas@extundo.com>
54007
54008         * lib/base64.h: Indent #define's.  From Jim Meyering
54009         <jim@meyering.net>.
54010
54011 2006-02-27  Jim Meyering  <jim@meyering.net>
54012
54013         Revert the change of 2006-02-24, so these files can continue
54014         to be sync'd from gettext.
54015         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54016         of `config.h'.
54017
54018 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54019
54020         * modules/intprops: New file.
54021         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54022         Add intprops.
54023         * modules/getloadavg (Files): Remove lib/intprops.h.
54024         (Depends-on): Add intprops.
54025         * modules/human: Likewise.
54026         * modules/inttostr: Likewise.
54027         * modules/openat: Likewise.
54028         * modules/sig2str: Likewise.
54029         * modules/userspec: Likewise.
54030         * modules/utimecmp: Likewise.
54031         * modules/xnanosleep: Likewise.
54032         * modules/xstrtol: Likewise.
54033
54034 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54035
54036         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54037         * modules/lock-tests (TESTS): Use $(EXEEXT).
54038         * modules/tls-tests: Likewise.
54039         * modules/argp-tests: Likewise.
54040         (check_PROGRAMS): New var, replacing...
54041         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54042
54043 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54044
54045         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54046         `config.h'.
54047
54048 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54049
54050         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54051
54052 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54053
54054         Sync from coreutils.
54055         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54056         gl_CHDIR_SAFER.
54057
54058 2006-02-22  Jim Meyering  <jim@meyering.net>
54059
54060         Sync from coreutils.
54061         * m4/chdir-safer.m4: New file.
54062
54063 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54066         AT_FDCWD exceeds INT_MAX.
54067         * lib/openat.h (AT_FDCWD): Likewise.
54068
54069 2006-02-17  Eric Blake  <address@hidden>
54070
54071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54072
54073 2006-02-16  Simon Josefsson  <jas@extundo.com>
54074
54075         * modules/getaddrinfo (Depends-on): Add sys_socket.
54076
54077 2006-02-15  Simon Josefsson  <jas@extundo.com>
54078
54079         * build-aux/maint.mk: Add dsyntax-check rule.
54080
54081 2006-02-15  Eric Blake  <ebb9@byu.net>
54082
54083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54084         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54085         'present but cannot compile' warnings on cygwin.
54086         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54087         use ws2tcpip.h if sys/socket.h works.
54088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54089         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54090
54091 2006-02-14  Simon Josefsson  <jas@extundo.com>
54092
54093         * modules/maintainer-makefile (Files): Rename.
54094
54095         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54096         and (the local) Makefile.cfg to maint-cfg.mk.
54097
54098         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54099         to the latter.
54100
54101         * modules/maintainer-makefile: New module.
54102
54103         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54104         severaly stripped to make it possible to build it up from scratch
54105         with reliable tests.
54106
54107         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54108         fixes to permit overriding the default actions when configure and
54109         makefile are not available.
54110
54111 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         Sync from coreutils.
54114         * modules/lstat (Depends-on): Don't depend on xalloc.
54115         (License): Change from GPL to LGPL, since this is now simply a
54116         replacement for a libc function.
54117
54118 2006-02-14  Jim Meyering  <jim@meyering.net>
54119
54120         Sync from coreutils.
54121
54122         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54123         failure on deficient systems, and simplify gnulib lgpl dependencies.
54124         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54125         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54126
54127         * lib/xalloc-die.c: Remove unused definition of N_.
54128
54129 2006-02-14  Jim Meyering  <jim@meyering.net>
54130
54131         Sync from coreutils.
54132         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54133         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54134         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54135         double-quote uses of that variable, to accommodate the rare case in
54136         which getmntent is available in none of the libraries checked.  This
54137         happens at least on FreeBSD 5.0.
54138
54139 2006-02-13  Simon Josefsson  <jas@extundo.com>
54140
54141         * gnulib-tool (Usage): Fix --import, from
54142         karl@freefriends.org (Karl Berry).
54143
54144 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54145
54146         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54147
54148 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54149
54150         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54151         "autoupdate" on 2005-12-12.
54152
54153 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54154
54155         * modules/closeout (Depends-on): Remove atexit.
54156
54157 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54160         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54161
54162 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54165         __EXTENSIONS__ if this causes compilation to fail.  Problem
54166         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54167         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54168
54169 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54170
54171         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54172         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54174         All uses changed.
54175
54176 2006-01-26  Simon Josefsson  <jas@extundo.com>
54177
54178         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54179         prototype is visible on mingw32.
54180
54181         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54182         for mingw32.
54183
54184         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54185         mingw32).
54186
54187 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54188
54189         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54190         attempt to open for write; this always fails, at least on POSIX
54191         hosts.  This reinstates the 2006-01-09 change, which was
54192         inadvertently removed.
54193
54194 2006-01-26  Bruno Haible  <bruno@clisp.org>
54195
54196         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54197         Reported by Paul Eggert.
54198
54199 2006-01-26  Bruno Haible  <bruno@clisp.org>
54200             Paul Eggert  <eggert@cs.ucla.edu>
54201
54202         * lib/stdbool_.h (_Bool)
54203         [(! (defined __cplusplus || defined __BEOS__)
54204           && !defined __GNUC__
54205           && !(defined __HP_cc || defined __xlc__
54206                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54207                || defined __sgi))]:
54208         #define to signed char in these cases too; this simplifies
54209         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54210         etc., separately) and makes it more conservative.
54211
54212 2006-01-25  Simon Josefsson  <jas@extundo.com>
54213
54214         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54215         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54216         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54217
54218 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54219
54220         * lib/argp-namefrob.h: Bugfix. Remove stray #
54221
54222 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54225         so that we test the test.
54226         Check for yet another HP-UX cc bug involving *bool |= bool.
54227
54228 2006-01-25  Karl Berry  <karl@gnu.org>
54229
54230         * config/srclist.txt (vasnprintf.c): sync lost.
54231
54232 2006-01-25  Jim Meyering  <jim@meyering.net>
54233
54234         Sync from the stable (b5) branch of coreutils:
54235
54236         * lib/fts.c (fts_children): Don't let close() clobber errno from
54237         failed fchdir().
54238
54239         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54240         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54241         a dangling symlink.  That can also happen at least for ELOOP.
54242         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54243         FYI, this bug predates the inclusion of fts.c in coreutils.
54244
54245         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54246         in their own block, so pre-c99 compilers don't object.
54247
54248         Avoid the double-free (first in fts_read, second in fts_close) that
54249         would occur when an `active' directory is made inaccessible (e.g.,
54250         via chmod a-x) during a traversal.
54251         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54252         before returning.  Reproduce this failure by
54253         mkdir -p a/b; cd a; chmod a-x . b
54254         Reported by Stavros Passas.
54255
54256 2006-01-25  Jim Meyering  <jim@meyering.net>
54257
54258         * lib/fileblocks.c: Remove more useless parentheses.
54259         * lib/readutmp.h: Likewise.
54260
54261 2006-01-25  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54264         warnings.
54265         Reported by Paul Eggert.
54266
54267 2006-01-25  Bruno Haible  <bruno@clisp.org>
54268
54269         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54270         rid of a trap command. For Solaris sh.
54271         Reported by Mark D. Baushke <mdb@gnu.org>.
54272
54273 2006-01-24  Simon Josefsson  <jas@extundo.com>
54274
54275         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54276         Bruno.
54277
54278 2006-01-24  Karl Berry  <karl@gnu.org>
54279
54280         * config/srclist.txt (argp-namefrob.h): sync lost.
54281
54282 2006-01-24  Jim Meyering  <jim@meyering.net>
54283
54284         * modules/openat (Files): Add lib/intprops.h.
54285         From Mark D. Baushke.
54286
54287 2006-01-24  Jim Meyering  <jim@meyering.net>
54288
54289         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54290         Reported by Mark D. Baushke.
54291
54292 2006-01-24  Jim Meyering  <jim@meyering.net>
54293
54294         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54295
54296 2006-01-24  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/strnlen (Maintainer): Change from glibc to all.
54299
54300 2006-01-24  Bruno Haible  <bruno@clisp.org>
54301
54302         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54303         Patch by Paul Eggert.
54304
54305 2006-01-24  Bruno Haible  <bruno@clisp.org>
54306
54307         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54308         already has it.
54309         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54310         2005-11-26.
54311
54312         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54313         'signed char' to avoid problems with the built-in _Bool type.
54314         Reported by Paul Eggert on 2005-11-26.
54315
54316 2006-01-24  Bruno Haible  <bruno@clisp.org>
54317
54318         * gnulib-tool (func_import): Avoid constructing complicated sed
54319         expressions inside backquote.
54320         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54321
54322 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54323
54324         These changes imported from libc.
54325         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54326         test and two separate function calls.
54327         * lib/strndup.c (__strndup): Add libc_hidden_def.
54328
54329 2006-01-23  Simon Josefsson  <jas@extundo.com>
54330
54331         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54332         Remove the test_*_SOURCES variable: automake infers it by default.
54333         * modules/tls-tests: Likewise.
54334
54335 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54336
54337         Work around porting bugs reported by Dieter in
54338         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54339         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54340         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54341         Include "getopt.h" first, to check interface.
54342         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54343         !HAVE_DECL_GETENV.
54344         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54345         (__strndup): Revert to K&R-style function dfns, the glibc style.
54346         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54347         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54348         Include strnlen.h first, to get prototype properly.
54349         (strnlen): Renamed from __strnlen.
54350         Remove weak alias.
54351
54352 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54353
54354         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54355
54356 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         * config/srclist.txt: Adjust to reflect glibc reorganization.
54359         This affects only comments.
54360
54361 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54362
54363          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54364          Reported by Bruce Korb <bkorb@gnu.org>.
54365
54366 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54369         to pacify gcc -Wswitch-default.
54370
54371 2006-01-22  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54374         temporary buffer for sprintf, take into account the precision also
54375         for 'd', 'i', 'u', 'o', 'x', 'X'.
54376
54377 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54378
54379         * modules/argp-tests: New module
54380         * tests/test-argp.c: New file
54381         * tests/test-argp-2.sh: New file
54382
54383 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54384
54385         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54386         (__argp_base_name): Removed
54387         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54388         typo.
54389         (__argp_base_name): Provide macro definition or extern declaration
54390         depending on the configuration
54391
54392 2006-01-20  Simon Josefsson  <jas@extundo.com>
54393
54394         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54395
54396 2006-01-20  Simon Josefsson  <jas@extundo.com>
54397
54398         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54399
54400 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54401
54402         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54403         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54404         Suggested by Bruno Haible.
54405
54406 2006-01-20  Karl Berry  <karl@gnu.org>
54407
54408         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54409         until changes propagate, I guess.
54410
54411 2006-01-19  Simon Josefsson  <jas@extundo.com>
54412
54413         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54414
54415 2006-01-19  Simon Josefsson  <jas@extundo.com>
54416
54417         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54418
54419 2006-01-19  Simon Josefsson  <jas@extundo.com>
54420
54421         * gnulib-tool: Set check_PROGRAMS.
54422
54423         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54424         modules/des-tests, modules/gc-arcfour-tests,
54425         modules/gc-arctwo-tests, modules/gc-des-tests,
54426         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54427         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54428         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54429         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54430         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54431         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54432         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54433         test_*_SOURCES.
54434
54435 2006-01-18  Simon Josefsson  <jas@extundo.com>
54436
54437         * modules/socklen (Depends-on): Depend on sys_socket.
54438
54439 2006-01-18  Simon Josefsson  <jas@extundo.com>
54440
54441         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54442         modules/des-tests, modules/gc-arcfour-tests,
54443         modules/gc-arctwo-tests, modules/gc-des-tests,
54444         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54445         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54446         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54447         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54448         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54449         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54450         $(EXEEXT) to automake TESTS variable, for mingw32.
54451
54452 2006-01-17  Simon Josefsson  <jas@extundo.com>
54453
54454         * modules/socklen (Include): Need sys/socket.h.
54455
54456 2006-01-17  Bruno Haible  <bruno@clisp.org>
54457
54458         * modules/ssize_t (Include): Add <sys/types.h>.
54459
54460 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54461
54462         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54463         it's not portable and it doesn't work with cross-compiles.
54464         Problem reported by Bruno Haible.  Fix missing-$ typo in
54465         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54466         -zignore from being used with Sun's C compiler.
54467
54468 2006-01-12  Simon Josefsson  <jas@extundo.com>
54469
54470         * lib/base64.c: Fix warning, reported by Bruno Haible
54471         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54472
54473 2006-01-12  Bruno Haible  <bruno@clisp.org>
54474
54475         * modules/ldd: New file.
54476         * build-aux/ldd.sh.in: New file.
54477         * MODULES.html.sh (Support for building libraries and executables): Add
54478         ldd.
54479
54480 2006-01-12  Bruno Haible  <bruno@clisp.org>
54481
54482         * m4/ldd.m4: New file.
54483
54484 2006-01-12  Bruno Haible  <bruno@clisp.org>
54485
54486         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54487         endless loop while replacing $auxdir with build-aux.
54488
54489 2006-01-11  Simon Josefsson  <jas@extundo.com>
54490
54491         * lib/stdint_.h (SIZE_MAX): Add missing (.
54492
54493 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         Sync from coreutils.
54496         * lib/md5.c: Fix commentary typos.
54497         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54498         * lib/md5.h (__attribute__): Remove; unused.
54499         * lib/sha1.c: Fix commentary to match md5 better.
54500         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54501         so that we don't need to worry about alignment.  All uses changed.
54502         This merges the 2005-10-28 md5 change into sha1.
54503
54504 2006-01-11  Jim Meyering  <jim@meyering.net>
54505
54506         Sync from coreutils.
54507         * lib/md5.c (OP): Fix spacing.
54508
54509 2006-01-11  Bruno Haible  <bruno@clisp.org>
54510
54511         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54512         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54513         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54514
54515 2006-01-11  Bruno Haible  <bruno@clisp.org>
54516
54517         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54518         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54519         the "early" section as well.
54520
54521 2006-01-11  Bruno Haible  <bruno@clisp.org>
54522
54523         Avoid "ar: no archive members specified" error on MacOS X.
54524         * gnulib-tool (func_modules_add_dummy): New function.
54525         (func_import, func_create_testdir): Invoke it.
54526
54527 2006-01-11  Bruno Haible  <bruno@clisp.org>
54528
54529         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54530         with $auxdir in AC_CONFIG_FILES statements.
54531
54532 2006-01-11  Bruno Haible  <bruno@clisp.org>
54533
54534         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54535         Initialize also noinst_HEADERS to empty.
54536
54537 2006-01-11  Bruno Haible  <bruno@clisp.org>
54538
54539         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54540         variables.
54541         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54542         autoreconf.
54543
54544 2006-01-11  Bruno Haible  <bruno@clisp.org>
54545
54546         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54547         overridable by the user.
54548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54549
54550 2006-01-10  Simon Josefsson  <jas@extundo.com>
54551
54552         * modules/sys_socket: New file.
54553
54554 2006-01-10  Simon Josefsson  <jas@extundo.com>
54555
54556         * m4/sys_socket_h.m4: New file.
54557
54558 2006-01-10  Simon Josefsson  <jas@extundo.com>
54559
54560         * lib/socket_.h: New file.
54561
54562 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * modules/readutmp (Maintainer): Add myself.
54565
54566 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54569         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54570         People who are still concerned with buggy memcmp implementations
54571         can invoke gl_FUNC_MEMCMP themselves.
54572
54573 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * lib/regex_internal.h (BITSET_WORD_BITS):
54576         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54577         preprocessor mishandles large unsigned values as if they were signed.
54578         Problem reported by Claudio Fontana in
54579         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54580
54581 2006-01-10  Jim Meyering  <jim@meyering.net>
54582
54583         Avoid the double-free (first in fts_read, second in fts_close) that
54584         would occur when an `active' directory is made inaccessible (e.g.,
54585         via chmod a-x) during a traversal.
54586         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54587         before returning.  Reproduce this failure by
54588         mkdir -p a/b; cd a; chmod a-x . b
54589         Reported by Stavros Passas.
54590
54591         Sync from coreutils.
54592         * lib/sha1.c: Tweak grammar in a comment.
54593
54594 2006-01-10  Jim Meyering  <jim@meyering.net>
54595
54596         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54597         Patch by Joerg Sonnenberger.
54598
54599 2006-01-10  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/readutmp: Depend on module free.
54602         * modules/strtok_r: Depend on module restrict.
54603
54604 2006-01-10  Bruno Haible  <bruno@clisp.org>
54605
54606         * modules/gettext (configure.ac): Add an invocation of
54607         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54608
54609 2006-01-10  Bruno Haible  <bruno@clisp.org>
54610
54611         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54612         Reported by Werner Lemberg <wl@gnu.org>.
54613
54614 2006-01-10  Bruno Haible  <bruno@clisp.org>
54615
54616         * lib/localcharset.c: Update from GNU gettext.
54617
54618 2006-01-10  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/argp.h (__const): Remove macro. Use const instead.
54621         * lib/argp-fmtstream.h (__const): Likewise.
54622         * lib/glob_.h (__const): Remove macro.
54623         * lib/glob-libc.h: Use const instead of __const.
54624
54625 2006-01-10  Bruno Haible  <bruno@clisp.org>
54626
54627         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54628         variable.
54629         Needed to avoid an automake error regarding the 'gettext' module.
54630
54631 2006-01-09  Simon Josefsson  <jas@extundo.com>
54632
54633         * modules/inet_ntop (Depends-on): Add restrict.
54634
54635 2006-01-09  Simon Josefsson  <jas@extundo.com>
54636
54637         * modules/gc-rijndael-tests (License): Put under LGPL.
54638
54639         * modules/gc-des-tests (License): Likewise.
54640
54641         * modules/gc-arcfour-tests (License): Likewise.
54642
54643         * modules/gc-arctwo-tests (License): Likewise.
54644
54645         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54646
54647         * modules/gc-hmac-sha1-tests (Files): Likewise.
54648
54649         * modules/gc-hmac-md5-tests (License): Likewise.
54650
54651         * modules/gc-sha1-tests (License): Likewise.
54652
54653         * modules/gc-md5-tests (License): Likewise.
54654
54655         * modules/gc-md4-tests (License): Likewise.
54656
54657         * modules/gc-md2-tests (License): Likewise.
54658
54659         * modules/gc-tests (License): Likewise.
54660
54661         * modules/des-tests (License): Likewise.
54662
54663         * modules/md4-tests (License): Likewise.
54664
54665         * modules/md2-tests (License): Likewise.
54666
54667 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         Sync from coreutils:
54670
54671         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54672         * modules/lib-ignore: New file.
54673         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54674         chdir-safer.m4, lchmod.m4.
54675         * modules/openat: Add mkdirat.c, openat-priv.h.
54676
54677 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54678
54679         Sync from coreutils.
54680         * m4/lib-ignore.m4: New file.
54681         * m4/lchmod.m4: New file.
54682
54683 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         Sync from coreutils.
54686         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54687         for write access: POSIX says that must fail.
54688         * lib/fts.c (diropen): Likewise.
54689         * lib/save-cwd.c (save_cwd): Likewise.
54690         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54691         well, for minor improvements on hosts that lack O_DIRECTORY.
54692         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54693         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54694         Fall back on chown if open failed with EACCES.
54695
54696         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54697         Report an error at compile-time if only a 1-second nominal clock
54698         resolution is found.
54699
54700         * lib/lchmod.h: New file.
54701         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54702         (make_dir_parents): Use lchown rather than chown, and
54703         lchmod rather than chmod.
54704
54705         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54706         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54707         "proc" reported by n0dalus.
54708
54709         * lib/mountlist.c: Include <limits.h>.
54710         (dev_from_mount_options)
54711         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54712         New function.  It no longer assumes "dev=" has the System V meaning
54713         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54714         (read_file_system_list)
54715         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54716         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54717         dev= in that case.
54718
54719         * lib/posixtm.h (PDS_PRE_2000): New macro.
54720         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54721         allow_century.  All usages changed.  Reject dates outside the range
54722         1969-1999 if PDS_PRE_2000 is used.
54723
54724 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54725
54726         Sync from coreutils.
54727         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54728         (Time of day items): Mention the possibility of leap seconds.
54729         Problem reported by Dr. David Alan Gilbert.
54730
54731 2006-01-09  Jim Meyering  <jim@meyering.net>
54732
54733         Sync from coreutils.
54734
54735         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54736
54737         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54738
54739         * lib/modechange.c (mode_compile): Reject an invalid mode string
54740         that starts with an octal digit.  From Andreas Gruenbacher.
54741
54742         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54743         and dup to open_safer and dup_safer, respectively.
54744         (openat_permissive): Fix typo in comment.
54745
54746         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54747         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54748         (_): Remove; no longer needed.
54749         (openat): Renamed from rpl_openat; no need for rpl_openat
54750         since openat.h renames openat for us.
54751         Replace most of the body with a call to openat_permissive,
54752         to avoid duplicate code.
54753         Port to (probably hypothetical) environments were mode_t is
54754         wider than int.
54755         (openat_permissive): Require mode arg, so that we can check
54756         types better.  Put it just after flags.  Change cwd failure
54757         indicator from pointer-to-bool to pointer-to-errno-value.
54758         All callers changed.
54759         Invoke openat_save_fail and/or openat_restore_fail if
54760         cwd_errno is null, so that openat can call us.
54761         (openat_permissive, fdopendir, fstatat, unlinkat):
54762         Simplify errno handling to avoid some duplicate code,
54763         as it's OK to set errno on success.
54764         * lib/openat.h: Revamp code so that function macros depend on
54765         __OPENAT_PREFIX only, not also on AT_FDCWD.
54766         (openat_ro): Remove.  Caller changed to use openat_permissive.
54767         (openat_permissive): Now a macro, if not a function.
54768         (openat_restore_fail, openat_save_fail): Now always functions,
54769         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54770
54771         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54772         and openat.c.
54773         * lib/mkdirat.c: Include openat-priv.h.
54774         Remove definitions of macros defined therein.
54775         * lib/openat.c: Likewise.
54776
54777         * lib/mkdirat.c (mkdirat): New file and function.
54778         * lib/openat.h (mkdirat): Declare.
54779
54780         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54781
54782         * lib/openat.h (openat_permissive): Declare.
54783         (openat_ro): Define.
54784
54785         * lib/openat.c (EXPECTED_ERRNO): New macro.
54786         (openat_permissive): New function -- used in remove.c rewrite.
54787         (all functions): Set errno just before returning, only if there
54788         was an actual failure.
54789         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54790
54791         Emulate openat-family functions using Linux's procfs, if possible.
54792         Idea and some code based on Ulrich Drepper's glibc changes.
54793
54794         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54795         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54796         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54797         before falling back on save_cwd and restore_cwd.
54798         (fdopendir, fstatat, unlinkat): Likewise.
54799
54800         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54801         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54802
54803         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54804         as second argument to va_arg.  Otherwise, some versions of gcc
54805         warn that `if this code is reached, the program will abort'.
54806
54807 2006-01-09  Jim Meyering  <jim@meyering.net>
54808
54809         Sync from coreutils.
54810         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54811         Require openat-priv.h.
54812
54813 2006-01-09  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/strnlen (Include): Use strnlen.h.
54816
54817 2006-01-09  Bruno Haible  <bruno@clisp.org>
54818
54819         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54820
54821 2006-01-09  Bruno Haible  <bruno@clisp.org>
54822
54823         * lib/sysexit_.h (EX_OK): New macro.
54824         Suggested by Martin Lambers <marlam@marlam.de>.
54825
54826 2006-01-09  Bruno Haible  <bruno@clisp.org>
54827
54828         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54829         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54830
54831 2006-01-09  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54834         numbers.
54835
54836 2006-01-09  Bruno Haible  <bruno@clisp.org>
54837
54838         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54839         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54840         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54841         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54842
54843 2006-01-09  Bruno Haible  <bruno@clisp.org>
54844
54845         * build-aux/javacomp.sh.in: New file, moved from lib/.
54846         * modules/javacomp-script (Files): Update.
54847         (configure.ac): Add AC_CONFIG_FILES invocation.
54848         (EXTRA_DIST): Remove variable.
54849
54850         * build-aux/javaexec.sh.in: New file, moved from lib/.
54851         * modules/javaexec (Files): Update.
54852         (configure.ac): Add AC_CONFIG_FILES invocation.
54853         (EXTRA_DIST): Remove javaexec.sh.in.
54854
54855         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54856         * modules/csharpcomp-script (Files): Update.
54857         (configure.ac): Add AC_CONFIG_FILES invocation.
54858         (EXTRA_DIST): Remove variable.
54859
54860         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54861         * modules/csharpexec (Files): Update.
54862         (configure.ac): Add AC_CONFIG_FILES invocation.
54863         (EXTRA_DIST): Remove csharpexec.sh.in.
54864
54865 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54866
54867         Sync from coreutils.
54868
54869         Add POSIX ACL support
54870         * lib/acl.h (copy_acl, set_acl): Add declarations.
54871         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54872         systems other than Linux.
54873         (chmod_or_fchmod): New function: use fchmod when possible,
54874         and chmod otherwise.
54875         (file_has_acl): Add a POSIX ACL implementation, with a
54876         Linux-specific subcase.
54877         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54878         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54879         acls are unsupported.
54880         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54881         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54882         are unsupported.
54883
54884 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54885
54886         Sync from coreutils.
54887         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54888
54889 2006-01-07  Bruno Haible  <bruno@clisp.org>
54890
54891         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54892         gl_EARLY.
54893
54894 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54897         Problem reported for Mingw by Mark Junker.
54898
54899 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54900
54901         * README: Gnulib normally doesn't generate a tarball.
54902
54903 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54906         long int, not int, for nanosecond counts, so that people who are
54907         used to POSIX struct timespec won't be surprised.  Reported by Jim
54908         Meyering.
54909
54910 2005-12-28  Bruno Haible  <bruno@clisp.org>
54911
54912         * build-aux/config.rpath: Update from GNU gettext.
54913
54914 2005-12-16  Jim Meyering  <jim@meyering.net>
54915
54916         * modules/fprintftime: New module.
54917         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54918
54919 2005-12-16  Jim Meyering  <jim@meyering.net>
54920
54921         * m4/fprintftime.m4: New file.
54922
54923 2005-12-16  Jim Meyering  <jim@meyering.net>
54924
54925         * lib/fprintftime.c, lib/fprintftime.h: New files.
54926
54927 2005-12-15  Simon Josefsson  <jas@extundo.com>
54928
54929         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54930         new m4/socklen.m4.
54931
54932 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54933
54934         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54935         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
54936
54937 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54938
54939         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
54940         * lib/argp-help.c (fill_in_uparams): Check if the constructed
54941         struct uparams is valid. Fall back to the default values if it is
54942         not.
54943
54944 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54945
54946         * modules/argp (Files): Add argp-pin.c
54947         (Depends-on): dirname
54948         (lib_SOURCES): Add argp-pin.c
54949
54950 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54951
54952         * m4/argp.m4:  Check if program_invocation_name and
54953         program_invocation_short_name are declared and define appropriate
54954         macros if they are not.
54955
54956 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54957
54958         * lib/argp-help.c (__argp_base_name): New function
54959         (__argp_short_program_name): Rewrite using __argp_base_name
54960         * lib/argp-namefrob.h: Define program_invocation_name and
54961         program_invocation_short_name if requested
54962         (__argp_base_name): Add prototype
54963         * lib/argp-parse.c (argp_def): Use gettext wrappers
54964         (argp_default_parser): Use __argp_base_name
54965         * lib/argp-pin.c: New file. Defines program_invocation_name and
54966         program_invocation_short_name on systems that lack them.
54967
54968 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54969
54970         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
54971         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54972         porting problem reported by Georg Schwarz in
54973         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54974
54975 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
54978         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54979         porting problem reported by Georg Schwarz in
54980         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54981
54982 2005-12-05  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
54985         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
54986         Reported by Mark Junker <mjscod@gmx.de>.
54987
54988 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
54989
54990         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
54991         Use implementation from Albert Chin, with some
54992         comments/corrections by Stepan Kasal and myself.
54993
54994 2005-12-02  Bruno Haible  <bruno@clisp.org>
54995
54996         * gnulib-tool (func_import): Accept GPLed build tool modules when
54997         --lgpl is given.
54998         * modules/csharpcomp-script: New file.
54999         * modules/csharpcomp: Depend on it.
55000         * modules/javacomp-script: New file.
55001         * modules/javacomp: Depend on it.
55002         Suggested by Simon Josefsson.
55003
55004 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55007         statement, to work around an HP-UX 10.20 compiler bug reported by
55008         Peter O'Gorman.
55009
55010 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55011
55012         * modules/savedir (Depends-on): Add openat.
55013
55014 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55017         (uintmax_t) [defined uintmax_t]: Do not declare.
55018         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55019         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55020         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55021         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55022         sake of portability to weird hosts that C allows (though we don't
55023         know of any practical examples).
55024
55025         * lib/savedir.h (fdsavedir): New decl.
55026         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55027         contains most of the former guts of savedir.
55028         (savedir): Use savedirstream.
55029         Include "openat.h".
55030
55031 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * modules/obstack (Files): Add m4/ulonglong.m4.
55034         Problem reported by Davide Angelocola.
55035
55036 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55037
55038         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55039         coreutils no longer futzes with rounding modes.
55040
55041 2005-11-14  Jim Meyering  <jim@meyering.net>
55042
55043         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55044         replacement of mkstemp.
55045
55046 2005-11-10  Simon Josefsson  <jas@extundo.com>
55047
55048         * lib/readline.c: Remove EOL.
55049
55050 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         * modules/gethrxtime (Depends-on): Add gettime.
55053
55054 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55055
55056         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55057         or gettimeofday; no longer needed.
55058
55059 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55060
55061         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55062         time business.
55063         (gethrxtime) [! (HAVE_NANOUPTIME
55064         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55065         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55066         our own approximation.
55067
55068 2005-11-08  Eric Blake  <ebb9@byu.net>
55069
55070         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55071
55072 2005-11-08  Eric Blake  <ebb9@byu.net>
55073
55074         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55075
55076 2005-11-04  Bruno Haible  <bruno@clisp.org>
55077
55078         * gnulib-tool: Implement --update mode.
55079
55080 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55081
55082         Fix porting problem reported by Theodoros V. Kalamatianos.
55083         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55084         Don't assume that futimes failing means we must fail.
55085
55086 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55089         variables to suggest the intended function of the PATH_MAX check.
55090
55091 2005-10-30  Kean Johnston  <jkj@sco.com>
55092
55093         Trivial changes to support SCO systems.
55094         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55095         as PATH_MAX.
55096         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55097         where __ptr is null when no I/O is pending.
55098
55099 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55102         leave errno alone.  Problem reported by Dmitry V. Levin.
55103
55104 2005-10-28  Simon Josefsson  <jas@extundo.com>
55105
55106         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55107         Test more.
55108
55109         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55110
55111         * modules/md2, modules/md2-tests: New files.
55112
55113 2005-10-28  Simon Josefsson  <jas@extundo.com>
55114
55115         * m4/inet_ntop.m4: More tests.
55116
55117         * m4/gc-md2.m4, md2.m4: New file.
55118
55119 2005-10-28  Simon Josefsson  <jas@extundo.com>
55120
55121         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55122         "restrict" keywords, as per POSIX.  Protect the function
55123         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55124         Don't use K&R prototypes.  Check the sprintf return values.
55125         Re-define EAFNOSUPPORT if not present.  Indent.
55126
55127         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55128         suggested by Bruno Haible <bruno@clisp.org>.
55129
55130         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55131
55132         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55133
55134         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55135         libgcrypt).
55136
55137         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55138
55139         * lib/md2.h, lib/md2.c: New files.
55140
55141 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55144         errno alone.  Problem reported by Frederic Jolliton.
55145
55146 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55147
55148         * modules/verify (License): Change from GPL to LGPL.  This is a
55149         tiny module and there are apparently near-equivalents that are
55150         under the BSD license.
55151
55152 2005-10-24  Simon Josefsson  <jas@extundo.com>
55153
55154         * modules/sha1: Relicense to LGPL.
55155
55156 2005-10-24  Simon Josefsson  <jas@extundo.com>
55157
55158         * lib/md4.h: Shrink buffer size, now that we changed the type.
55159
55160 2005-10-23  Simon Josefsson  <jas@extundo.com>
55161
55162         * gnulib-tool (func_import): Fix --tests-base.
55163
55164 2005-10-22  Simon Josefsson  <jas@extundo.com>
55165
55166         * modules/arcfour (Depends-on): Need stdint.
55167
55168 2005-10-22  Simon Josefsson  <jas@extundo.com>
55169
55170         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55171         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55172
55173 2005-10-22  Simon Josefsson  <jas@extundo.com>
55174
55175         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55176         suggested by Bruno Haible <bruno@clisp.org>.
55177
55178 2005-10-22  Simon Josefsson  <jas@extundo.com>
55179
55180         * lib/crc.h: Include stddef.h, for size_t.
55181
55182 2005-10-22  Simon Josefsson  <jas@extundo.com>
55183
55184         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55185         arcfour_context struct (simplify test vector testing in GNU
55186         Shishi).
55187
55188 2005-10-21  Simon Josefsson  <jas@extundo.com>
55189
55190         * modules/des, modules/des-tests: New files.
55191
55192         * modules/gc-des, modules/gc-des-tests: New files.
55193
55194         * tests/test-des.c, tests/test-gc-des.c: New file.
55195
55196 2005-10-21  Simon Josefsson  <jas@extundo.com>
55197
55198         * modules/arctwo, modules/arctwo-tests: New files.
55199
55200         * tests/test-arctwo.c: New file.
55201
55202         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55203
55204         * tests/test-gc-arctwo.c: New file.
55205
55206 2005-10-21  Simon Josefsson  <jas@extundo.com>
55207
55208         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55209         Bruno Haible <bruno@clisp.org>.
55210
55211         * m4/gc-des.m4: New file.
55212
55213 2005-10-21  Simon Josefsson  <jas@extundo.com>
55214
55215         * m4/arctwo.m4: New file.
55216
55217         * m4/gc-arctwo.m4: New file.
55218
55219 2005-10-21  Simon Josefsson  <jas@extundo.com>
55220
55221         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55222         block.
55223
55224 2005-10-21  Simon Josefsson  <jas@extundo.com>
55225
55226         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55227         <bruno@clisp.org>.
55228
55229         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55230
55231         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55232         Bruno Haible <bruno@clisp.org>.
55233
55234         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55235         <bruno@clisp.org>.
55236
55237 2005-10-21  Simon Josefsson  <jas@extundo.com>
55238
55239         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55240
55241 2005-10-21  Simon Josefsson  <jas@extundo.com>
55242
55243         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55244
55245 2005-10-21  Simon Josefsson  <jas@extundo.com>
55246
55247         * lib/des.h, lib/des.c: New files.
55248
55249         * lib/gc-gnulib.c: Support DES.c
55250
55251 2005-10-21  Simon Josefsson  <jas@extundo.com>
55252
55253         * lib/arctwo.h, lib/arctwo.c: New files.
55254
55255         * lib/gc-gnulib.c: Support ARCTWO.
55256
55257 2005-10-21  Simon Josefsson  <jas@extundo.com>
55258
55259         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55260         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55261
55262 2005-10-21  Simon Josefsson  <jas@extundo.com>
55263
55264         * gnulib-tool (func_import, func_create_testdir): Define automake
55265         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55266         Makefile.am snippet),
55267         suggested by Bruno Haible <bruno@clisp.org>.
55268
55269         * modules/gc (Makefile.am): Use it.
55270
55271 2005-10-21  Bruno Haible  <bruno@clisp.org>
55272
55273         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55274         patch.
55275
55276 2005-10-19  Simon Josefsson  <jas@extundo.com>
55277
55278         * tests/test-gc-rijndael.c: New file.
55279
55280         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55281
55282 2005-10-19  Simon Josefsson  <jas@extundo.com>
55283
55284         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55285         interface too.
55286
55287 2005-10-19  Simon Josefsson  <jas@extundo.com>
55288
55289         * tests/test-gc-arcfour.c: New file.
55290
55291         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55292
55293 2005-10-19  Simon Josefsson  <jas@extundo.com>
55294
55295         * modules/gc-md4, modules/gc-md4-tests: New file.
55296
55297         * tests/test-gc-md4.c: New file.
55298
55299 2005-10-19  Simon Josefsson  <jas@extundo.com>
55300
55301         * m4/gc-md4.m4: New file.
55302
55303 2005-10-19  Simon Josefsson  <jas@extundo.com>
55304
55305         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55306         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55307         <kasal@ucw.cz>.
55308
55309 2005-10-19  Simon Josefsson  <jas@extundo.com>
55310
55311         * m4/gc-arcfour.m4: New file.
55312
55313         * m4/gc-rijndael.m4: New file.
55314
55315 2005-10-19  Simon Josefsson  <jas@extundo.com>
55316
55317         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55318
55319 2005-10-19  Simon Josefsson  <jas@extundo.com>
55320
55321         * lib/gc-gnulib.c: Support ARCFOUR.
55322
55323 2005-10-19  Simon Josefsson  <jas@extundo.com>
55324
55325         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55326         support.
55327
55328         * lib/gc.h: Add ECB enum type.
55329
55330         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55331
55332 2005-10-18  Simon Josefsson  <jas@extundo.com>
55333
55334         * tests/test-md5.c: New file.
55335
55336         * modules/md5-tests: New file.
55337
55338 2005-10-18  Simon Josefsson  <jas@extundo.com>
55339
55340         * tests/test-md4.c: New file.
55341
55342         * modules/md4, modules/md4-tests: New files.
55343
55344 2005-10-18  Simon Josefsson  <jas@extundo.com>
55345
55346         * m4/md4.m4: New file.
55347
55348 2005-10-18  Simon Josefsson  <jas@extundo.com>
55349
55350         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55351
55352 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55353
55354         * gnulib-tool (func_create_testdir): Omit the second check whether
55355         BUILT_SOURCES in nonempty.
55356
55357 2005-10-17  Simon Josefsson  <jas@extundo.com>
55358
55359         * tests/test-rijndael.c: New file.
55360
55361 2005-10-17  Simon Josefsson  <jas@extundo.com>
55362
55363         * modules/sha1: Depend on stdint instead of md5.
55364
55365         * modules/md5: Depend on stdint, remove uint32_t.
55366
55367 2005-10-17  Simon Josefsson  <jas@extundo.com>
55368
55369         * modules/gc-sha1-tests: New file.
55370
55371         * tests/test-gc-sha1.c: New file.
55372
55373 2005-10-17  Simon Josefsson  <jas@extundo.com>
55374
55375         * m4/md5.m4: Remove call to uint32_t.m4.
55376
55377 2005-10-17  Simon Josefsson  <jas@extundo.com>
55378
55379         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55380
55381         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55382         md5.h.
55383
55384         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55385
55386         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55387
55388 2005-10-17  Simon Josefsson  <jas@extundo.com>
55389
55390         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55391
55392 2005-10-17  Simon Josefsson  <jas@extundo.com>
55393
55394         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55395
55396 2005-10-17  Simon Josefsson  <jas@extundo.com>
55397
55398         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55399
55400         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55401
55402 2005-10-17  Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55405         that it can also be used in a test.
55406
55407 2005-10-16  Bruno Haible  <bruno@clisp.org>
55408
55409         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55410         TESTS_ENVIRONMENT, so that individual tests can augment it.
55411
55412         * gnulib-tool (func_create_testdir): Use an intermediate target for
55413         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55414         macros, like $(ALLOCA_H), which cannot be passed through the command
55415         line.
55416
55417 2005-10-15  Simon Josefsson  <jas@extundo.com>
55418
55419         * modules/rijndael-tests: New file.
55420
55421         * modules/rijndael: New file.
55422
55423 2005-10-15  Simon Josefsson  <jas@extundo.com>
55424
55425         * m4/rijndael.m4: New file.
55426
55427 2005-10-15  Simon Josefsson  <jas@extundo.com>
55428
55429         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55430
55431         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55432
55433 2005-10-14  Simon Josefsson  <jas@extundo.com>
55434
55435         * tests/test-arcfour.c: New file.
55436
55437         * modules/arcfour, modules/arcfour-tests: New files.
55438
55439 2005-10-14  Simon Josefsson  <jas@extundo.com>
55440
55441         * m4/arcfour.m4: New file.
55442
55443 2005-10-14  Simon Josefsson  <jas@extundo.com>
55444
55445         * lib/arcfour.h, lib/arcfour.c: New files.
55446
55447 2005-10-14  Roland McGrath  <roland@redhat.com>
55448
55449         Import from libc.  [BZ #1331]
55450         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55451         macro argument.
55452         Reported by Matej Vela <vela@debian.org>.
55453
55454 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55455
55456         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55457         include <wchar.h>; no longer needed.
55458
55459 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55460
55461         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55462
55463 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55464         and  Ulrich Drepper  <drepper@redhat.com>
55465
55466         Import from libc.
55467         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55468         instead of inline stream orientation test and two separate
55469         function calls.  Pay no attention to USE_IN_LIBIO.
55470
55471 2005-10-13  Simon Josefsson  <jas@extundo.com>
55472
55473         * modules/gc-hmac-md5-tests: New file.
55474
55475         * tests/test-gc-hmac-sha1.c: New file.
55476
55477         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55478
55479         * modules/gc-hmac-md5-tests: New file.
55480
55481         * tests/test-gc-md5.c: New file.
55482
55483         * modules/gc-md5-tests: New file.
55484
55485 2005-10-13  Simon Josefsson  <jas@extundo.com>
55486
55487         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55488         Move memory allocation outside of loop.
55489
55490 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55491
55492         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55493         intermediate directory is in a read-only file system.  Problem
55494         reported by Eric Blake.
55495
55496 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55497
55498         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55499
55500 2005-10-12  Simon Josefsson  <jas@extundo.com>
55501
55502         * tests/test-hmac-sha1.c: New file.
55503
55504         * modules/hmac-sha1-tests: New file.
55505
55506         * modules/hmac-sha1: New file.
55507
55508 2005-10-12  Simon Josefsson  <jas@extundo.com>
55509
55510         * modules/gc-sha1: New file.
55511
55512 2005-10-12  Simon Josefsson  <jas@extundo.com>
55513
55514         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55515
55516         * tests/test-gc-pbkdf2-sha1.c: New file.
55517
55518 2005-10-12  Simon Josefsson  <jas@extundo.com>
55519
55520         * modules/gc-md5, modules/gc-hmac-md5: New files.
55521
55522         * modules/gc (Files): Remove md5, memxor and hmac files.
55523
55524 2005-10-12  Simon Josefsson  <jas@extundo.com>
55525
55526         * m4/gc-pbkdf2-sha1.m4: New file.
55527
55528         * m4/gc-hmac-sha1.m4: New file.
55529
55530         * m4/gc-sha1: New file.
55531
55532         * m4/hmac-sha1.m4: New file.
55533
55534 2005-10-12  Simon Josefsson  <jas@extundo.com>
55535
55536         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55537
55538         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55539
55540 2005-10-12  Simon Josefsson  <jas@extundo.com>
55541
55542         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55543         suggested by Bruno Haible <bruno@clisp.org>.
55544
55545 2005-10-12  Simon Josefsson  <jas@extundo.com>
55546
55547         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55548
55549 2005-10-12  Simon Josefsson  <jas@extundo.com>
55550
55551         * lib/gc-pbkdf2-sha1.c: New file.
55552
55553         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55554
55555 2005-10-12  Simon Josefsson  <jas@extundo.com>
55556
55557         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55558
55559         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55560
55561 2005-10-12  Simon Josefsson  <jas@extundo.com>
55562
55563         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55564         GC_USE_HMAC_MD5, respectively.
55565
55566         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55567         (gc_md5): Fix typo.
55568
55569         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55570
55571         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55572
55573         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55574
55575 2005-10-12  Bruno Haible  <bruno@clisp.org>
55576
55577         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55578         Reported by Stepan Kasal <kasal@ucw.cz>.
55579
55580 2005-10-11  Simon Josefsson  <jas@extundo.com>
55581
55582         * tests/test-crc.c: New file.
55583
55584         * modules/crc, modules/crc-tests: New files.
55585
55586 2005-10-11  Simon Josefsson  <jas@extundo.com>
55587
55588         * m4/crc.m4: New file.
55589
55590 2005-10-11  Simon Josefsson  <jas@extundo.com>
55591
55592         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55593
55594         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55595
55596         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55597
55598 2005-10-11  Simon Josefsson  <jas@extundo.com>
55599
55600         * lib/crc.h, lib/crc.c: New files.
55601
55602         * lib/gc.h (gc_hash_buffer): Add doc.
55603
55604 2005-10-11  Bruno Haible  <bruno@clisp.org>
55605
55606         * modules/c-strcasestr: New file.
55607         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55608
55609 2005-10-11  Bruno Haible  <bruno@clisp.org>
55610
55611         * modules/c-strcase: New file.
55612         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55613
55614 2005-10-11  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/strcasecmp.c: Include limits.h.
55617         (strcasecmp): Avoid integer overflow on exotic platforms.
55618         * lib/strncasecmp.c: Include limits.h.
55619         (strncasecmp): Avoid integer overflow on exotic platforms.
55620         Reported by Paul Eggert.
55621
55622 2005-10-11  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/c-strcasestr.h: New file, from GNU gettext.
55625         * lib/c-strcasestr.c: New file, from GNU gettext.
55626
55627 2005-10-11  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/c-strcase.h: New file, from GNU gettext.
55630         * lib/c-strcasecmp.c: New file, from GNU gettext.
55631         * lib/c-strncasecmp.c: New file, from GNU gettext.
55632
55633 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         * modules/mempcpy (License): GPL -> LGPL.
55636         * modules/strchrnul (License): Likewise.
55637         * modules/sysexits (License): Likewise.
55638
55639 2005-10-08  Simon Josefsson  <jas@extundo.com>
55640
55641         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55642
55643 2005-10-07  Simon Josefsson  <jas@extundo.com>
55644
55645         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55646
55647 2005-10-06  Simon Josefsson  <jas@extundo.com>
55648
55649         * tests/test-hmac-md5.c: New file.
55650
55651         * modules/hmac-md5-tests: New file.
55652
55653         * modules/hmac-md5: New file.
55654
55655 2005-10-06  Simon Josefsson  <jas@extundo.com>
55656
55657         * m4/hmac-md5.m4: New file.
55658
55659         * m4/memxor.m4: Require gl_C_RESTRICT.
55660
55661 2005-10-06  Simon Josefsson  <jas@extundo.com>
55662
55663         * lib/memxor.c (memxor): Avoid casts and warnings.
55664
55665 2005-10-06  Simon Josefsson  <jas@extundo.com>
55666
55667         * lib/hmac-md5.c: New file.
55668
55669         * lib/hmac.h: New file.
55670
55671 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55674         promotes to int, not unsigned int, to catch the AIX 5.3
55675         compiler bug.
55676
55677 2005-10-05  Simon Josefsson  <jas@extundo.com>
55678
55679         * modules/memxor: New file.
55680
55681         * modules/iconv (Files): Move config.rpath to havelib, it is used
55682         there.
55683
55684         * modules/havelib (Files): Add config.rpath.
55685
55686 2005-10-05  Simon Josefsson  <jas@extundo.com>
55687
55688         * m4/memxor.m4: New file.
55689
55690 2005-10-05  Simon Josefsson  <jas@extundo.com>
55691
55692         * lib/memxor.c (memxor): Fix compiler error.
55693
55694         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55695         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55696
55697         * lib/memxor.h, lib/memxor.c: New files.
55698
55699         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55700         we assume all systems have it, suggested by Jim Meyering
55701         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55702         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55703         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55704         same reasons.
55705
55706 2005-10-05  Simon Josefsson  <jas@extundo.com>
55707
55708         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55709
55710 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55711
55712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55713         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55714         needed, since the source code now assumes these .h files.
55715
55716 2005-10-05  Derek Price  <derek@ximbiot.com>
55717
55718         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55719
55720 2005-10-05  Bruno Haible  <bruno@clisp.org>
55721
55722         * modules/stdint (License): Change to LGPL.
55723
55724 2005-10-04  Simon Josefsson  <jas@extundo.com>
55725
55726         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55727         D. Baushke" <mdb@gnu.org>.
55728
55729 2005-10-04  Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/verify.h (verify_true): Provide alternative definition for C++.
55732
55733 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55734
55735         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55736         (SSIZE_MAX): New macro, if not already defined.
55737         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55738         than 2 GiB.
55739
55740 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         Sync from coreutils.
55743         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55744         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55745         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55746         ULLONG_MAX doesn't work with 2.7.2.1.
55747
55748 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55751         From Ben Pfaff.
55752
55753         * modules/exclude (Depends-on): Depend on verify.
55754         * modules/strtoimax (Depends-on): Likewise.
55755         * modules/utimecmp (Depends-on): Likewise.
55756
55757 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         * lib/exclude.c: Include verify.h.
55760         (verify): Remove.  All callers changed to use verify.h's version.
55761         * lib/strtoimax.c: Likewise.
55762         * lib/utimecmp.c: Likewis.e
55763
55764         Sync from coreutils.
55765         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55766         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55767         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55768         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55769         bother returning ENOSYS if settimeofday or stime fails; just let
55770         them return whatever errno they want to return.
55771         * lib/utimens.c: Include unistd.h, for dup2.
55772         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55773         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55774
55775 2005-10-02  Jim Meyering  <jim@meyering.net>
55776
55777         Sync from coreutils.
55778         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55779         from glibc-2.2.5 that fails for read-only files.
55780
55781 2005-10-02  Jim Meyering  <jim@meyering.net>
55782
55783         Sync from coreutils.
55784         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55785         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55786         `#if HAVE_CONFIG_H'.
55787         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55788         Remove AT_FDCWD test.
55789         Do not consume the fd unless successful.
55790         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55791         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55792         block, so that we don't even try to compile it if settimeofday is
55793         available.  This works around a compilation failure on OSF1 V5.1,
55794         due to stime requiring a `long int*' while tv_sec is `int'.
55795
55796 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55797
55798         Sync from coreutils.
55799         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55800         against `yes', rather than just testing for nonempty.
55801
55802 2005-10-01  Simon Josefsson  <jas@extundo.com>
55803
55804         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55805         and Darwin.
55806
55807         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55808         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55809         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55810         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55811         Check if struct addrinfo is declared.
55812
55813 2005-10-01  Simon Josefsson  <jas@extundo.com>
55814
55815         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55816         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55817         AI_* and EAI_* definitions.  Protect function declarations.
55818
55819 2005-10-01  Jim Meyering  <jim@meyering.net>
55820
55821         Sync from coreutils.
55822
55823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55824         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55825         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55827         in the inet and nsl libraries.  Required on Solaris 5.7.
55828
55829 2005-10-01  Jim Meyering  <jim@meyering.net>
55830
55831         Sync from coreutils.
55832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55833         in the inet and nsl libraries.  Required on Solaris 5.7.
55834
55835 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55836
55837         * lib/getdelim.c (getdelim): Remove unused variables.
55838
55839 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55840
55841         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55842         so that the code works even with ancient cpp.  Portability problem
55843         with GCC 2.7.2.1 reported by Thomas M.Ott.
55844
55845 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55846
55847         * modules/regex (Depends-on): Add strcase.
55848
55849         * modules/gethostname (Licence): Change from GPL to LGPL, since
55850         gethostname.c is a trivial implementation of a standard library
55851         function.
55852         * modules/poll (License): Change from GPL to LGPL, since it's
55853         derived from LGPL code.
55854
55855 2005-09-27  Jim Meyering  <jim@meyering.net>
55856
55857         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55858         HAVE_CONFIG_H.
55859
55860         * lib/intprops.h (signed_type_or_expr__): Define.
55861         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55862         for unsigned types.
55863
55864 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         * lib/verify.h (verify_expr): Remove, replacing with:
55867         (verify_true): New macro that returns true instead of void.
55868         (verify_type__): Remove.
55869         (verify): Use verify_true rather than verify_type__.
55870
55871 2005-09-26  Bruno Haible  <bruno@clisp.org>
55872
55873         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55874         is necessary.
55875         (lib_SOURCES): Remove mbchar.c.
55876         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55877         (Files): Add m4/mbrtowc.m4.
55878         * modules/mbiter: Likewise.
55879         * modules/mbuiter: Likewise.
55880
55881 2005-09-26  Bruno Haible  <bruno@clisp.org>
55882
55883         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55884         compile mbchar.c if they are not both present.
55885         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55886         * m4/mbiter.m4 (gl_MBITER): Likewise.
55887         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55888         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55889         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55890
55891 2005-09-25  Jim Meyering  <jim@meyering.net>
55892
55893         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55894         also uses socklen_t.
55895
55896 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55897
55898         * lib/utimens.c (ENOSYS): Define if not already defined.
55899         (futimens): Support having a null PATH if the file descriptor
55900         is nonnegative.
55901
55902         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55903         Remove.
55904         (__attribute): Define to empty unless GCC 3.1 or later.
55905         This works around a core dump on OpenBSD 3.4, which has GCC
55906         2.95.3, which dumps core when given __attribute__(()).  It also
55907         simplifies other tests, since we really don't want to bother with
55908         worrying about which ancient version of GCC supported what.
55909         Original problem reported by Yoann Vandoorselaere, with part of
55910         the fix suggested by Derek Price.
55911
55912 2005-09-24  Jim Meyering  <jim@meyering.net>
55913
55914         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55915         so we can once again use a positive bitfield width of 1 -- now we
55916         don't have to explain why we were using a bitfield width of 2.
55917
55918 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55919
55920         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55921         and similarly for the other external symbols.  Problem reported
55922         by James Gallager.
55923
55924         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55925         bug reported by Jim Meyering.
55926
55927         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55929         not needed, since socklen is a prerequisite module.
55930
55931 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55932
55933         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55934         Problem reported by Eric Blake.
55935         (getaddrinfo): Initialize se so that it's not garbage.
55936         Redo internal storage allocation so that it doesn't make unportable
55937         assumptions about alignment.
55938         Fix a memory leak.
55939
55940         * lib/utimens.c (futimens): Use futimesat if available.
55941         Prefer it to futimes since it doesn't have the futimes bug.
55942
55943         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
55944         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
55945         Instead, declare a function that returns a pointer to an array,
55946         and use verify_type__ to declare the size of the array.
55947         Problem and germ of a solution reported by Bruno Haible.
55948         (verify_type__): Use 2, not 1, for bitfield size, to avoid
55949         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
55950
55951 2005-09-23  Jim Meyering  <jim@meyering.net>
55952
55953         Sync from coreutils.
55954         Correct build failure (socklen_t not defined) on at least
55955         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
55956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
55957
55958 2005-09-23  Jim Meyering  <jim@meyering.net>
55959
55960         * modules/getaddrinfo (Depends-on): Add socklen.
55961
55962 2005-09-23  Bruno Haible  <bruno@clisp.org>
55963
55964         * tests/test-verify.c: New file.
55965
55966 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55967
55968         Sync from coreutils.
55969
55970         * modules/argmatch (Depends-on): Add verify.
55971         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
55972         unistd-safer.
55973         * modules/save-cwd (Depends-on): Likewise.
55974
55975         * modules/openat (Files): Add lib/openat-die.c.
55976         (Depends-on): Remove error, exitfail.
55977         Add dirname.
55978
55979         * modules/verify: New file.
55980         * MODULES.html.sh (Diagnostics <assert.h>): New section,
55981         with "verify" module.
55982
55983 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55984
55985         Sync from coreutils.
55986
55987         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
55988         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
55989         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
55990         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
55991         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
55992         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
55993         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
55994         Don't bother checking for string.h, stdlib.h, unistd.h.
55995         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
55996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
55997         module's job.
55998         * m4/jm-macros.m4 (gl_MACROS): Likewise.
55999         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56000
56001         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56002         (gl_GETDATE): Use it.
56003
56004         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56005
56006 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         Sync from coreutils.
56009
56010         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56011         stat-time.h.
56012         * lib/argmatch.h: Include verify.h
56013         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56014         (ARGMATCH_ASSERT): Remove; unused.
56015         * lib/canonicalize.c: Assume STDC_HEADERS.
56016         * lib/exclude.c: Include "strcase.h".
56017         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56018         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56019         and stdio-safer.h.
56020         (getusershell): Call fopen, not fopen_safer.
56021         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56022         Do not include unistd-safer.h.
56023         (save_cwd): Don't call fd_safer; no longer needed
56024         now that we include fcntl--.h.
56025
56026         * lib/getdate.y (relative_time): New type.
56027         (RELATIVE_TIME_0): New constant.
56028         (parser_control): Use relative_time instead of doing it ourselves.
56029         (%union): Add new relative_time rel member.
56030         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56031         Now typeless.
56032         (relunit, relunit_snumber): Now of type rel.
56033         (zone, rel, relunit, get_date): Adjust to above changes.
56034
56035         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56036         Do not include unistd-safer.h.
56037         (getloadavg): Don't call fd_safer; no longer needed
56038         now that we include fcntl--.h.
56039
56040         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56041         (make_dir_parents): Treat ENOSYS like EEXIST.
56042
56043         Improve quality of diagnostics on restore_cwd failure.
56044         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56045         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56046         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56047         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56048         each time through the loop.  Do not diagnose restore_cwd failure;
56049         that is the caller's job (and perhaps the caller does not care).
56050
56051         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56052         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56053         If the file already exists but is not a directory, don't bother
56054         to try to make its parents.
56055         Close potential file descriptor leak if we can't chdir("/") (!).
56056         Don't always return true if chdir($PWD) fails; return true only
56057         if the requested action was done successfully (except for the
56058         chdir($PWD)).
56059         Don't log final directory unless we actually made it.
56060         Refactor to avoid duplicate code to fix up permissions.
56061         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56062
56063         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56064         to make it a bit faster and (I hope) clearer.
56065         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56066         Fix bug in formats like %2N.
56067
56068         * lib/verify.h: New file.
56069
56070 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         Sync from coreutils.
56073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56074
56075 2005-09-22  Jim Meyering  <jim@meyering.net>
56076
56077         Sync from coreutils.
56078
56079         * m4/lstat.m4 (gl_FUNC_LSTAT):
56080         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56081         Remove obsolete comment.
56082         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56083         * m4/xstrtod.m4: Likewise.
56084
56085         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56086
56087 2005-09-22  Jim Meyering  <jim@meyering.net>
56088
56089         Sync from coreutils.
56090
56091         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56092
56093         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56094         the .tm_year member, since otherwise gcc-4.0 would now warn about
56095         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56096
56097         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56098         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56099
56100         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56101         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56102         when run in a time zone for which daylight savings time is in effect
56103         for the starting date.
56104
56105         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56106         stop us from restricting permissions of just-created absolute-named
56107         directories.
56108         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56109         to restore initial working directory.
56110         * lib/mkdir-p.c (make_dir_parents): New parameter:
56111         different_working_dir, to tell caller if/when we change the working
56112         directory and are unable to return to the initial one.
56113         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56114         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56115         `return false'.  This fixes a bug introduced on 2004-07-30.
56116
56117         * lib/openat.c (fdopendir): Be sure to close the supplied
56118         file descriptor before returning.  This makes our replacement
56119         implementation a little closer to Solaris's, where fdopendir
56120         ties the file descriptor to the returned DIR* pointer.
56121         * lib/openat.c (unlinkat): New function.
56122         * lib/openat.h (unlinkat): Add prototype.
56123         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56124         (openat_restore_fail): Rename from openat_restore_die.
56125         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56126
56127         Provide an alternative to exiting immediately upon save_cwd or
56128         restore_cwd failure.  Now, an application can arrange e.g.,
56129         to perform a longjump in that case.
56130         * lib/openat.c: Include dirname.h.
56131         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56132         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56133         and openat_restore_die rather than calling error directly.
56134         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56135
56136         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56137         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56138         define.
56139
56140         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56141         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56142                             int utc, int nanoseconds);
56143         Background:
56144         date should not have to allocate a megabyte of virtual memory to
56145         handle a format argument like +%1048575T.  When implemented with
56146         strftime, it must allocate such a buffer, use strftime to fill it
56147         in, print it, then free it.
56148         With fprintftime, it simply prints everything and exits.
56149         With no need for memory allocation, that's one fewer way to fail.
56150         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56151         optional field width, not before, so we accept %9:z, not %:9z.
56152         (my_strftime): Be sure to use L_('x') for literals.
56153
56154         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56155         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56156         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56157         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56158         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56159         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56160         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56161         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56162         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56163         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56164         * lib/xgethostname.c, lib/xreadlink.c:
56165         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56166
56167         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56168         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56169         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56170         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56171         and don't include <sys/file.h>).
56172
56173 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56174
56175         Sync from coreutils.
56176
56177         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56178         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56179         [!LDAV_DONE]: Avoid unused variable warning.
56180
56181 2005-09-21  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/unicodeio.h (unicode_to_mb): New declaration.
56184
56185 2005-09-20  Derek Price  <derek@ximbiot.com>
56186
56187         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56188         getaddrinfo.h.
56189
56190 2005-09-20  Bruno Haible  <bruno@clisp.org>
56191
56192         * gnulib-tool: Remove trailing slashes from the values specified for
56193         --source-base, --m4-base, --tests-base, --aux-dir.
56194         Suggested by Simon Josefsson <jas@extundo.com>.
56195
56196 2005-09-20  Bruno Haible  <bruno@clisp.org>
56197
56198         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56199         func_modules_to_filelist, func_import, func_create_testdir): Make all
56200         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56201         change when gnulib-tool is invoked in a different locale.
56202
56203 2005-09-19  Simon Josefsson  <jas@extundo.com>
56204
56205         * m4/socklen.m4: Fix typo.
56206
56207 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56208
56209         Use a consistent style for including <config.h>.
56210         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56211         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56212         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56213         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56214         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56215         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56216         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56217         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56218         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56219         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56220         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56221         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56222         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56223         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56224         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56225         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56226         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56227         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56228         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56229         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56230         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56231         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56232         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56233         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56234         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56235         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56236         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56237         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56238         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56239         lib/xstrtoumax.c, lib/yesno.c:
56240         Standardize inclusion of config.h.
56241         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56242         lib/inttostr.h:  Removed inclusion of config.h from header files.
56243         * lib/inttostr.c:  Adjusted in-tree users.
56244         * lib/timespec.h: Remove superfluous warning to include config.h.
56245         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56246         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56247         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56248         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56249         config.h with HAVE_CONFIG_H.
56250
56251 2005-09-19  Jim Meyering  <jim@meyering.net>
56252
56253         * modules/pathmax (License): Change to LGPL.
56254
56255 2005-09-19  Derek Price  <derek@ximbiot.com>
56256
56257         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56258
56259 2005-09-19  Bruno Haible  <bruno@clisp.org>
56260
56261         * gnulib-tool (import): Provide default for --tests-base.
56262
56263 2005-09-19  Bruno Haible  <bruno@clisp.org>
56264
56265         * doc/quote.texi: New file, extracted from gnulib.texi.
56266         * doc/ctime.texi: New file, extracted from gnulib.texi.
56267         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56268         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56269         * doc/gnulib.texi: Include them.
56270
56271 2005-09-18  Bruno Haible  <bruno@clisp.org>
56272
56273         Portability fix.
56274         * gnulib-tool (func_readlink): New function.
56275         (func_ln_if_changed): Use it.
56276
56277 2005-09-18  Bruno Haible  <bruno@clisp.org>
56278
56279         * gnulib-tool: Support --with-tests also with --import.
56280         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56281         (func_import): Use variables $testsbase and $inctests. Emit a
56282         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56283         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56284         SUBDIRS += $testsdir.
56285         (func_create_testdir): Update.
56286
56287 2005-09-18  Bruno Haible  <bruno@clisp.org>
56288
56289         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56290         instead of $dry_run.
56291         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56292         (func_ln_if_changed): Don't handle dry-run here.
56293         (func_import): In dry-run mode, detect more precisely which actions
56294         would be performed, and don't use "...ing" verbs.
56295
56296 2005-09-18  Bruno Haible  <bruno@clisp.org>
56297
56298         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56299         (func_import): Use join on two temporary files instead of three nested
56300         loops, in order to determine which files are new or old.
56301
56302 2005-09-18  Bruno Haible  <bruno@clisp.org>
56303
56304         * gnulib-tool (func_import): Comment out code that spits out the
56305         new files with --dry-run.
56306
56307 2005-09-18  Bruno Haible  <bruno@clisp.org>
56308
56309         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56310
56311 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56312
56313         * lib/stat-time.h: New file.
56314         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56315         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56316         in a different way.
56317         (timespec_cmp): New function.
56318         * lib/utimecmp.c: Include stat-time.h.
56319         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56320         members exist, not on the obsolescent ST_MTIM_NSEC.
56321         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56322
56323 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56324
56325         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56326
56327 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56328
56329         * MODULES.html.sh (File system functions): Add stat-time.
56330         * modules/stat-time: New file.
56331         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56332         is now done in a different way, by the stat-time module.
56333         * modules/utimecmp (Depends-on): Add stat-time.
56334
56335 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         * m4/st_mtim.m4: Remove.  Superseded by...
56338         * m4/stat-time.m4: New file.
56339         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56340         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56341
56342 2005-09-15  Derek Price  <derek@ximbiot.com>
56343
56344         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56345
56346 2005-09-15  Derek Price  <derek@ximbiot.com>
56347
56348         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56349         * lib/regex_internal.c: Ditto, using this...
56350         (__GNUC_PREREQ): ...new macro.
56351         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56352         using...
56353         (__GNUC_PREREQ): ...this new macro.
56354
56355         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56356
56357 2005-09-15  Derek Price  <derek@ximbiot.com>
56358             Paul Eggert  <eggert@cs.ucla.edu>
56359
56360         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56361         changes, consolidating in...
56362         * lib/regex_internal.h: ...this file.
56363
56364 2005-09-13  Jim Meyering  <jim@meyering.net>
56365
56366         * lib/canon-host.c: Filter through gnu indent and reword comments
56367         slightly.
56368         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56369
56370 2005-09-13  Derek Price  <derek@ximbiot.com>
56371
56372         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56373         failure.
56374         Reported by Jim Meyering  <jim@meyering.net>.
56375
56376 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56377
56378         * lib/base64.c: Typo.
56379         (base64_encode): Put b64str in initialized data section.
56380
56381 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56382
56383         Merge glibc and coreutils changes into gnulib, plus a few
56384         extra fixes.
56385         * lib/md5.c: Use #error rather than a string.
56386         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56387         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56388         (__attribute__): Define to empty for non recent-GCC.
56389         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56390         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56391         Renamed from their non-__ counterparts, with new macros replacing
56392         them if not _LIBC.  Add __THROW attribute.
56393         (rol): Remove.
56394         (struct md5_ctx): Align buffer if using GCC.
56395         * lib/sha1.h (struct sha1_ctx): Likewise.
56396         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56397         The old name was backwards.
56398         (NOTSWAP): Remove; not used.
56399         (rol): New macro, moved here from md5.h.
56400         (sha1_process_block): Remove a FIXME that doesn't make sense.
56401
56402 2005-09-12  Derek Price  <derek@ximbiot.com>
56403
56404         Return usable errors from canon-host.
56405         * lib/canon-host.h: New file.
56406         * lib/canon-host.c (canon_host): Wrap...
56407         (canon_host_r): ...this new function, which now relies exclusively on
56408         getaddrinfo.
56409         (ch_strerror): New function.
56410         (last_cherror): New global.
56411         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56412         interface.
56413         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56414         void *.
56415         (freeaddrinfo): Free ai->ai_canonname when set.
56416
56417 2005-09-12  Derek Price  <derek@ximbiot.com>
56418
56419         Make canon-host require getaddrinfo.
56420         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56421         AC_LIBSOURCE canon-host.h.  Call...
56422         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56423         gl_GETADDRINFO.
56424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56425
56426 2005-09-12  Derek Price  <derek@ximbiot.com>
56427
56428         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56429         LGPL.
56430         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56431
56432 2005-09-12  Derek Price  <derek@ximbiot.com>
56433
56434         * lib/gai_strerror.c: Include config.h when available.  Include
56435         getaddrinfo.h before other headers to test interface.
56436         Reported by Larry Jones <lawrence.jones@ugs.com>.
56437
56438 2005-09-12  Derek Price  <derek@ximbiot.com>
56439             Paul Eggert  <eggert@cs.ucla.edu>
56440
56441         * modules/glob (Files): Add glob-libc.h.
56442
56443 2005-09-12  Derek Price  <derek@ximbiot.com>
56444             Paul Eggert  <eggert@cs.ucla.edu>
56445
56446         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56447         glob_.h, glob-libc.h.
56448         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56449
56450 2005-09-12  Derek Price  <derek@ximbiot.com>
56451             Paul Eggert  <eggert@cs.ucla.edu>
56452
56453         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56454         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56455         protecting things that should be done only in gnulib contexts.
56456         * lib/glob_.h: New file, containing only the glob things needed for
56457         gnulib.
56458         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56459         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56460         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56461         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56462         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56463         and to respect the namespace rules better.
56464
56465 2005-09-08  Simon Josefsson  <jas@extundo.com>
56466
56467         * modules/socklen: New file.
56468
56469 2005-09-08  Simon Josefsson  <jas@extundo.com>
56470
56471         * m4/socklen.m4: New file.
56472
56473 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56474
56475         * modules/utimens (Files): Add m4/utimbuf.m4, since
56476         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56477         Reported by Sergey Poznyakoff.
56478
56479 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56480
56481         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56482         definitions, since that's the preferred style in glibc.
56483         Fix a minor spacing issue, and update copyright notice to match
56484         glibc's.
56485
56486 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56487
56488         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56489
56490 2005-09-06  Simon Josefsson  <jas@extundo.com>
56491
56492         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56493         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56494
56495 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56496
56497         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56498         warning.
56499
56500 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56501
56502         * config/srclist.txt: Add glibc bug 1302.
56503
56504 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56505
56506         Change bitset word type from unsigned int to unsigned long int,
56507         as this has better performance on typical 64-bit hosts.
56508         Port bitset code to hosts with unusual word sizes.
56509         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56510         (build_collating_symbol):
56511         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56512         argument is a bitset.  This is merely a style issue, but it makes
56513         it clearer that an entire array is expected.
56514         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56515         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56516         Port to the case where bitset_word is not the same as unsigned int.
56517         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56518         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56519         Likewise.
56520         * lib/regexec.c (check_dst_limits_calc_pos_1,
56521         check_subexp_matching_top):
56522         (build_trtable, group_nodes_into_DFAstates):
56523         Likewise.
56524         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56525         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56526         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56527         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56528         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56529         * lib/regcomp.c (optimize_subexps, lower_subexp):
56530         Work even if bitset_word has holes in its bitwise representation.
56531         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56532         * lib/regexec.c (check_dst_limits_calc_pos_1,
56533         check_subexp_matching_top):
56534         Likewise.
56535         * lib/regex_internal.c (re_string_reconstruct):
56536         Don't assume UCHAR_MAX == 255.
56537         * lib/regex_internal.h (bitset_set_all): Likewise.
56538         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56539         All uses changed.
56540         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56541         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56542         All uses changed.
56543         (BITSET_WORD_MAX): New macro.
56544         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56545         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56546         (bitset_empty, bitset_copy):
56547         Prefer sizeof (bitset) to multiplying it out ourselves.
56548         (bitset_not_merge): Remove; unused.
56549         (bitset_contain): Return bool, not unsigned int with one bit on.
56550         All callers changed.
56551         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56552         alignment than re_node_set; do this by defining a new internal
56553         type struct dests_alloc and using it to allocate memory.
56554
56555 2005-09-05  Bruno Haible  <bruno@clisp.org>
56556
56557         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56558         links.
56559
56560 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56561
56562         * modules/size_max (Makefile.am): Add size_max.h
56563
56564 2005-09-04  Derek Price  <derek@ximbiot.com>
56565
56566         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56567
56568 2005-09-03  Simon Josefsson  <jas@extundo.com>
56569
56570         * gnulib-tool: Fix typo.
56571
56572 2005-09-03  Simon Josefsson  <jas@extundo.com>
56573
56574         * config/srclist.txt: Add glibc bug 1293.
56575
56576 2005-09-03  Derek Price  <derek@ximbiot.com>
56577
56578         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56579         From Larry Jones <lawrence.jones@ugs.com>.
56580
56581 2005-09-02  Simon Josefsson  <jas@extundo.com>
56582
56583         * modules/socklen: New file.
56584
56585 2005-09-02  Simon Josefsson  <jas@extundo.com>
56586
56587         * modules/havelib: New module.
56588
56589         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56590         Use havelib.
56591
56592 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         Check for arithmetic overflow when calculating sizes, to prevent
56595         some buffer-overflow issues.  These patches are conservative, in the
56596         sense that when I couldn't determine whether an overflow was possible,
56597         I inserted a run-time check.
56598         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56599         macros.
56600         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56601         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56602         (re_xnrealloc, re_x2nrealloc): New inline functions.
56603         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56604         parse_bracket_exp):
56605         (build_equiv_class, build_charclass): Check for arithmetic overflow
56606         in size expression calculations.
56607         * lib/regex_internal.c (re_string_realloc_buffers):
56608         (build_wcs_upper_buffer, re_node_set_add_intersect):
56609         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56610         (re_dfa_add_node, register_state): Likewise.
56611         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56612         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56613         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56614         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56615
56616 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56617
56618         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56619         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56620
56621 2005-09-02  Bruno Haible  <bruno@clisp.org>
56622
56623         Support for lib vs. lib64 distinction on biarch platforms.
56624         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56625         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56626         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56627
56628 2005-09-02  Bruno Haible  <bruno@clisp.org>
56629
56630         * gnulib-tool (import): In the other first-use case, provide defaults
56631         as well.
56632
56633 2005-09-02  Bruno Haible  <bruno@clisp.org>
56634
56635         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56636         patches not yet found in the latest gettext release.
56637
56638 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56641         to avoid a collision with bits/local_lim.h in glibc.
56642         All uses changed.  Problem reported by Dmitry V. Levin in
56643         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56644
56645         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56646         bugs in int versus size_t comparisons.
56647         (re_string_context_at): Fix bug where the code assumed that
56648         Idx is signed.
56649
56650         Use bool where appropriate.
56651         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56652         All callers changed.
56653         (calc_eclosure_iter): Likewise, for ROOT arg.
56654         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56655         (build_charclass_op): Likewise, for NON_MATCH arg.
56656         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56657         (re_string_construct_common): Likewise, for ICASE arg.
56658         * lib/regexec.c (re_search_2_stub, re_search_stub):
56659         Likewise, for RET_LEN arg.
56660         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56661         (set_regs): Likewise, for FL_BACKTRACK arg.
56662         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56663         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56664         (calc_eclosure_iter, parse_bracket_exp):
56665         Use bool for internal variables that are booleans.
56666         * lib/regexec.c (re_search_internal, check_matching,
56667         proceed_next_node):
56668         (set_regs, build_sifted_states, sift_states_bkref):
56669         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56670         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56671         (find_collation_sequence_value):
56672         Likewise.
56673         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56674         (re_node_set_compare):
56675         Return bool, not int. All callers changed.
56676         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56677         (build_trtable, check_node_accept): Likewise.
56678         * lib/regex_internal.h: Include stdbool.h.
56679
56680         Fix bugs uncovered when converting to bool.
56681         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56682         failure instead of charging ahead blindly.
56683         * lib/regex_internal.c (register_state): Likewise.
56684         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56685         for freeing internal storage.
56686         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56687         bitset pieces used as boolean, to avoid undefined behavior
56688         on hosts that do int overflow checking.
56689
56690 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * config/srclist.txt: Add glibc bugs 1285-1287.
56693
56694 2005-09-01  Jim Meyering  <jim@meyering.net>
56695
56696         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56697         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56698         Require gl_STAT_MACROS, too.
56699
56700 2005-09-01  Bruno Haible  <bruno@clisp.org>
56701
56702         * gnulib-tool (import): In the first-use case, provide defaults.
56703
56704 2005-09-01  Bruno Haible  <bruno@clisp.org>
56705
56706         * gnulib-tool (func_import): Remove the .tmp files.
56707
56708 2005-09-01  Bruno Haible  <bruno@clisp.org>
56709
56710         * gnulib-tool (func_import): Fix handling of symbolic links.
56711
56712 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56715         old glibc regex code mishandles strings longer than 2**31 bytes.
56716         This patch fixes this when the regex code is used in gnulib
56717         (i.e., outside glibc).
56718
56719         This patch should not affect the use of the regex code inside
56720         glibc.  No doubt this problem also needs to be handled for glibc
56721         as well, but the result will be an incompatible change to the
56722         glibc ABI, and the old ABI will have to be supported too.  That
56723         can be the the subject for another patch.
56724
56725         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56726         governing whether the rest of this patch is active.  By default,
56727         the macro is disabled and the patch has no effect.
56728         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56729         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56730         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56731         (re_match_2, re_set_registers): Use the new types.
56732         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56733         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56734         New macros.
56735         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56736         (re_string_context_at, bin_tree_t, re_dfastate_t):
56737         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56738         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56739         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56740         (re_string_char_size_at, re_string_wchar_at):
56741         (re_string_elem_size_at):
56742         Use the new types and macros to port to 64-bit hosts.
56743         Use unsigned types for internal values, so that the code
56744         mostly works even for arrays larger than SSIZE_MAX.
56745         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56746         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56747         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56748         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56749         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56750         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56751         (calc_inveclosure, parse_dup_op, build_range_exp):
56752         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56753         (fetch_number, create_token_tree, mark_opt_subexp):
56754         Likewise.
56755         * lib/regex_internal.c (re_string_construct_common,
56756         create_ci_newstate):
56757         (create_cd_newstate, re_string_allocate, re_string_construct):
56758         (re_string_realloc_buffers, build_wcs_upper_buffer):
56759         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56760         (re_string_reconstruct, re_string_peek_byte_case):
56761         (re_string_fetch_byte_case, re_string_context_at):
56762         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56763         (re_node_set_init_copy, re_node_set_add_intersect):
56764         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56765         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56766         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56767         (re_acquire_state, re_acquire_state_context, register_state):
56768         Likewise.
56769         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56770         search_cur_bkref_entry):
56771         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56772         (re_search_internal, re_search_2_stub, re_search_stub)
56773         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56774         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56775         (update_cur_sifted_state, check_dst_limits):
56776         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56777         (check_subexp_limits, sift_states_bkref, merge_state_array):
56778         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56779         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56780         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56781         (expand_bkref_cache, check_node_accept_bytes):
56782         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56783         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56784         (acquire_init_state_context, check_halt_node_context):
56785         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56786         (sift_states_backward, clean_state_log_if_needed):
56787         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56788         (find_recover_state, transit_state_sb, transit_state_mb):
56789         (transit_state_bkref, build_trtable, match_ctx_clean):
56790         Likewise.
56791         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56792         to work around an assumption that REG_MISSING is negative.
56793
56794         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56795         (seek_collating_symbol_entry) [defined _LIBC]:
56796         (lookup_collation_sequence_value) [defined _LIBC]:
56797         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56798         Use prototypes rather than old-style function definitions.
56799         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56800         (transit_state_sb) [0]:
56801         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56802
56803         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56804         rm_eo.
56805
56806         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56807         (optimize_subexps, lower_subexp):
56808         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56809         since the signed shift might overflow.  Use 1u<<31 instead.
56810         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56811         Likewise.
56812         * lib/regexec.c (check_dst_limits_calc_pos_1,
56813         check_subexp_matching_top): Likewise.
56814
56815         * lib/regcomp.c (optimize_subexps, lower_subexp):
56816         Use CHAR_BIT rather than 8, for clarity.
56817         * lib/regexec.c (check_dst_limits_calc_pos_1):
56818         (check_subexp_matching_top): Likewise.
56819         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56820         have to worry about portability issues when shifting it left.
56821         Remove no-longer-needed test for table_size > 0.
56822         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56823         in a word, as the resulting behavior is undefined.
56824         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56825         in one case, a <= should have been an <, and in another case the
56826         whole test was missing.
56827         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56828         the standard name CHAR_BIT.
56829         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56830         this is not true on one's complement and signed-magnitude hosts.
56831
56832         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56833         next_last_offset.
56834         (struct re_dfa_t): Remove unused member states_alloc.
56835         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56836
56837 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56840         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56841         and large-file glibc and in 32-bit large-file Solaris.
56842
56843 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56846         lengths fit in regoff_t; this isn't true if regoff_t is the same
56847         width as size_t.
56848         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56849         (= START + RANGE) instead of RANGE.  This avoids overflow
56850         problems when regoff_t is the same width as size_t.
56851         All callers changed.
56852         (re_search_2_stub): Check for overflow when adding the
56853         sizes of the two strings.
56854         (re_search_stub): Check for overflow when adding START
56855         to RANGE; if it occurs, substitute the extreme value.
56856
56857 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56860
56861 2005-08-31  Jim Meyering  <jim@meyering.net>
56862
56863         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56864         a pointer-to-const.
56865         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56866         (register_state): Likewise.
56867         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56868         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56869         (group_nodes_into_DFAstates): Likewise.
56870
56871 2005-08-31  Jim Meyering  <jim@meyering.net>
56872
56873         * check-module: Add a FIXME comment.
56874
56875 2005-08-31  Eric Blake  <ebb9@byu.net>
56876
56877         * modules/unistd-safer (Files): Add unistd--.h.
56878         * modules/stdio-safer (Files): Add stdio--.h.
56879
56880 2005-08-31  Derek Price  <derek@ximbiot.com>
56881
56882         * lib/getdelim.c (getdelim): Return EOF on EOF.
56883         Reported by Larry Jones <lawrence.jones@ugs.com>.
56884
56885 2005-08-31  Bruno Haible  <bruno@clisp.org>
56886
56887         Avoid unnecessary diffs in the generated lib/Makefile.am.
56888         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56889         the generated files.
56890         (func_import): Don't set cmd.
56891
56892 2005-08-31  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/strstr.c: Include <stddef.h>, for NULL.
56895         * lib/strcasestr.c: Likewise.
56896         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56897
56898 2005-08-31  Bruno Haible  <bruno@clisp.org>
56899
56900         * gnulib-tool: New option --macro-prefix.
56901         (func_import): Use macro_prefix.
56902         (import): Handle option --macro-prefix.
56903
56904 2005-08-31  Bruno Haible  <bruno@clisp.org>
56905
56906         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56907         Also use new variables cached_lgpl, cached_libtool.
56908
56909 2005-08-31  Bruno Haible  <bruno@clisp.org>
56910
56911         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56912         always instantiating them.
56913
56914 2005-08-31  Bruno Haible  <bruno@clisp.org>
56915
56916         * gnulib-tool (func_import): Read the previous cached settings
56917         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56918         earlier added by gnulib but are now dropped. Warn when a gnulib file
56919         overwrites a non-gnulib file.
56920
56921 2005-08-31  Bruno Haible  <bruno@clisp.org>
56922
56923         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56924         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56925         projects that don't keep autogenerated files in CVS. Put into
56926         actioncmd only the specified modules, not the transitive closure.
56927
56928 2005-08-31  Bruno Haible  <bruno@clisp.org>
56929
56930         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56931         Create directories that shall be filled.
56932         (import): Don't look for gl_* macros in configure.ac. Recurse across
56933         all directories containing a gnulib-cache.m4 files, if meaningful.
56934
56935 2005-08-31  Bruno Haible  <bruno@clisp.org>
56936
56937         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
56938         (import): Set seen_libtool when we see gl_LIBTOOL.
56939
56940 2005-08-31  Bruno Haible  <bruno@clisp.org>
56941
56942         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
56943         declaration macro definitions from generated gnulib.m4.
56944
56945 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
56946
56947         * lib/iconvme.h: Add prototype for iconv_alloc.
56948
56949 2005-08-29  Simon Josefsson  <jas@extundo.com>
56950
56951         * lib/iconvme.c: Fix errno.
56952
56953 2005-08-29  Bruno Haible  <bruno@clisp.org>
56954
56955         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
56956         that it works when the directory contains spaces.
56957
56958 2005-08-29  Bruno Haible  <bruno@clisp.org>
56959
56960         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
56961
56962 2005-08-29  Bruno Haible  <bruno@clisp.org>
56963
56964         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
56965         Emit more advice.
56966
56967 2005-08-29  Bruno Haible  <bruno@clisp.org>
56968         and Stepan Kasal  <kasal@ucw.cz>
56969
56970         * check-module: If more parameters are given, check each of them
56971         separately; add more exceptions, as noted by Jim Meyering.
56972         (check_module): New procedure.
56973         (%exempt_header): Now contains all exceptions.
56974
56975 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
56976
56977         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
56978
56979 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
56980
56981         * lib/iconvme.c: Split iconv_string into iconv_alloc.
56982
56983 2005-08-28  Bruno Haible  <bruno@clisp.org>
56984
56985         * m4/gnulib-tool.m4: New file.
56986
56987 2005-08-27  Jim Meyering  <jim@meyering.net>
56988
56989         * modules/unistd-safer (Files): Add pipe-safer.c.
56990         * modules/fcntl-safer (Files): Add creat-safer.c.
56991
56992 2005-08-27  Jim Meyering  <jim@meyering.net>
56993
56994         * m4/stdlib-safer.m4: New file.  From coreutils.
56995         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
56996         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
56997         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
56998         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
56999         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57000
57001 2005-08-27  Jim Meyering  <jim@meyering.net>
57002
57003         * lib/fopen-safer.c: Merge minor changes from coreutils.
57004         * lib/dup-safer.c: Likewise.
57005         * lib/fd-safer.c: Likewise.
57006
57007         Merge from coreutils.
57008         * lib/stdio--.h: New file.
57009         * lib/stdlib--.h: New file.
57010         * lib/mkstemp-safer.c: New file.
57011
57012         GNU tar needs these.
57013         * lib/pipe-safer.c: New file.
57014         * lib/creat-safer.c: New file.
57015         * lib/fcntl--.h (creat): Define to creat_safer.
57016         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57017         * lib/unistd--.h (pipe): Define to pipe_safer.
57018         * lib/unistd-safer.h: Declare pipe_safer.
57019
57020 2005-08-26  Simon Josefsson  <jas@extundo.com>
57021
57022         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57023         Haible <bruno@clisp.org>.
57024
57025 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         * lib/regex_internal.h: Remove all references to
57028         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57029         or better.
57030         (bitset_not, bitset_merge, bitset_not_merge):
57031         (bitset_mask, re_string_allocate, re_string_construct):
57032         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57033         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57034         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57035         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57036         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57037         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57038         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57039         (re_acquire_state_context):
57040         Remove unnecessary forward decls.
57041         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57042         Put __attribute at function definition,
57043         now that the function decl has been removed.
57044         * lib/regex_internal.c (re_string_peek_byte_case):
57045         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57046         Likewise.
57047
57048 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57049
57050         * m4/regex.m4: Add AC_PREREQ(2.50).
57051         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57052
57053 2005-08-25  Simon Josefsson  <jas@extundo.com>
57054
57055         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57056         __fsetlocking.
57057
57058 2005-08-25  Simon Josefsson  <jas@extundo.com>
57059
57060         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57061         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57062         GLIBC specific code.
57063
57064 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         Make regex safe for g++.  This fixes one real bug (an "err"
57067         that should have been "*err").  g++ problem reported by
57068         Sam Steingold.
57069         * lib/regex_internal.h (re_calloc): New macro, consistent with
57070         re_malloc etc.  All callers of calloc changed to use re_calloc.
57071         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57072         not int.  All callers changed.
57073         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57074         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57075         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57076         (find_recover_state): Change "err" to "*err"; this fixes what
57077         appears to be a real bug.
57078         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57079         versus int.
57080
57081 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57082
57083         * modules/regex (Depends-on): Add malloc, since the code
57084         assumes that !malloc(0) means failure.
57085
57086 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57089
57090         alloca modernization/simplification for regex.
57091         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57092         needs to be at the start of the file, and can be moved into
57093         regex_internal.h and simplified.
57094         * lib/regex_internal.h: Include <alloca.h>.
57095         (__libc_use_alloca) [!defined _LIBC]: New macro.
57096         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57097         now works outside glibc.
57098
57099 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         * config/srclist.txt: Add glibc bugs 1241, 1245.
57102
57103 2005-08-25  Jim Meyering  <jim@meyering.net>
57104
57105         * lib/open-safer.c: Include <config.h>.
57106         Otherwise, we'd lose LARGEFILE support in any file using
57107         e.g. "fcntl--.h"
57108
57109 2005-08-25  Bruno Haible  <bruno@clisp.org>
57110
57111         * m4/minmax.m4: Require autoconf 2.52.
57112         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57113         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57114         alternatives of translit over the alphabet.
57115         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57116
57117 2005-08-24  Simon Josefsson  <jas@extundo.com>
57118
57119         * tests/test-getpass.c: New file.
57120
57121 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57122
57123         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57124         for GNU regex features.
57125
57126 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57127
57128         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57129         * lib/regex.h (regerror): Likewise.
57130
57131         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57132         requires this.  (The code never needed it.)
57133
57134         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57135         All uses of recently-renamed identifiers changed to use the new,
57136         POSIX-compliant names.  The code will build and run just fine
57137         without these changes, but it's better to eat our own dog food
57138         and use the standard-conforming names.
57139
57140         * lib/regex.h: Fix a multitude of POSIX name space violations.
57141         These changes have an effect only for programs that define
57142         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57143         do not change anything for programs compiled in the normal way.
57144         Also, there is no effect on the ABI.
57145
57146         (_REGEX_SOURCE): New macro.
57147         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57148         defined and _GNU_SOURCE is not; this fixes a name space violation.
57149
57150         Rename the following macros to obey POSIX requirements.
57151         The old names are still visible as macros if _REGEX_SOURCE is defined.
57152         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57153         RE_BACKSLASH_ESCAPE_IN_LISTS.
57154         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57155         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57156         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57157         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57158         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57159         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57160         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57161         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57162         (REG_INTERVALS): renamed from RE_INTERVALS.
57163         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57164         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57165         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57166         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57167         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57168         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57169         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57170         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57171         RE_UNMATCHED_RIGHT_PAREN_ORD.
57172         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57173         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57174         (REG_DEBUG): renamed from RE_DEBUG.
57175         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57176         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57177         unusual, since we can't clash with the POSIX REG_ICASE.
57178         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57179         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57180         (REG_NO_SUB): renamed from RE_NO_SUB.
57181         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57182         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57183         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57184         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57185         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57186         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57187         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57188         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57189         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57190         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57191         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57192         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57193         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57194         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57195         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57196         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57197         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57198         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57199         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57200         (REG_FIXED): Renamed from REGS_FIXED.
57201         (REG_NREGS): Renamed from RE_NREGS.
57202
57203         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57204         of other REG_* macros, since POSIX says the user is allowed to
57205         #undef these macros selectively.
57206
57207         (reg_errcode_t): Update comment stating what other tables need
57208         to be consistent.
57209
57210         Rename the following enum values to obey POSIX requirements.
57211         The old names are still visible as macros.
57212         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57213         is not defined, since GNU is supposed to be a superset of POSIX as
57214         much as possible, and since we want reg_errcode_t to be a signed
57215         type for implementation consistency.
57216         (_REG_NOERROR): Renamed from REG_NOERROR.
57217         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57218         (_REG_BADPAT): Renamed from REG_BADPAT.
57219         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57220         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57221         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57222         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57223         (_REG_EBRACK): Renamed from REG_EBRACK.
57224         (_REG_EPAREN): Renamed from REG_EPAREN.
57225         (_REG_EBRACE): Renamed from REG_EBRACE.
57226         (_REG_BADBR): Renamed from REG_BADBR.
57227         (_REG_ERANGE): Renamed from REG_ERANGE.
57228         (_REG_ESPACE): Renamed from REG_ESPACE.
57229         (_REG_BADRPT): Renamed from REG_BADRPT.
57230         (_REG_EEND): Renamed from REG_EEND.
57231         (_REG_ESIZE): Renamed from REG_ESIZE.
57232         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57233         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57234         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57235         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57236         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57237
57238         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57239         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57240         changed.  But support the old name if the new one is not defined
57241         and if _REGEX_SOURCE.
57242
57243         Change the following member names in struct re_pattern_buffer.
57244         The old names are still supported if !_REGEX_SOURCE.
57245         The new names are always supported, regardless of _REGEX_SOURCE.
57246         (re_buffer): Renamed from buffer.
57247         (re_allocated): Renamed from allocated.
57248         (re_used): Renamed from used.
57249         (re_syntax): Renamed from syntax.
57250         (re_fastmap): Renamed from fastmap.
57251         (re_translate): Renamed from translate.
57252         (re_can_be_null): Renamed from can_be_null.
57253         (re_regs_allocated): Renamed from regs_allocated.
57254         (re_fastmap_accurate): Renamed from fastmap_accurate.
57255         (re_no_sub): Renamed from no_sub.
57256         (re_not_bol): Renamed from not_bol.
57257         (re_not_eol): Renamed from not_eol.
57258         (re_newline_anchor): Renamed from newline_anchor.
57259
57260         Change the following member names in struct re_registers.
57261         The old names are still supported if !_REGEX_SOURCE.
57262         The new names are always supported, regardless of _REGEX_SOURCE.
57263         (rm_num_regs): Renamed from num_regs.
57264         (rm_start): Renamed from start.
57265         (rm_end): Renamed from end.
57266
57267         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57268         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57269         Prepend __ to parameter names.
57270
57271         Undo yesterday's changes.
57272
57273 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57274
57275         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57276         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57277         lib/regex.c.
57278
57279 2005-08-24  Jim Meyering  <jim@meyering.net>
57280
57281         Sync from coreutils.
57282         * m4/fcntl-safer.m4: New file.
57283
57284         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57285         and object files for this module.
57286
57287 2005-08-24  Jim Meyering  <jim@meyering.net>
57288
57289         Sync from coreutils.
57290         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57291
57292 2005-08-24  Jim Meyering  <jim@meyering.net>
57293
57294         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57295         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57296
57297 2005-08-24  Jim Meyering  <jim@meyering.net>
57298
57299         * modules/fcntl-safer: New module.
57300         * modules/fts (Depends-on): Add fcntl-safer.
57301         * MODULES.html.sh (File descriptor based Input/Output):
57302         Add fcntl-safer.
57303
57304 2005-08-24  Bruno Haible  <bruno@clisp.org>
57305
57306         Support for unit test modules.
57307         * modules/README: Mention tests modules.
57308         * modules/TEMPLATE-TESTS: New file.
57309         * gnulib-tool: New options --extract-tests-module, --with-tests and
57310         --tests-base (unused for the moment).
57311         (testsbase, inctests): New variables.
57312         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57313         (func_verify_module): Exclude TEMPLATE-TESTS.
57314         (func_verify_nontests_module, func_verify_tests_module): New functions.
57315         (func_get_dependencies): Add implicit dependency for tests modules.
57316         (func_get_tests_module): New function.
57317         (func_modules_transitive_closure): When --with-tests was specified,
57318         include the unit tests as well, unless explicitly avoided.
57319         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57320         (func_emit_tests_Makefile_am): New function.
57321         (func_create_testdir): When --with-tests was specified, emit a
57322         tests/ directory.
57323         * MODULES.html.sh (Future developments): Update.
57324
57325 2005-08-24  Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/tls-tests: New file.
57328         * tests/test-tls.c: New file, from GNU gettext.
57329
57330 2005-08-24  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/lock-tests: New file.
57333         * tests/test-lock.c: New file, from GNU gettext.
57334
57335 2005-08-24  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/lock.h: Add multiple inclusion guard.
57338         * lib/tls.h: Add multiple inclusion guard.
57339
57340 2005-08-24  Bruno Haible  <bruno@clisp.org>
57341
57342         * gnulib-tool: Add support for the --aux-dir option to
57343         --create-testdir, --create-megatestdir, --test, --megatest.
57344         (func_create_testdir, func_create_megatestdir): Optionally emit a
57345         AC_CONFIG_AUX_DIR directive.
57346         (create-testdir, create-megatestdir, test, megatest): Provide a
57347         default value for $auxdir.
57348
57349 2005-08-24  Bruno Haible  <bruno@clisp.org>
57350
57351         * gnulib-tool (import): Use compound statement instead of subshell
57352         where possible.
57353
57354 2005-08-24  Bruno Haible  <bruno@clisp.org>
57355
57356         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57357
57358 2005-08-24  Bruno Haible  <bruno@clisp.org>
57359
57360         * gnulib-tool (func_version): Update.
57361
57362 2005-08-24  Bruno Haible  <bruno@clisp.org>
57363
57364         * gnulib-tool (func_import, func_create_testdir,
57365         func_create_megatestdir): Quote all autoconf macro arguments.
57366
57367 2005-08-24  Bruno Haible  <bruno@clisp.org>
57368
57369         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57370         option --force, because --force causes the aclocal.m4 of each
57371         subdirectory to be newer than the corresponding config.h.in.
57372
57373 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57376         All contents moved to gl_REGEX.
57377         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57378         assume that it does.
57379
57380 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57381
57382         * lib/regex.h (REG_NOSYS)
57383         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57384         Define, since POSIX requires it as of 2001.
57385         (_REG_ENOSYS)
57386         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57387         New private symbol, used to keep the enum signed in all cases.
57388         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57389         Youngman in
57390         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57391
57392         * lib/regex_internal.c (re_string_skip_chars, register_state):
57393         (calc_state_hash):
57394         Remove forward decls; no longer needed now that we use prototypes.
57395         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57396         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57397         (clean_state_log_if_needed): Likewise.
57398
57399 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57400
57401         * config/srclist.txt: Add glibc bugs 1231-1233.
57402
57403 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57404
57405         Fix problems reported by Sam Steingold in
57406         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57407         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57408         assumed that reg_errcode_t is a signed type, which is not
57409         necessarily true if _XOPEN_SOURCE is not defined.
57410         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57411         since some compilers warn about it otherwise.
57412
57413 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57416         (init_word_char, create_initial_state, duplicate_node_closure):
57417         (fetch_token, peek_token_bracket, build_range_exp):
57418         (build_collating_symbol): Remove forward decls; no longer needed
57419         now that we use prototypes.
57420
57421         * lib/regcomp.c:
57422         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57423         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57424         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57425         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57426         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57427         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57428         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57429         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57430         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57431         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57432         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57433         (build_charclass, build_charclass_op, fetch_number, create_tree):
57434         (create_token_tree, mark_opt_subexp, duplicate_tree):
57435         Use prototypes rather than old-style definitions.
57436
57437         * lib/regex_internal.c:
57438         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57439         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57440         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57441         (re_string_reconstruct, re_string_peek_byte_case):
57442         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57443         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57444         (re_node_set_init_copy, re_node_set_add_intersect):
57445         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57446         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57447         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57448         (re_acquire_state, re_acquire_state_context, register_state):
57449         (create_ci_newstate, create_cd_newstate, free_state):
57450         Likewise.
57451         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57452         re_search_2):
57453         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57454         (re_search_internal, prune_impossible_nodes):
57455         (acquire_init_state_context, check_matching, static):
57456         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57457         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57458         (update_regs, sift_states_backward, build_sifted_states):
57459         (clean_state_log_if_needed, merge_state_array):
57460         (update_cur_sifted_state, add_epsilon_src_nodes):
57461         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57462         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57463         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57464         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57465         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57466         (check_arrival, check_arrival_add_next_nodes):
57467         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57468         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57469         (check_node_accept_bytes, check_node_accept, extend_buffers):
57470         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57471         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57472         (sift_ctx_init):
57473         Likewise.
57474
57475         * lib/regex_internal.h:
57476         (re_string_allocate, re_string_construct, re_string_reconstruct):
57477         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57478         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57479         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57480         (re_string_context_at, re_string_peek_byte_case):
57481         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57482         is defined, since we now use prototypes always.
57483
57484         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57485         C89 or better.  All uses removed.
57486
57487 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57488
57489         * config/srclist.txt: Add glibc bugs 1220-1227.
57490
57491 2005-08-20  Jim Meyering  <jim@meyering.net>
57492
57493         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57494         of unused local, dfa.
57495
57496 2005-08-20  Bruno Haible  <bruno@clisp.org>
57497
57498         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57499
57500 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57501
57502         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57503         (re_node_set_insert_last, re_dfa_add_node):
57504         Rename local variables to avoid GCC shadowing warnings.
57505
57506 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57509         [defined lint]: Suppress bogus uninitialized-variable warnings.
57510
57511         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57512         and let the caller return REG_ESPACE if out of space.  This
57513         removes an uninitialied-variable warning with GCC 4.0.1, and also
57514         avoids taking the address of a local variable.  All callers
57515         changed.
57516
57517 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57520         $LIBCSRC/posix/regexec.c.
57521         Add glibc bug 1217 for regcomp.c.
57522
57523 2005-08-19  Jim Meyering  <jim@meyering.net>
57524
57525         * lib/regexec.c (proceed_next_node): Redo local variables to
57526         avoid GCC shadowing warnings.
57527
57528 2005-08-18  Bruno Haible  <bruno@clisp.org>
57529
57530         * lib/strstr.c (strstr): Fix return value in multibyte case.
57531         * lib/strcasestr.c (strcasestr): Likewise.
57532
57533 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57534
57535         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57536
57537 2005-08-17  Jim Meyering  <jim@meyering.net>
57538
57539         Make the %s format (seconds since the epoch) work for a negative
57540         number and when used with a zero-padded field width, e.g. %015s.
57541
57542         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57543         label so that it precedes the code to set `digits'.  Otherwise,
57544         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57545         print `00-22'.  Now, it prints `-0022', as it should.
57546
57547 2005-08-17  Bruno Haible  <bruno@clisp.org>
57548
57549         * modules/strstr (Files): Add m4/mbrtowc.m4.
57550         (Depends-on): Add mbuiter.
57551
57552 2005-08-17  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/strcasestr: New file.
57555         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57556         strcasestr.
57557
57558 2005-08-17  Bruno Haible  <bruno@clisp.org>
57559
57560         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57561
57562 2005-08-17  Bruno Haible  <bruno@clisp.org>
57563
57564         * modules/mbuiter: New file.
57565         * MODULES.html.sh (Extended multibyte and wide character utilities):
57566         Add mbuiter.
57567
57568 2005-08-17  Bruno Haible  <bruno@clisp.org>
57569
57570         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57571         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57572
57573 2005-08-17  Bruno Haible  <bruno@clisp.org>
57574
57575         * m4/strcasestr.m4: New file.
57576
57577 2005-08-17  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57580         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57581
57582 2005-08-17  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/strcasestr.h: New file.
57585         * lib/strcasestr.c: New file.
57586
57587 2005-08-17  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/strcasecmp.c: Use mbuiter.h.
57590
57591 2005-08-17  Bruno Haible  <bruno@clisp.org>
57592
57593         * lib/mbuiter.h: New file.
57594
57595 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57596
57597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57598         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57599         and gl_GETOPT are both invoked via different paths (as happens
57600         with GNU tar CVS because it uses both argp and getopt), the former
57601         wins.
57602
57603 2005-08-16  Bruno Haible  <bruno@clisp.org>
57604
57605         * modules/tls: New file.
57606         * MODULES.html.sh (Multithreading): Add tls.
57607
57608 2005-08-16  Bruno Haible  <bruno@clisp.org>
57609
57610         * modules/strnlen1: New file.
57611         * MODULES.html.sh (String handling): Add strnlen1.
57612
57613 2005-08-16  Bruno Haible  <bruno@clisp.org>
57614
57615         * modules/strcase (Files): Add m4/mbrtowc.m4.
57616         (Depends-on): Add strnlen1, mbchar.
57617
57618 2005-08-16  Bruno Haible  <bruno@clisp.org>
57619
57620         * modules/mbiter: New file.
57621         * MODULES.html.sh (Extended multibyte and wide character utilities):
57622         Add mbiter.
57623
57624 2005-08-16  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/mbfile: New file.
57627         * MODULES.html.sh (Extended multibyte and wide character utilities):
57628         Add mbfile.
57629
57630 2005-08-16  Bruno Haible  <bruno@clisp.org>
57631
57632         * modules/mbchar: New file.
57633         * MODULES.html.sh (Extended multibyte and wide character utilities):
57634         New section.
57635
57636 2005-08-16  Bruno Haible  <bruno@clisp.org>
57637
57638         * m4/tls.m4: New file, from GNU gettext.
57639
57640 2005-08-16  Bruno Haible  <bruno@clisp.org>
57641
57642         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57643         always.
57644         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57645
57646 2005-08-16  Bruno Haible  <bruno@clisp.org>
57647
57648         * m4/mbiter.m4: New file.
57649
57650 2005-08-16  Bruno Haible  <bruno@clisp.org>
57651
57652         * m4/mbfile.m4: New file.
57653
57654 2005-08-16  Bruno Haible  <bruno@clisp.org>
57655
57656         * m4/mbchar.m4: New file.
57657
57658 2005-08-16  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/tls.h: New file, from GNU gettext.
57661         * lib/tls.c: New file, from GNU gettext.
57662
57663 2005-08-16  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/strnlen1.h: New file.
57666         * lib/strnlen1.c: New file.
57667
57668 2005-08-16  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57671         (mbi_init): Update.
57672         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57673         NUL byte, not after it.
57674
57675 2005-08-16  Bruno Haible  <bruno@clisp.org>
57676
57677         * lib/strcase.h (strcasecmp): Add note in comments.
57678         * lib/strncasecmp.c: Use code from strcasecmp.c.
57679         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57680         (strcasecmp): Work correctly in multibyte locales.
57681
57682 2005-08-16  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/mbiter.h: New file.
57685
57686 2005-08-16  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/mbfile.h: New file.
57689
57690 2005-08-16  Bruno Haible  <bruno@clisp.org>
57691
57692         * lib/mbchar.h: New file.
57693         * lib/mbchar.c: New file.
57694
57695 2005-08-16  Bruno Haible  <bruno@clisp.org>
57696
57697         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57698         the valid ones. Makes the comparison operations transitive:
57699         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57700         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57701
57702 2005-08-15  Simon Josefsson  <jas@extundo.com>
57703
57704         * modules/ssize_t (License): Change to 'unlimited'.
57705
57706         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57707
57708 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57711         Add comments for each pending glibc patch.
57712
57713 2005-08-15  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57716         __cplusplus is defined.
57717
57718 2005-08-14  Jim Meyering  <jim@meyering.net>
57719
57720         Sync from coreutils.
57721
57722         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57723         Use the hash-table-based cycle-detection code not just when
57724         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57725         Reported by James Youngman in
57726         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57727         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57728         FTS_TIGHT_CYCLE_CHECK.
57729         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57730         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57731         once again.
57732         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57733         * lib/fts.c (fd_safer): Remove decl.
57734         Include fcntl--.h rather than unistd-safer.h
57735         (fts_safe_changedir): Don't call fd_safer; no longer needed
57736         now that we include fcntl--.h.
57737
57738 2005-08-12  Simon Josefsson  <jas@extundo.com>
57739
57740         * modules/getndelim2: Use ssize_t module.
57741         * modules/getnline: Likewise.
57742         * modules/safe-read: Likewise.
57743         * modules/xreadlink: Likewise.
57744
57745         * modules/ssize_t: New file.
57746
57747 2005-08-12  Simon Josefsson  <jas@extundo.com>
57748
57749         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57750
57751 2005-08-12  Simon Josefsson  <jas@extundo.com>
57752
57753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57754         ssize_t.
57755
57756 2005-08-12  Simon Josefsson  <jas@extundo.com>
57757
57758         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57759         readline, getdelim and check_version.
57760         (Support for systems lacking ISO C 99: Sizes of integer types):
57761         Add size_max.
57762
57763 2005-08-12  Bruno Haible  <bruno@clisp.org>
57764
57765         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57766
57767 2005-08-11  Simon Josefsson  <jas@extundo.com>
57768
57769         * modules/readline: New file.
57770
57771         * modules/strnlen (Files): Add strnlen.h.
57772
57773 2005-08-11  Simon Josefsson  <jas@extundo.com>
57774
57775         * m4/readline.m4: New file.
57776
57777 2005-08-11  Simon Josefsson  <jas@extundo.com>
57778
57779         * lib/readline.h, readline.c: New file.
57780
57781 2005-08-11  Simon Josefsson  <jas@extundo.com>
57782
57783         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57784         gl_AVOID.
57785
57786 2005-08-11  Bruno Haible  <bruno@clisp.org>
57787
57788         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57789
57790 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57791
57792         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57793
57794 2005-08-10  Simon Josefsson  <jas@extundo.com>
57795
57796         * tests/test-iconvme.c: New file.
57797
57798 2005-08-10  Simon Josefsson  <jas@extundo.com>
57799
57800         * m4/strnlen.m4: New file.
57801
57802         * m4/strndup.m4: Don't check for strnlen declaration, done in
57803         strnlen.m4.
57804
57805 2005-08-10  Simon Josefsson  <jas@extundo.com>
57806
57807         * lib/strndup.c: Use strnlen.h.
57808
57809         * lib/strnlen.h: New file.
57810
57811 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57812
57813         * README: Typos.
57814
57815 2005-08-02  Simon Josefsson  <jas@extundo.com>
57816
57817         * modules/readline: New file.
57818
57819 2005-08-02  Simon Josefsson  <jas@extundo.com>
57820
57821         * modules/getdelim: New file.
57822
57823         * modules/getline: Rewrite, don't use getndelim2.
57824
57825 2005-08-02  Simon Josefsson  <jas@extundo.com>
57826
57827         * m4/getline.m4: Separate out getdelim stuff into separate module.
57828
57829         * m4/getdelim.m4: New file.
57830
57831 2005-08-02  Simon Josefsson  <jas@extundo.com>
57832
57833         * lib/getline.h, getline.c: Rewrite.
57834
57835         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57836
57837 2005-07-31  Bruno Haible  <bruno@clisp.org>
57838
57839         * lib/lock.h (gl_lock_initializer): New macro.
57840         (gl_lock_define_initialized): Use it.
57841         (gl_rwlock_initializer): New macro.
57842         (gl_rwlock_define_initialized): Use it.
57843         (gl_recursive_lock_initializer): New macro.
57844         (gl_recursive_lock_define_initialized): Use it.
57845
57846 2005-07-30  Karl Berry  <karl@gnu.org>
57847
57848         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57849         Report from Ben Pfaff, regarding getopt.
57850
57851 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57852
57853         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57854         normal way.
57855         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57856         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57857         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57858         (gl_GETOPT): Use the new macros.  Most of the implementation
57859         is moved to the new macros.  This is for programs like Emacs
57860         that don't want all the functionality of gl_GETOPT.
57861
57862 2005-07-26  Bruno Haible  <bruno@clisp.org>
57863
57864         * m4/lock.m4: Update from GNU gettext.
57865
57866 2005-07-26  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/lock.h: Update from GNU gettext.
57869         * lib/lock.c: Update from GNU gettext.
57870
57871 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57874         obsolescent AC_TRY_RUN.  Include the default includes files, for
57875         'exit'.
57876
57877 2005-07-24  Bruno Haible  <bruno@clisp.org>
57878
57879         * modules/visibility: New file.
57880         * MODULES.html.sh (Misc): Add visibility.
57881
57882 2005-07-24  Bruno Haible  <bruno@clisp.org>
57883
57884         * m4/visibility.m4: New file.
57885
57886 2005-07-24  Bruno Haible  <bruno@clisp.org>
57887
57888         * doc/visibility.texi: New file.
57889
57890 2005-07-22  Bruno Haible  <bruno@clisp.org>
57891
57892         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57893         $(ALLOCA_H), redundant through BUILT_SOURCES.
57894         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57895         redundant through BUILT_SOURCES.
57896         * modules/byteswap (Makefile.am): Remove explicit dependency on
57897         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57898         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57899         $(FNMATCH_H), redundant through BUILT_SOURCES.
57900         * modules/getopt (Makefile.am): Remove explicit dependency on
57901         $(GETOPT_H), redundant through BUILT_SOURCES.
57902         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57903         redundant through BUILT_SOURCES.
57904         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57905         redundant through BUILT_SOURCES.
57906         * modules/stdbool (Makefile.am): Remove explicit dependency on
57907         $(STDBOOL_H), redundant through BUILT_SOURCES.
57908         * modules/stdint (Makefile.am): Remove explicit dependency on
57909         $(STDINT_H), redundant through BUILT_SOURCES.
57910         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57911         Remove explicit dependency on $(SYSEXITS_H).
57912         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57913
57914 2005-07-18  Simon Josefsson  <jas@extundo.com>
57915
57916         * lib/check-version.c (check_version): Accept identical versions too.
57917
57918 2005-07-18  Bruno Haible  <bruno@clisp.org>
57919
57920         * modules/lock: New file.
57921         * MODULES.html.sh (Multithreading): New section.
57922
57923 2005-07-18  Bruno Haible  <bruno@clisp.org>
57924
57925         * m4/lock.m4: New file, from GNU gettext.
57926
57927 2005-07-18  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/lock.h: New file, from GNU gettext.
57930         * lib/lock.c: New file, from GNU gettext.
57931
57932 2005-07-18  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/lock.h (gl_once_t): New type.
57935         (gl_once_define, gl_once): New macros.
57936         * lib/lock.c (fresh_once): New variable.
57937         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
57938         functions.
57939
57940 2005-07-16  Simon Josefsson  <jas@extundo.com>
57941
57942         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
57943         workaround, suggested by Bruno.
57944
57945 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57946
57947         * modules/xalloc (Depends-on): Add xalloc-die.
57948         * modules/xvasprintf (Depends-on): Add xalloc-die.
57949
57950 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57951
57952         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
57953         with a minor change.
57954
57955 2005-07-15  Bruno Haible  <bruno@clisp.org>
57956
57957         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
57958         When using lib/poll.c, define poll as rpl_poll.
57959
57960 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         * modules/argp (Depends-on): Remove unlocked-io.
57963
57964 2005-07-14  Derek Price  <derek@ximbiot.com>
57965
57966         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
57967         for glob symlink bug.
57968
57969 2005-07-14  Bruno Haible  <bruno@clisp.org>
57970
57971         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
57972         Instead, test for *_unlocked function declarations directly.
57973
57974 2005-07-11  Simon Josefsson  <jas@extundo.com>
57975
57976         * modules/size_max: New file.
57977
57978         * modules/xsize: Depend on size_max module for size_max.m4.
57979
57980 2005-07-11  Simon Josefsson  <jas@extundo.com>
57981
57982         * lib/size_max.h: New file.
57983
57984 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
57985
57986         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
57987         copyright symbol and the year.
57988         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
57989         (version_etc_va): Use parameterized copyright notice.
57990         Reword to conform to the current GNU coding standards.
57991
57992 2005-07-11  Karl Berry  <karl@gnu.org>
57993
57994         * doc/gnulib.texi (Quoting): new node.
57995         (Initial import): more info, from Patrice.
57996
57997 2005-07-11  Bruno Haible  <bruno@clisp.org>
57998
57999         * gnulib-tool (func_usage): Document option --avoid.
58000         (Command line options): Handle --avoid.
58001         (func_acceptable): New function.
58002         (func_modules_transitive_closure): Use it.
58003
58004 2005-07-11  Bruno Haible  <bruno@clisp.org>
58005
58006         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58007         Reported by Jim Meyering.
58008
58009 2005-07-10  Bruno Haible  <bruno@clisp.org>
58010
58011         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58012         Needed when size_t is smaller than 'unsigned int'.
58013         Reported by Paul Eggert.
58014
58015 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58016
58017         * modules/argp (Depends-on): Add unlocked-io
58018
58019 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58020
58021         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58022         block of defines.
58023
58024 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58025
58026         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58027         fix now.
58028
58029 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58030         and Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58033         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58034
58035 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58036
58037         * modules/regex (Files): Add lib/regex_internal.c,
58038         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58039         (Depends-on): Add extensions.
58040         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58041
58042 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58045         pathconf.
58046         * m4/same.m4 (gl_SAME): Likewise.
58047         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58048
58049         * m4/regex.m4: Adjust to new libc regex implementation.
58050         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58051         all the .c and .h parts of (the new) regex.
58052         Quote the m4 stuff better.
58053         Check for RE_ICASE bug of old gnulib.
58054         Check for REG_STARTEND of recent libc.
58055         Rename local variables from jm_* to gl_*.
58056         Quote operand of "test -f".
58057         Say "recent enough" version of libc, not "version 2".
58058         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58059         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58060         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58061         Remove check for btowc, isascii.
58062         Require AM_LANGINFO_CODESET.
58063
58064 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * lib/regex.c, regex.h: Sync from libc.
58067         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58068         * lib/regexec.c:
58069         New files, synced from libc, except that regex_internal.h
58070         currently has a small porting fix.
58071
58072 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58073
58074         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58075         regex_internal.c, regexec.c.
58076         Add regex_internal.h too, but as a comment, since the libc version
58077         is currently broken in gnulib mode.
58078
58079 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         Support programs like Emacs that use gnulib but not gettext.
58082         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58083         * modules/gettext-h: New file.
58084         * modules/gettext (Files): Remove lib/gettext.h.
58085         (Depends-on): Add gettext-h.
58086         (Makefile.am): Remove lib_SOURCES.
58087         * modules/argmatch, modules/c-stack, modules/closeout:
58088         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58089         * modules/execute, modules/file-type, modules/getaddrinfo:
58090         * modules/getopt, modules/human, modules/javacomp:
58091         * modules/javaexec, modules/mkdir-p, modules/obstack:
58092         * modules/openat, modules/pagealign_alloc, modules/pipe:
58093         * modules/quotearg, modules/regex, modules/rpmatch:
58094         * modules/unicodeio, modules/userspec, modules/version-etc:
58095         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58096         * modules/xsetenv:
58097         Depend on gettext-h, not gettext.
58098
58099 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * gnulib-tool (func_import): Add support for 'public domain' license.
58102         * modules/alloca, modules/atexit, modules/memmove:
58103         Now public domain, not GPL.
58104         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58105         * modules/realloc, modules/strerror, modules/strtod:
58106         Now LGPL, not GPL.
58107
58108 2005-07-05  Bruno Haible  <bruno@clisp.org>
58109
58110         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58111         autoconf CVS. Needed for mingw.
58112
58113 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58114
58115         Remove the dependency of the strftime module on the tzset module.
58116         * modules/strftime (Depends-on): Remove dependency on tzset.
58117
58118 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         Remove the dependency of the strftime module on the tzset module.
58121         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58122         gl_FUNC_TZSET_CLOBBER.
58123
58124 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         Remove the dependency of the strftime module on the tzset module.
58127         * lib/strftime.c (my_strftime)
58128         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58129         Copy the input structure, to work around some of the bug with
58130         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58131         Solaris releases, you should also use the tzset module, but we won't
58132         require it as a dependency any more since we don't want LGPLed code
58133         to depend on GPLed code.
58134
58135 2005-07-02  Jim Meyering  <jim@meyering.net>
58136
58137         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58138         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58139         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58140         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58141
58142 2005-07-02  Jim Meyering  <jim@meyering.net>
58143
58144         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58145
58146 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58147
58148         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58149         declares only 'struct timespec;' (!).
58150
58151 2005-07-01  Jim Meyering  <jim@meyering.net>
58152
58153         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58154         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58155         * lib/save-cwd.c, tempname.c:
58156         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58157         and don't include <sys/file.h>).
58158
58159 2005-06-29  Jim Meyering  <jim@meyering.net>
58160
58161         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58162         type name.  Use the variable name instead.
58163         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58164         Likewise.
58165
58166 2005-06-28  Simon Josefsson  <jas@extundo.com>
58167
58168         * modules/check-version (Files): Add check-version.m4.
58169
58170 2005-06-28  Simon Josefsson  <jas@extundo.com>
58171
58172         * m4/check-version.m4: New file, suggested by Jim Meyering
58173         <jim@meyering.net>.
58174
58175 2005-06-28  Simon Josefsson  <jas@extundo.com>
58176
58177         * lib/check-version.h, lib/check-version.c: New files.
58178
58179 2005-06-28  Simon Josefsson  <jas@extundo.com>
58180
58181         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58182         collision with global variable.  Better indentation.  Don't
58183         increment buffer pointer beyond buffer end.  Based on comments
58184         from Paul Eggert <eggert@cs.ucla.edu>.
58185
58186         * lib/base64.h: Indent.
58187
58188 2005-06-28  Simon Josefsson  <jas@extundo.com>
58189
58190         * doc/gnulib.texi (Library version handling): New section.
58191
58192 2005-06-28  Jim Meyering  <jim@meyering.net>
58193
58194         * check-module (find_included_lib_files): Hard-code another
58195         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58196         but modules/fts-lgpl (correctly) does not list those files.
58197
58198         * modules/canonicalize (Files): Add lib/pathmax.h.
58199
58200 2005-06-25  Simon Josefsson  <jas@extundo.com>
58201
58202         * modules/check-version: New file.
58203
58204 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58207         initializer of struct addrinfo, as an indication that we don't
58208         care how many members the structure has.
58209
58210 2005-06-24  Derek Price  <derek@ximbiot.com>
58211         and Bruno Haible  <bruno@clisp.org>
58212
58213         Remove stat module & update lstat.
58214         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58215         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58216         * m4/stat.m4: Remove this file.
58217
58218 2005-06-24  Derek Price  <derek@ximbiot.com>
58219         and Bruno Haible  <bruno@clisp.org>
58220
58221         Remove stat module & update lstat.
58222         * lib/stat.c: Remove this file...
58223         (slash_aware_lstat): ...moving this content and its support...
58224         * lib/lstat.c (rpl_lstat): ...into here.
58225         * lib/lstat.h: New file.
58226
58227 2005-06-24  Derek Price  <derek@ximbiot.com>
58228         and Bruno Haible  <bruno@clisp.org>
58229
58230         Remove stat module & update lstat.
58231         * config/srclist.txt (libc sources): Remove stat.
58232
58233 2005-06-24  Derek Price  <derek@ximbiot.com>
58234         and Bruno Haible  <bruno@clisp.org>
58235
58236         Remove stat module & update lstat.
58237         * MODULES.html.sh (stat): Remove.
58238         * MODULES.html: Regenerated.
58239         * modules/lstat (Description): Correct function name.
58240         (Files): Add "lstat.h".
58241         (Depends-on): Remove stat, add xalloc, stat-macros.
58242         * modules/stat: Remove this file.
58243         (Include): Add "lstat.h", remove <sys/stat.h>.
58244
58245 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58246
58247         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58248         (ranged_convert): Don't save conversion in a temporary struct.
58249         This causes a warning with GCC 4.0.0, and anyway in the typical
58250         case it's not worth the extra 100 bytes or so of code.
58251         (ranged_convert, __mktime_internal): When calling a function via a
58252         pointer P, use P () rather than (*P) (), as we now assume C89 or
58253         better.
58254
58255 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58258         "who -r" failed to give output.  Problem reported by Tim Waugh.
58259
58260         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58261         (xcalloc): Use it to avoid needless tests.
58262         Problem reported by Jim Meyering.
58263
58264 2005-06-20  Derek Price  <derek@ximbiot.com>
58265
58266         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58267         unnecessary for Autoconfs > 2.59c.
58268
58269 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58270
58271         * lib/argp.h (__option_is_short): Check upper limit of
58272         __key. Isprint() requires its argument to have the value
58273         of an unsigned char or EOF.
58274
58275 2005-06-16  Jim Meyering  <jim@meyering.net>
58276
58277         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58278         when either N or S is zero.
58279
58280 2005-06-16  Derek Price  <derek@ximbiot.com>
58281
58282         * m4/bison.m4: Declare YACC & YFLAGS precious.
58283
58284 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58285
58286         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58287         multibyte string or pattern, fall back on unibyte matching.
58288         Problem reported by James Youngman.
58289
58290 2005-06-08  Bruno Haible  <bruno@clisp.org>
58291
58292         * modules/csharpcomp: New file.
58293         * MODULES.html.sh (C#): Add csharpcomp.
58294
58295 2005-06-08  Bruno Haible  <bruno@clisp.org>
58296
58297         * m4/csharpcomp.m4: New file, from GNU gettext.
58298
58299 2005-06-08  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/csharpcomp.h: New file, from GNU gettext.
58302         * lib/csharpcomp.c: New file, from GNU gettext.
58303         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58304
58305 2005-06-08  Bruno Haible  <bruno@clisp.org>
58306
58307         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58308         warning on mingw.
58309
58310 2005-06-07  Derek Price  <derek@ximbiot.com>
58311
58312         Sync from CVS.
58313         * lib/glob_.h: Indent nested #ifdef.
58314
58315 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58316
58317         Sync from coreutils.
58318         Use "file name" when talking about file names, instead of "filename"
58319         or "path", as per the GNU coding standards.
58320         * lib/mkdir-p.c: Renamed from makepath.c.
58321         (make_dir_parents): Renamed from make_path.  All callers changed.
58322         * lib/mkdir-p.h: Likewise.  All includers changed.
58323         * lib/filenamecat.c: Renamed from path-concat.c.
58324         (file_name_concat): Renamed from path_concat.  All callers changed.
58325         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58326         * lib/filenamecat.h: Likewise.  All includers changed.
58327         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58328         in comments or local variable names.
58329         * lib/basename.c: Likewise.
58330         * lib/canonicalize.c, canonicalize.h: Likewise.
58331         * lib/dirname.c, dirname.h: Likewise.
58332         * lib/euidaccess.c: Likewise.
58333         * lib/exclude.c: Likewise
58334         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58335         * lib/fsusage.c, fsuage.h: Likewise.
58336         * lib/fts.c, fts_.h: Likewise.
58337         * lib/getcwd.c: Likewise.
58338         * lib/getloadavg.c: Likewise.
58339         * lib/mkstemp.c: Likewise.
58340         * lib/mountlist.c, mountlist.h: Likewise.
58341         * lib/openat.c, openat.h: Likewise.
58342         * lib/readlink-stub.c: Likewise.
58343         * lib/readutmp.c, readutmp.h: Likewise.
58344         * lib/rename.c: Likewise.
58345         * lib/rmdir.c: Likewise.
58346         * lib/same.c: Likewise.
58347         * lib/savedir.c: Likewise.
58348         * lib/stripslash.c: Likewise.
58349         * lib/tempname.c: Likewise.
58350         * lib/xreadlink.c: Likewise.
58351         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58352         All uses changed.
58353         * lib/exclude.h: Likewise.
58354
58355         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58356         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58357         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58358         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58359         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58360         files have been getting away with it for years (MORE/BSD 4.3
58361         is extinct now).
58362         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58363         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58364
58365         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58366         Define to 256, not 255, as per modern POSIX.
58367
58368 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58369
58370         Sync from coreutils.
58371         Use "file name" when talking about file names, instead of "filename"
58372         or "path", as per the GNU coding standards.
58373         * MODULES.html.sh: mkdir-p renamed from makepath.
58374         filenamecat renamed from path-concat.
58375         * modules/filenamecat: Renamed from modules/path-concat.
58376         (Files): filenamecat.h and filenamecat.c renamed from
58377         path-concat.h and path-concat.c.
58378         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58379         (Include): filenamecat.h, not path-concat.h.
58380         * modules/mkdir-p: Renamed from modules/makepath.
58381         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58382         makepath.c.
58383         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58384         (Include): mkdir-p.h, not makepath.h.
58385
58386 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         Sync from coreutils.
58389         * m4/mkdir-p.m4: Renamed from makepath.m4.
58390         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58391         Rename files from makepath.c to mkdir-p.c, and from
58392         makepath.h to mkdir-p.h.
58393         * m4/filenamecat.m4: Renamed from path-concat.m4.
58394         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58395         Rename files from path-concat.c to filenamecat.c,
58396         and from path-concat.h to filenamecat.h.
58397         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58398         "file name" in local variables or comments.
58399         * m4/rename.m4: Likewise.
58400
58401 2005-06-01  Bruno Haible  <bruno@clisp.org>
58402
58403         * modules/csharpexec: New file.
58404         * MODULES.html.sh (C#): New section.
58405
58406 2005-06-01  Bruno Haible  <bruno@clisp.org>
58407
58408         * m4/csharp.m4: New file, from GNU gettext.
58409         * m4/csharpexec.m4: New file, from GNU gettext.
58410
58411 2005-06-01  Bruno Haible  <bruno@clisp.org>
58412
58413         * lib/csharpexec.h: New file, from GNU gettext.
58414         * lib/csharpexec.c: New file, from GNU gettext.
58415         * lib/csharpexec.sh.in: New file, from GNU gettext.
58416
58417 2005-05-31  Derek Price  <derek@ximbiot.com>
58418             Paul Eggert  <eggert@cs.ucla.edu>
58419
58420         Sync from cvs.
58421         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58422
58423 2005-05-31  Derek Price  <derek@ximbiot.com>
58424             Paul Eggert  <eggert@cs.ucla.edu>
58425
58426         Sync from cvs.
58427         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58428
58429 2005-05-29  Derek Price  <derek@ximbiot.com>
58430
58431         * config/srclist.txt (glob_.h, glob.c): Add these files.
58432
58433 2005-05-29  Derek Price  <derek@ximbiot.com>
58434
58435         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58436         * modules/glob: New file.
58437         * modules/getlogin_r: Add link to POSIX spec in description.
58438
58439 2005-05-29  Derek Price  <derek@ximbiot.com>
58440             Paul Eggert  <eggert@cs.ucla.edu>
58441
58442         * m4/glob.m4: New file.
58443
58444 2005-05-29  Derek Price  <derek@ximbiot.com>
58445             Paul Eggert  <eggert@cs.ucla.edu>
58446
58447         * lib/glob_.h, lib/glob.c: New files.
58448
58449 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58452         * modules/fts-lgpl (Depends-on): Remove gettext.
58453
58454 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58457         and don't require gt_INTTYPES_PRI.
58458
58459 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58462
58463         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58464         the configuration hassle isn't worth it.
58465         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58466         (LONGEST_MODIFIER, PRIuMAX): Remove.
58467
58468 2005-05-27  Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58471
58472 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58473
58474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58475         _POSIX_PTHREAD_SEMANTICS for Solaris.
58476
58477 2005-05-25  Derek Price  <derek@ximbiot.com>
58478
58479         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58480
58481 2005-05-25  Derek Price  <derek@ximbiot.com>
58482             Paul Eggert  <eggert@cs.ucla.edu>
58483
58484         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58485         * lib/getlogin_r.c, getlogin_r.h: New files.
58486
58487 2005-05-25  Bruno Haible  <bruno@clisp.org>
58488             Derek Price  <derek@ximbiot.com>
58489
58490         * lib/getlogin_r.h: Simplify API documentation.
58491
58492 2005-05-23  Derek Price  <derek@ximbiot.com>
58493
58494         * modules/minmax (Files): Add m4/minmax.m4.
58495         (configure.ac): Add gl_MINMAX.
58496
58497 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58500         so that unistd-safer.h (GPL'ed code) need not be included.
58501
58502 2005-05-22  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/minmax.m4: New file.
58505         Based on a patch by Derek Price <derek@ximbiot.com>.
58506
58507 2005-05-22  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58510         (INT64_MIN): Fix definition.
58511         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58512
58513         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58514         NEED_SIGNED_INT_TYPES.
58515
58516         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58517         HAVE_SYSTEM_INTTYPES.
58518
58519 2005-05-22  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58522         Also include <sys/param.h> if it defines MIN, MAX.
58523         Based on a patch by Derek Price <derek@ximbiot.com>.
58524
58525 2005-05-21  Jim Meyering  <jim@meyering.net>
58526
58527         * modules/fts (Files): Add m4/inttypes-pri.m4.
58528         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58529
58530 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         New fts module.
58533         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58534         (setup_dir, free_dir): New functions.
58535         (enter_dir, leave_dir): Define trivial
58536         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58537         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58538         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58539         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58540         Move to fts-cycle.c.
58541         (fts_open): Use setup_dir.
58542         (fts_close): Use free_dir.
58543         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58544         This adds a label and some gotos, but the alternatives were messier.
58545         Check for memory allocation failure when entering a dir.
58546         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58547         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58548         (FTS): New member fts_cycle, that is a union that contains the
58549         old active_dir_ht and cycle_state.  All uses changed to mention
58550         fts_cycle.ht and fts_cycle.state.
58551         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58552         fts.c, with the following changes:
58553         (setup_dir, free_dir): New functions.
58554         (enter_dir): Now returns bool.  Return true if successful, false
58555         if memory exhausted.  All callers changed.
58556         Do not bother partly cleaning up on
58557         memory allocation failure; that is free_dir's job.
58558         However, free ad if hash_insert fails, to avoid memory leak.
58559         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58560         fts->fts_options to see which union member to use.
58561
58562 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58565         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58566
58567 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58570
58571 2005-05-20  Jim Meyering  <jim@meyering.net>
58572
58573         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58574         Now a macro, to pacify GCC.
58575
58576 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58577
58578         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58579         of -1.
58580
58581 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58582
58583         * lib/chown.c (rpl_chown): Return -1 on failure.
58584
58585 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58588         Don't check for stddef.h.
58589         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58590         don't use its results.
58591         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58592         since we include them unconditionally.  Don't require
58593         AM_STDBOOL_H, since stdbool is a prerequisite.
58594         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58595         since we assume C89 or better.
58596         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58597         as we don't use their results.
58598         Don't check for fchdir, memmove, memset, strrchr, as we use
58599         them unconditionally.
58600         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58601         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58602
58603 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58606         Include <stddef.h> unconditionally, since we assume C89 now.
58607         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58608         * lib/fts.c: Include fts_.h first, to check interface.
58609         Do not include intprops.h; no longer needed.
58610         Include cycle-check.h and hash.h, since fts_.h no longer does.
58611         Remove unnecessary casts of closedir to void.
58612         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58613         decide whether to decrement nlinks.
58614         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58615         (FTS): Use struct hash_table * instead of Hash_table, so that
58616         we no longer need to include hash.h here.
58617
58618 2005-05-18  Jim Meyering  <jim@meyering.net>
58619
58620         * modules/dirfd (License): Change to LGPL.  Most of the code
58621         is already in the public domain.
58622
58623 2005-05-18  Jim Meyering  <jim@meyering.net>
58624
58625         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58626         Reported by Yoann Vandoorselaere.
58627
58628 2005-05-17  Jim Meyering  <jim@meyering.net>
58629
58630         * m4/fts.m4: New file, from coreutils.
58631
58632 2005-05-17  Jim Meyering  <jim@meyering.net>
58633
58634         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58635
58636 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58637
58638         Sync from coreutils.
58639         * m4/unlinkdir.m4: New file.
58640
58641 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58642
58643         Sync from coreutils.
58644         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58645         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58646         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58647         White space changes only.
58648         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58649         special.
58650         * lib/yesno.c: Include getline.h, not ctype.h.
58651         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58652         Use getline to remove arbitrary restriction on response length.
58653
58654 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * config/srclist-update: Spell out "Street" in FSF postal
58657         mail address; this is the style the FSF seems to prefer.
58658
58659         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58660         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58661         this updates FSF postal mail address.
58662
58663         Sync from coreutils.
58664         * modules/unlinkdir: New file.
58665         * modules/yesno (Depends-on): Add getline.
58666         * MODULES.html.sh (File system functions): Add unlinkdir.
58667
58668 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58671         lib/strsep.h:
58672         Change the initial comment to refer to GPL, not LGPL.
58673         gnulib-tool will change it to LGPL as needed.
58674
58675         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58676         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58677         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58678         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58679         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58680         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58681         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58682         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58683         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58684         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58685         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58686         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58687         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58688         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58689         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58690         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58691         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58692         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58693         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58694         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58695         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58696         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58697         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58698         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58699         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58700         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58701         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58702         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58703         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58704         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58705         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58706         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58707         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58708         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58709         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58710         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58711         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58712         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58713         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58714         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58715         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58716         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58717         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58718         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58719         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58720         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58721         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58722         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58723         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58724         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58725         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58726         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58727         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58728         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58729         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58730         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58731         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58732         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58733         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58734         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58735         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58736         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58737         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58738         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58739         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58740         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58741         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58742         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58743         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58744         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58745         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58746         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58747         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58748         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58749         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58750         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58751         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58752         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58753         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58754         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58755         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58756         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58757         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58758         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58759         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58760         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58761         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58762         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58763         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58764         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58765         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58766         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58767         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58768         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58769         lib/yesno.c, lib/yesno.h:
58770         Update FSF postal mail address.
58771
58772 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58775         tests/test-memmem.c, tests/test-stpncpy.c:
58776         Update FSF postal mail address.
58777
58778 2005-05-13  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58781         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58782         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58783         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58784         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58785         Add support for 64-bit integers in the MSVC compiler.
58786
58787 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58788
58789         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58790
58791 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58792
58793         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58794
58795 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * doc/getdate.texi (General date syntax): Don't say that date
58798         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58799         Problem reported by Nic Ferrier.
58800
58801 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58802
58803         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58804         specified in ai_socktype. Fix invalid ai_protocol
58805         check. ai_protocol is usually set to 0 or depending on
58806         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58807         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58808         ai_socktype / ai_protocol in the returned addrinfo structure.
58809
58810 2005-05-10  Simon Josefsson  <jas@extundo.com>
58811
58812         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58813         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58814
58815 2005-05-10  Karl Berry  <karl@gnu.org>
58816
58817         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58818         (from http://www.gnu.org/licenses).
58819         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58820         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58821         fdl.texi suffices.
58822
58823 2005-05-10  Karl Berry  <karl@gnu.org>
58824
58825         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58826         (COPYING.DOC): remove.
58827
58828         * config/srclist-update: new FSF address.
58829
58830 2005-05-10  Derek Price  <derek@ximbiot.com>
58831
58832         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58833         possible.
58834
58835 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58836             Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/inet_ntop: New file.
58839         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58840         inet_ntop.
58841
58842 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58843             Bruno Haible  <bruno@clisp.org>
58844
58845         * m4/inet_ntop.m4: New file.
58846
58847 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58848             Bruno Haible  <bruno@clisp.org>
58849
58850         * lib/inet_ntop.h: New file.
58851         * lib/inet_ntop.c: New file, from glibc with modifications.
58852
58853 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58854
58855         * modules/time_r (License): Change to LGPL.
58856         * modules/extensions (License): Change to LGPL.  Actually,
58857         the license is more permissive than that, but currently gnulib-tool
58858         doesn't know how to handle more-permissive licenses.
58859
58860         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58861         Problem reported by Dave Love.
58862
58863 2005-05-08  Jim Meyering  <jim@meyering.net>
58864
58865         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58866         blank.
58867
58868 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58869
58870         * modules/argmatch (Depends-on): Add stdbool.
58871         * modules/backupfile (Depends-on): Likewise.
58872         * modules/chdir-long (Depends-on): Likewise.
58873         * modules/closeout (Depends-on): Likewise.
58874         * modules/cycle-check (Depends-on): Likewise.
58875         * modules/dirname (Depends-on): Likewise.
58876         * modules/fnmatch (Depends-on): Likewise.
58877         * modules/fsusage (Depends-on): Likewise.
58878         * modules/fwriteerror (Depends-on): Likewise.
58879         * modules/getcwd (Depends-on): Likewise.
58880         * modules/getloadavg (Depends-on): Likewise.
58881         * modules/hard-locale (Depends-on): Likewise.
58882         * modules/makepath (Depends-on): Likewise.
58883         * modules/mountlist (Depends-on): Likewise.
58884         * modules/nanosleep (Depends-on): Likewise.
58885         * modules/posixtm (Depends-on): Likewise.
58886         * modules/quotearg (Depends-on): Likewise.
58887         * modules/readtokens (Depends-on): Likewise.
58888         * modules/readtokens0 (Depends-on): Likewise.
58889         * modules/readutmp (Depends-on): Likewise.
58890         * modules/save-cwd (Depends-on): Likewise.
58891         * modules/strftime (Depends-on): Likewise.
58892         * modules/userspec (Depends-on): Likewise.
58893         * modules/utimecmp (Depends-on): Likewise.
58894         * modules/xgetcwd (Depends-on): Likewise.
58895         * modules/xnanosleep (Depends-on): Likewise.
58896         * modules/xstrtod (Depends-on): Likewise.
58897         * modules/yesno (Depends-on): Likewise.
58898
58899 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58902         needless checks.
58903
58904 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58905
58906         Merge from coreutils.  Among other things,
58907         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58908         * lib/fd-safer.c: New file.
58909         * lib/fcntl-safer.h, open-safer.c: Remove.
58910         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58911         * lib/dup-safer.c: Include unistd-safer.h first.
58912         Don't include errno.h.
58913         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58914         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58915         * lib/file-type.c: Rely on file-type.h change.
58916         * lib/getloadavg.c: Include unistd-safer.h.
58917         (getloadavg): Use safer open.
58918         * lib/getusershell.c: Include "stdio-safer.h".
58919         (getusershell): Use safer fopen.
58920         * lib/long-options.c (long_options): Use NULL rather than 0.
58921         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58922         'free'.
58923         * lib/modechange.c: Likewise.
58924         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58925         (MODE_DONE): New constant.
58926         (struct mode_change): Remove 'next' member.
58927         (make_node_op_equals): New function; like the old one of the
58928         same name, except it allocates an array.
58929         (mode_compile, mode_create_from_ref): Use it.
58930         (mode_compile): Allocate result as an array, not a linked list.
58931         Parse octal string ourself, so that we catch mistakes like "+0".
58932         (mode_adjust): Arg is an array, not a linked list.
58933         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58934         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58935         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
58936         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
58937         Remove.  This is now stat-macros.h's job.
58938         (talloc): Remove.  All callers replaced by xalloc, so that
58939         our invokers don't have to worry about reporting memory failures.
58940         (make_node_op_equals): Remove.
58941         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58942         New constants.
58943         (struct mode_change): Moved here from modechange.h.
58944         (mode_append_entry): Remove.
58945         (mode_compile): Remove MASKED_OPS arg, since it encouraged
58946         apps to have incorrect behavior.  Use simpler algorithm for head
58947         and tail.  Don't futz with umask; that's now the job of mode_adjust.
58948         Detect more invalid usages rather than having somewhat-random behavior.
58949         Don't insert an "a=" action, as that leads to incorrect behavior.
58950         (mode_compile, mode_create_from_ref): Return NULL on error instead
58951         of an enum, since now there's only one way to have an error.  All
58952         callers changed.
58953         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
58954         at the correct time.  Simplify calculation of "+u" and its ilk.
58955         Don't mishandle "+X".
58956         (mode_free): Remove "register" and localize decls.
58957         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58958         (struct mode_change): Move to modechange.c; callers don't
58959         need to see this stuff.
58960         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
58961         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
58962         (mode_change, mode_adjust): Reflect the new signatures noted above.
58963         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
58964         that might redefine system include files.
58965         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
58966         (my_usleep): Use NULL rather than (void *) 0.
58967         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
58968         Use siginterrupt to specify that system calls should be interrupted.
58969         (rpl_nanosleep): Move initialization of suspended closer to call of
58970         my_usleep.
58971         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
58972         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
58973         (desirable_utmp_entry): New function.
58974         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
58975         using x2nrealloc, to simplify logic.
58976         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
58977         size calculation.  Do not assume utmp file is a regular file.
58978         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
58979         (READ_UTMP_CHECK_PIDS): New constant.
58980         * lib/save-cwd.c: Include unistd-safer.h.
58981         (save_cwd): Use fd_safer.
58982         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
58983         [!_LIBC] Include "stat-macros.h" instead.
58984         * lib/unistd-safer.h (fd_safer): New decl.
58985
58986 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * modules/getloadavg (Depends-on): Add unistd-safer.
58989         * modules/getusershell (Depends-on): Add stdio-safer.
58990         * modules/lstat (Depends-on): Remove xalloc.
58991         * modules/mkstemp (Depends-on): Add stat-macros.
58992         * modules/modechange (Depends-on): Remove xstrtol.
58993         Add stat-macros, xalloc.
58994         * modules/save-cwd (Depends-on): Add unistd-safer.
58995         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
58996         * modules/unistd-safer (Files): Add lib/fd-safer.c
58997         (Makefile.am): Remove lib_SOURCES.
58998
58999         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59000         Remove fcntl-safer; unistd-safer supersedes it.
59001
59002 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59005         AC_HEADER_STAT.
59006         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59007         (gl_PREREQ_CHOWN): Remove.
59008         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59009         it.  Don't require AC_HEADER_STAT.
59010         (gl_PREREQ_LSTAT): Remove.
59011         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59012         Don't require AC_HEADER_STAT.
59013         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59014         (gl_PREREQ_RMDIR): Remove.
59015         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59016         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59017         the stat-macros module a prerequisite.
59018         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59019         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59020         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59021         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59022         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59023         variable names.
59024         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59025         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59026         variable prefixes.
59027         * m4/fcntl-safer.m4: Remove.
59028         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59029         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59030         Invoke gl_PREREQ_FD_SAFER.
59031         (gl_PREREQ_FD_SAFER): New macro.
59032         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59033         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59034         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59035         Remove duplicate call to AC_LIBOBJ(readutmp).
59036         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59037
59038         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59039         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59040
59041 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59042
59043         * MODULES.html.sh (Misc): Add byteswap.
59044
59045 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59046
59047         * modules/getcwd (Depends-on): Add extensions.
59048         * modules/openat (Depends-on): Likewise.
59049
59050 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59051
59052         * modules/byteswap: New file.
59053
59054 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59055
59056         * m4/byteswap.m4: New file.
59057
59058 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59059
59060         * lib/byteswap_.h: New file.
59061
59062 2005-04-25  Karl Berry  <karl@gnu.org>
59063
59064         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59065
59066 2005-04-25  Albert Chin  <china@thewrittenword.com>
59067
59068         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59069         Toolkit C bug.
59070
59071 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59072
59073         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59074         (func_ln_if_changed) Remove forcibly for no error message
59075         in case file does not exist.
59076
59077 2005-04-19  Simon Josefsson  <jas@extundo.com>
59078
59079         * gnulib-tool (Options): Make --symlink mean --symbolic.
59080
59081 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59082
59083         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59084
59085 2005-04-16  Simon Josefsson  <jas@extundo.com>
59086
59087         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59088
59089 2005-04-15  Simon Josefsson  <jas@extundo.com>
59090
59091         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59092
59093 2005-04-15  Simon Josefsson  <jas@extundo.com>
59094
59095         * gnulib-tool: Rename --symlink to --symbolic.
59096
59097 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59098
59099         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59100         symbolic links to files instead of copying/moving.  Add --aux-dir,
59101         specifying directory relative --dir where auxiliary build tools
59102         are placed.
59103
59104 2005-04-14  Bruno Haible  <bruno@clisp.org>
59105
59106         * modules/allocsa (License): Change to LGPL.
59107         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59108
59109 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59110
59111         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59112         that "UTC +1 second" continues to work.  Problem reported
59113         by Dmitry V. Levin.
59114         (relunit_snumber): New rule.
59115         (relunit): Use it.
59116
59117 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         * lib/getdate.y (universal_time_zone_table): New constant.
59120         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59121         universal_time_zone_table.
59122         (lookup_zone): Prefer universal_time_zone_table to
59123         local_time_zone_table, so that "GMT" time stamps are allowed in
59124         London during the summer.  Problem reported by Ian Abbott.
59125
59126 2005-04-12  Jim Meyering  <jim@meyering.net>
59127
59128         * lib/human.c (humblock): Set *options even when returning due to
59129         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59130         warning from gcc-4.
59131
59132 2005-04-09  Jim Meyering  <jim@meyering.net>
59133
59134         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59135         -Wuninitialized: initialize tm0.tm_year.
59136
59137 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59140         count, since there's no maximum.  All uses changed.
59141         Add member dsts_seen.
59142         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59143         not being INT_MAX.
59144         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59145         Use pc_rels_seen to decide whther a date is absolute.
59146
59147         * lib/getdate.y (number): Don't overwrite year.
59148         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59149         check.
59150
59151 2005-04-02  Simon Josefsson  <jas@extundo.com>
59152
59153         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59154         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59155
59156 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59157
59158         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59159         where no absolute path name can be longer than PATH_MAX.
59160
59161 2005-03-27  Jim Meyering  <jim@meyering.net>
59162
59163         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59164
59165 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59166
59167         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59168         "one's complement" -> "ones' complement" in comment, as per Knuth.
59169         "value of type" -> "type or expression" in comment.
59170         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59171
59172 2005-03-26  Jim Meyering  <jim@meyering.net>
59173
59174         Comment nits.
59175         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59176         Correct typos: s/or/of/.
59177
59178 2005-03-26  Jim Meyering  <jim@meyering.net>
59179
59180         * modules/check-include-files: Move to ../ and rename to...
59181         * check-module: ...this.
59182
59183 2005-03-25  Jim Meyering  <jim@meyering.net>
59184
59185         * modules/xvasprintf (Files): Add xalloc.h.
59186
59187 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59188
59189         * modules/gettext (Files): config/config.rpath ->
59190         build-aux/config.rpath
59191         * modules/iconv (Files): Likewise.
59192         Problem reported by Oskar Liljeblad.
59193
59194 2005-03-23  Jim Meyering  <jim@meyering.net>
59195
59196         * modules/check-include-files: New script to check for
59197         missing dependencies, multiple includes, etc.
59198
59199         * modules/c-strtold (Depends-on): Add xalloc.
59200         * modules/c-strtod (Depends-on): Add xalloc.
59201         * modules/hash (Depends-on): Add xalloc.
59202         (Files): Remove lib/xalloc.h.
59203
59204         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59205         * modules/userspec (Files): Add lib/inttostr.h.
59206
59207 2005-03-23  Jim Meyering  <jim@meyering.net>
59208
59209         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59210
59211 2005-03-22  Jim Meyering  <jim@meyering.net>
59212
59213         * modules/stat-macros: New module.
59214         * modules/canonicalize, modules/euidaccess, modules/file-type,
59215         * modules/filemode, modules/lchown, modules/makepath,
59216         * modules/rmdir, modules/stat: Depend on new stat-macros module
59217         rather than listing lib/stat-macros.h manually.
59218         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59219
59220 2005-03-22  Jim Meyering  <jim@meyering.net>
59221
59222         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59223
59224 2005-03-22  Bruno Haible  <bruno@clisp.org>
59225
59226         * config/srclist.txt: Replace target directory 'config' with
59227         'build-aux'.
59228         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59229         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59230         ../build-aux/.
59231
59232 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59233
59234         * modules/chdir-long (Depends-on): Add mempcpy.
59235
59236         * modules/acl, modules/backupfile, modules/c-strtod,
59237         modules/c-strtold, modules/canon-host, modules/canonicalize,
59238         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59239         modules/exclude, modules/exitfail, modules/file-type,
59240         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59241         modules/getdate, modules/getline, modules/getpagesize,
59242         modules/getpass, modules/getugroups, modules/group-member,
59243         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59244         modules/inttostr, modules/long-options, modules/makepath,
59245         modules/md5, modules/memcasecmp, modules/memcoll,
59246         modules/modechange, modules/mountlist, modules/path-concat,
59247         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59248         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59249         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59250         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59251         modules/strftime, modules/strndup, modules/strverscmp,
59252         modules/timespec, modules/unlocked-io, modules/userspec,
59253         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59254         modules/yesno:
59255         Remove lib_SOURCES line from Makefile.am section, as this is now
59256         done automatically by the corresponding Autoconf macro.
59257
59258 2005-03-21  Jim Meyering  <jim@meyering.net>
59259
59260         Changes imported from coreutils.
59261
59262         * lib/cycle-check.c: Don't include xalloc.h.
59263
59264         * lib/path-concat.c: Don't include assert.h.
59265         (path_concat): Remove assertion that would have triggered
59266         for ABASE starting with more than one slash.
59267         Reported by Andreas Schwab.
59268
59269         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59270         properly when ABASE is an absolute file name.
59271         Correct the description of this function.
59272         Include <assert.h>.
59273         Add an assertion and a test driver.
59274         This fixes a bug introduced on 2004-07-02.
59275         Andreas Schwab reported the resulting failure of cp --parents:
59276         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59277
59278 2005-03-21  Jim Meyering  <jim@meyering.net>
59279
59280         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59281         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59282
59283 2005-03-21  Jim Meyering  <jim@meyering.net>
59284         and  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59287         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59288         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59289         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59290         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59291         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59292         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59293         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59294         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59295         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59296         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59297         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59298         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59299         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59300         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59301         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59302         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59303         for these modules.
59304
59305 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59308         (which shouldn't happen), generate nothing instead of returning 0
59309         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59310
59311 2005-03-16  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59314         HAVE_LONGLONG_64BIT.
59315
59316 2005-03-16  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59319         HAVE_LONGLONG_64BIT.
59320
59321 2005-03-16  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59324         HAVE_LONGLONG_64BIT.
59325
59326 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59329         reliably distinguish strftime failure from empty output on POSIX
59330         hosts.
59331
59332 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59333
59334         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59335         (iconv_string): Don't guess a size-zero buffer, as that might cause
59336         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59337         result would be 'too large', where 'too large' is (heuristically)
59338         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59339         overflow concerns.  This will prevent some unwanted malloc failures
59340         when the inputs are very large.
59341
59342 2005-03-15  Karl Berry  <karl@gnu.org>
59343
59344         * config/srclist.txt (config.rpath): from gettext.
59345         * config/config.rpath: update.
59346
59347 2005-03-15  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59350         to 'negate'.
59351
59352         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59353         variable.
59354
59355         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59356         results.
59357
59358 2005-03-14  Simon Josefsson  <jas@extundo.com>
59359
59360         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59361         <fx@gnu.org>.
59362
59363 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59364
59365         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59366         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59367         intprops.h.
59368         * lib/strtol.c: Likewise.
59369
59370 2005-03-14  Jim Meyering  <jim@meyering.net>
59371
59372         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59373         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59374         to be nonzero so that we (and caller) can detect the difference
59375         between a valid zero-length expansion and an error return, even
59376         when the underlying strftime fails before writing anything into
59377         that location.
59378
59379 2005-03-14  Bruno Haible  <bruno@clisp.org>
59380
59381         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59382         Update from GNU gettext 0.14.3.
59383
59384 2005-03-10  Jim Meyering  <jim@meyering.net>
59385
59386         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59387
59388 2005-03-10  Jim Meyering  <jim@meyering.net>
59389
59390         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59391         so that this module works on systems without fchdir.
59392
59393 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         Factor int-properties macros into a single file, except for
59396         glibc-related files.
59397         * lib/intprops.h: New file.
59398         * lib/getloadavg.c: Include it instead of limits.h.
59399         (INT_STRLEN_BOUND): Remove.
59400         * lib/human.c: Include intprops.h.
59401         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59402         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59403         302/1000.
59404         * lib/inttostr.h: Include intprops.h instead of limits.h.
59405         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59406         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59407         for consistency with intprops.h.
59408         (time_t_is_integer, twos_complement_arithmetic): Use them.
59409         * lib/sig2str.h: Include <signal.h>, intprops.h.
59410         (INT_STRLEN_BOUND): Remove.
59411         * lib/strftime.c (TYPE_SIGNED): Remove.
59412         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59413         * lib/strtol.c: Adjust comments to match intprops.h.
59414         * lib/userspec.c: Include intprops.h.
59415         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59416         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59417         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59418         instead of rolling our own expressions.
59419         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59420
59421         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59422         instead of int.
59423         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59424         the right thing even if adding 1900 would overflow.  Similarly
59425         for tm_mon + 1 and tm_yday + 1.
59426         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59427         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59428         (DO_SIGNED_NUMBER): New macro.
59429         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59430
59431 2005-03-07  Bruno Haible  <bruno@clisp.org>
59432
59433         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59434
59435 2005-03-07  Bruno Haible  <bruno@clisp.org>
59436
59437         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59438
59439 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59440
59441         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59442         (func_import): Only replace files via --import when they have actually
59443         changed.
59444
59445 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59446
59447         * m4/mmap-anon.m4: New file.
59448         * m4/pagealign_alloc.m4: New file.
59449
59450 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59451             Bruno Haible  <bruno@clisp.org>
59452
59453         * modules/pagealign_alloc: New file.
59454         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59455
59456 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59457             Bruno Haible  <bruno@clisp.org>
59458
59459         * lib/pagealign_alloc.h: New file.
59460         * lib/pagealign_alloc.c: New file.
59461
59462 2005-03-03  Bruno Haible  <bruno@clisp.org>
59463
59464         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59465         Use an all-permissive copyright notice, recommended by RMS.
59466
59467 2005-03-02  Bruno Haible  <bruno@clisp.org>
59468
59469         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59470         of AIX, the replacement has to be done only after <string.h> is
59471         included, therefore not in config.h. stpncpy.h does the replacement,
59472         and stpncpy.c uses it.
59473
59474 2005-03-02  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59477         stpncpy.c uses it.
59478
59479 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59480
59481         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59482         The workaround isn't strictly needed for POSIX conformance, and
59483         it's too much of a pain to configure and maintain.  We'll ask
59484         people to fix their kernels instead.
59485         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59486         (NANOSLEEP_BUG_WORKAROUND): Remove.
59487         (xnanosleep): Remove the workaround.
59488
59489 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59492         Reported by Derek Price.
59493         (Include): Add "timespec.h".
59494
59495         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59496
59497 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59498
59499         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59500         to detect nanosleep bug.
59501
59502 2005-03-01  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59505
59506 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59507
59508         * modules/gethrxtime: New file.
59509         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59510         (Depends-on): Add gethrxtime.
59511         (configure.ac): Add gl_XNANOSLEEP.
59512         (Makefile.am): Remove lib_SOURCES line.
59513
59514 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59517         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59518
59519 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59522         * lib/timespec.h (gettime): Return void, since it always
59523         succeeds now.  All uses changed.
59524         * lib/gettime.c (gettime) Likewise.
59525         [HAVE_NANOTIME]: Prefer nanotime.
59526         Assume gettimeofday succeeds, as POSIX requires.
59527         Assime time () succeeds, since other code already does.
59528         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59529         (timespec_subtract): Remove.
59530         (NANOSLEEP_BUG_WORKAROUND): New constant.
59531         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59532         things considerably.  Use it only on GNU/Linux hosts, since the
59533         workaround shouldn't be needed elsewhere.
59534
59535 2005-02-24  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/gettext (Files): Add m4/glibc2.m4.
59538
59539 2005-02-24  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59542         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59543         * m4/progtest.m4:
59544         Update from GNU gettext 0.14.2.
59545         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59546
59547 2005-02-24  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59550         * lib/config.charset: Update from GNU gettext 0.14.2.
59551
59552 2005-02-24  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/gettext.h: Update from GNU gettext 0.14.2.
59555
59556 2005-02-23  Simon Josefsson  <jas@extundo.com>
59557
59558         * m4/iconvme.m4: New file.
59559
59560 2005-02-23  Jim Meyering  <jim@meyering.net>
59561
59562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59563         change.
59564         Thanks to Bruno Haible for catching it.
59565
59566 2005-02-22  Simon Josefsson  <jas@extundo.com>
59567
59568         * modules/iconvme: New file.
59569
59570         * MODULES.html.sh: Add iconvme.
59571
59572 2005-02-22  Simon Josefsson  <jas@extundo.com>
59573
59574         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59575
59576 2005-02-22  Simon Josefsson  <jas@extundo.com>
59577
59578         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59579
59580 2005-02-22  Jim Meyering  <jim@meyering.net>
59581
59582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59583         s/ifndef/ifdef/.
59584
59585 2005-02-20  Neil Conway  <neilc@samurai.com>
59586
59587         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59588         returned by OSX/Darwin if the specified buffer is not large
59589         enough for the hostname.
59590
59591 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59592
59593         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59594         pass it to _help, otherwise the latter coredumps trying to
59595         dereference state.root_argp.
59596
59597 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59598
59599         * modules/chdir-long (Depends-on): Add memrchr.
59600         * modules/memrchr (Files): Add lib/memrchr.h.
59601         (Include): "memrchr.h".
59602
59603 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59606
59607 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         * lib/memrchr.h: New file.
59610         * lib/chdir-long.c: Include it.
59611         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59612         Don't bother including stddef.h.
59613
59614 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59615
59616         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59617         inclusion.
59618         Include <sys/types.h>, for dev_t.
59619         (ME_DUMMY, ME_REMOTE): Move from here....
59620         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59621         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59622         Dmitry V. Levin.
59623         Include mountlist.h first, to test the interface.
59624
59625 2005-01-29  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/progname.c (program_name): Initialize.
59628         Needed when linking statically on MacOS X.
59629
59630 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         Sync from coreutils.
59633         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59634         (Depends-on): Add c-strtod.
59635         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59636
59637 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         Sync from coreutils.
59640         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59641
59642         Remove files that are specific to coreutils.
59643         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59644
59645 2005-01-28  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/javacomp: New file.
59648         * MODULES.html.sh (Java): Add javacomp.
59649
59650 2005-01-28  Bruno Haible  <bruno@clisp.org>
59651
59652         * m4/javacomp.m4: New file, from GNU gettext.
59653
59654 2005-01-28  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/javacomp.sh.in: New file, from GNU gettext.
59657         * lib/javacomp.h: New file, from GNU gettext.
59658         * lib/javacomp.c: New file, from GNU gettext.
59659
59660 2005-01-26  Simon Josefsson  <jas@extundo.com>
59661
59662         * lib/gai_strerror.c: Use GPL in header.
59663
59664 2005-01-26  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/javaexec: New file.
59667         * MODULES.html.sh (Java): Add javaexec.
59668
59669 2005-01-26  Bruno Haible  <bruno@clisp.org>
59670
59671         * m4/javaexec.m4: New file, from GNU gettext.
59672
59673 2005-01-26  Bruno Haible  <bruno@clisp.org>
59674
59675         * lib/javaexec.sh.in: New file, from GNU gettext.
59676         * lib/javaexec.h: New file, from GNU gettext.
59677         * lib/javaexec.c: New file, from GNU gettext.
59678
59679 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59680
59681         * modules/lchown (Depends-on): Remove lchown.h
59682
59683 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59684
59685         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59686         must be defined if the header file was not found, in order
59687         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59688
59689 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59690
59691         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59692         initializers for struct pentry_state.
59693         (__argp_error): Check return value of __asprintf
59694         (__argp_failure): Translate error message
59695
59696         * lib/argp-parse.c: Removed braces around the expansion of N_()
59697
59698 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59699
59700         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59701         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59702         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59703         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59704         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59705         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59706         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59707         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59708         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59709         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59710         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59711         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59712         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59713         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59714         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59715         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59716         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59717         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59718         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59719         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59720         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59721         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59722         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59723         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59724         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59725         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59726         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59727         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59728         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59729         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59730         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59731         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59732         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59733         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59734         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59735         Use an all-permissive copyright notice, recommended by RMS.
59736
59737 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * modules/chdir-long (Depends-on): Remove mempcpy.
59740
59741 2005-01-21  Jim Meyering  <jim@meyering.net>
59742
59743         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59744         same value as for Solaris 9.
59745
59746         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59747         component length.  This included changing the parameter to be
59748         of type `char *' rather than `char const *'.
59749         * lib/chdir-long.h (chdir_long): Update prototype.
59750
59751         * lib/openat.c (fdopendir, fstatat): New functions.
59752         * lib/openat.h: Include headers required for use of DIR and struct
59753         stat.
59754         [AT_SYMLINK_NOFOLLOW]: Define.
59755         (fdopendir, fstatat): Add prototypes.
59756
59757 2005-01-21  Bruno Haible  <bruno@clisp.org>
59758
59759         * modules/classpath: New file.
59760         * MODULES.html.sh (Java): Add classpath.
59761
59762 2005-01-21  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/classpath.h: New file, from GNU gettext.
59765         * lib/classpath.c: New file, from GNU gettext.
59766
59767 2005-01-20  Simon Josefsson  <jas@extundo.com>
59768
59769         * modules/version-etc-fsf: New file.
59770
59771 2005-01-20  Simon Josefsson  <jas@extundo.com>
59772
59773         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59774         * lib/version-etc.c: Remove version_etc_copyright.
59775         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59776         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59777
59778 2005-01-20  Simon Josefsson  <jas@extundo.com>
59779
59780         * lib/base64.h (isbase64): Add.
59781
59782         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59783         using a unsigned prototype, don't inline.
59784         (base64_decode): Use it.
59785
59786 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59789         it.
59790
59791 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * lib/save-cwd.c (save_cwd): Remove code to support the case
59794         where fchdir is missing or flaky.
59795
59796 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59799
59800 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59801
59802         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59803         AC_LIBSOURCES now does this.
59804         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59805         with new ullong_max module.
59806
59807 2005-01-19  Bruno Haible  <bruno@clisp.org>
59808
59809         * modules/sh-quote: New file.
59810         * MODULES.html.sh (Executing programs): Add sh-quote.
59811
59812 2005-01-19  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/sh-quote.h: New file, from GNU gettext.
59815         * lib/sh-quote.c: New file, from GNU gettext.
59816
59817 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         Merge from coreutils.
59820         * m4/ullong_max.m4: New file.
59821         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59822         (gl_MACROS): Assume localeconv exists.
59823
59824 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59825
59826         Merge changes from coreutils, as described below in several
59827         changelogs dated today.
59828
59829         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59830         (O_DIRECTORY): Remove; not needed here, since "." must be
59831         a directory.  All uses removed.
59832         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59833         universal on Suns, and we also need to test for IRIX.
59834         Revamp code to use 'if' rather than '#if'.
59835         Avoid unnecessary comparison of cwd->desc to 0.
59836
59837         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59838         for known valid error numbers rather than observed invalid ones.
59839
59840 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * modules/ullong_max: New file.
59843
59844         * modules/chdir-long, modules/openat: New files.
59845         * modules/save-cwd (Depends-on): Depend on chdir-long.
59846         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59847
59848 2005-01-18  Jim Meyering  <jim@meyering.net>
59849
59850         Merge from coreutils.
59851         * m4/chdir-long.m4, m4/openat.m4: New files.
59852         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59853         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59854         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59855         is sane and DOES follow symlinks.  Besides, testing 20 different
59856         systems found no broken chown implementations.
59857         Prompted by a change in rsync's copy of this macro.
59858         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59859
59860         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59861
59862         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59863         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59864         NULL-means-set-to-current-time semantics.
59865         Remove temporary file immediately, rather than waiting
59866         for configure's at-exit trap code to do it.
59867
59868 2005-01-18  Jim Meyering  <jim@meyering.net>
59869
59870         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59871
59872         * lib/utimens.c (futimens): Account for the fact that futimes
59873         can also fail with errno == ENOSYS or errno == ENOENT.
59874         Patch from Dmitry V. Levin.
59875
59876         Change the name of the robust chdir function from chdir to chdir_long.
59877         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59878         (restore_cwd): Use chdir_long, not chdir.
59879         * lib/chdir-long.c: Renamed from chdir.c.
59880         * lib/chdir-long.h: Renamed from chdir.h.
59881         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59882         Hurd.
59883
59884 2005-01-18  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59887         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59888         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59889         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59890         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59891         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59892         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59893         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59894         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59895         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59896         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59897         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59898         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59899         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59900         Use an all-permissive copyright notice, recommended by RMS.
59901
59902 2005-01-18  Bob Proulx  <bob@proulx.com>
59903
59904         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59905         simplify offsetof() macro construct to avoid compile failure with
59906         native HP-UX 11.0 ANSI C compiler.
59907
59908 2005-01-17  Bruno Haible  <bruno@clisp.org>
59909
59910         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59911         redundant because stpncpy.m4 takes care of it.
59912
59913 2005-01-17  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59916
59917 2005-01-17  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59920         used.
59921
59922 2005-01-17  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/fwriteerror.h (fwriteerror): Change specification to include
59925         fclose.
59926         * lib/fwriteerror.c: Include <stdbool.h>.
59927         (fwriteerror): At the end, close the file stream. Record whether
59928         stdout was already closed.
59929
59930 2005-01-17  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/execute.c (environ): Declare if needed.
59933         * lib/pipe.c (environ): Likewise.
59934         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59935
59936 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59937
59938         * modules/argp: Depend on vsnprintf
59939
59940 2005-01-10  Jim Meyering  <jim@meyering.net>
59941
59942         * modules/closeout (Depends-on): Add atexit.
59943
59944 2005-01-06  Bruno Haible  <bruno@clisp.org>
59945
59946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
59947
59948 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59949
59950         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
59951         definitions to be after all include files, to avoid collisions.
59952         Problem reported by Bob Proulx.
59953
59954 2005-01-04  Jim Meyering  <jim@meyering.net>
59955
59956         Changes imported from coreutils.
59957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
59958         as the mkstemp template, use a temporary directory and an
59959         8.3-friendly template to avoid trouble on systems like DJGPP.
59960         Reported by Juan M. Guerrero via Stepan Kasal.
59961         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
59962         close. Remove the temporary directory right away, rather than waiting
59963         for configure's at-exit trap code to do it.
59964         Suggestion from Stepan Kasal.
59965
59966 2005-01-01  Simon Josefsson  <jas@extundo.com>
59967
59968         * gnulib-tool: Print #include directives when --import'ing.
59969
59970 2004-12-28  Simon Josefsson  <jas@extundo.com>
59971
59972         * tests/test-base64.c: Include required header files.  Remove
59973         unused variables.
59974
59975 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59976
59977         * modules/error (Depends-on): Remove gettext.
59978
59979 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
59982         not needed.  This removes a dependency on the gettext module.
59983         [defined _LIBC]: Do not include <libintl.h>; not needed.
59984
59985 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59986
59987         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
59988         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
59989
59990 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
59993         HAVE_DECL_STRTOLD.
59994
59995 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59996
59997         * modules/getdate (Depends-on): Remove alloca-opt.
59998
59999 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60002
60003 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * lib/argp-parse.c: Include <stddef.h>.
60006         (alignof, alignto): New macros.
60007         (parser_init): Don't assume that void * is aligned sufficiently
60008         for struct option.
60009
60010         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60011         need to extend the stack.
60012         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60013         large.
60014
60015 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60016
60017         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60018
60019 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60022         (2004-10-24) change.  Apparently this was a false alarm.
60023
60024         * modules/getdate: Depend on alloca-opt, not alloca.
60025
60026 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60029         Remove now-obsolete comment about AIX.
60030         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60031         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60032         (YYMAXDEPTH): New macro.
60033
60034 2004-12-18  Simon Josefsson  <jas@extundo.com>
60035
60036         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60037
60038 2004-12-18  Bruno Haible  <bruno@clisp.org>
60039
60040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60041
60042 2004-12-18  Bruno Haible  <bruno@clisp.org>
60043
60044         * lib/fatal-signal.c (fatal_signals): Make non-const.
60045         (init_fatal_signals): New function.
60046         (uninstall_handlers, install_handlers): Ignore signals that were set to
60047         SIG_IGN.
60048         (at_fatal_signal): Call init_fatal_signals.
60049         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60050         SIG_IGN.
60051         Reported by Paul Eggert.
60052
60053 2004-12-18  Bruno Haible  <bruno@clisp.org>
60054
60055         * doc/alloca.texi: New file.
60056         * doc/alloca-opt.texi: New file.
60057
60058 2004-12-17  Jim Meyering  <jim@meyering.net>
60059
60060         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60061         Otherwise, install-sh could exit with improper exit status when
60062         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60063
60064 2004-12-16  Simon Josefsson  <jas@extundo.com>
60065
60066         * tests/test-base64.c: Add license.
60067
60068 2004-12-15  Stepan Kasal  <address@hidden>
60069
60070         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60071
60072 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60073
60074         * modules/getcwd (Files): Add m4/d-ino.m4.
60075         Suggested by Mark D. Baushke.
60076
60077 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * lib/getdate.y (textint): New member "negative".
60080         (time_zone_hhmm): New function.
60081         Expect 14 shift-reduce conflicts, not 13.
60082         (o_colon_minutes): New rule.
60083         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60084         (yylex): Set the "negative" member of signed numbers.
60085
60086 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60087
60088         * doc/getdate.texi (Time of day items, Time zone items):
60089         Describe new formats +00:00, UTC+00:00.
60090
60091 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60092
60093         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60094         spurious "-l"s.  Problem reported by Stepan Kasal.
60095
60096 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60099         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60100
60101 2004-12-04  Simon Josefsson  <jas@extundo.com>
60102
60103         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60104         Vandoorselaere <yoann@prelude-ids.org>.
60105
60106 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60107
60108         Changes imported from coreutils.
60109         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60110         exist.
60111         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60112
60113 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60114
60115         Changes imported from coreutils.
60116         * lib/hard-locale.c: Assume <locale.h> exists.
60117         Include "strdup.h".
60118         (GLIBC_VERSION): New macro.
60119         (hard_locale): Assume setlocale exists.
60120         Rewrite to avoid #ifdef.
60121         Use strdup rather than malloc + strcpy.
60122         * lib/human.c: Assume <locale.h> exists.
60123         (human_readable): Assume localeconv exists.
60124
60125 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * modules/hard-locale (Depends-on): Add strdup.
60128
60129 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60130
60131         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60132         convert T2, not T.  (Imported from libc.)
60133
60134 2004-11-30  Simon Josefsson  <jas@extundo.com>
60135
60136         * modules/restrict (License): Change to LGPL.
60137
60138 2004-11-30  Simon Josefsson  <jas@extundo.com>
60139
60140         * m4/restrict.m4: Add copyright and copying conditions.
60141
60142 2004-11-30  Simon Josefsson  <jas@extundo.com>
60143
60144         * m4/base64.m4: New file.
60145
60146 2004-11-30  Simon Josefsson  <jas@extundo.com>
60147
60148         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60149         base64.
60150
60151         * tests/test-base64.c: New file.
60152
60153         * modules/base64: New file.
60154
60155 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60158         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60159
60160         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60161
60162 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60165         (__getcwd.c): Don't restore errno; glibc doesn't.
60166         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60167         first, falling back to our code only if its results look suspicious.
60168         Ensure that the resulting buffer is only as large as necessary.
60169
60170         * lib/readutmp.c: Include readutmp.h first.
60171         Include <errno.h>, since readutmp.h no longer does that.
60172         * lib/readutmp.h: Don't include <errno.h>,
60173         <sys/param.h>, <time.h>; not needed to establish interface.
60174         (errno): Remove decl.
60175         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60176         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60177         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60178
60179 2004-11-28  Simon Josefsson  <jas@extundo.com>
60180
60181         * lib/base64.h, base64.c: New file.
60182
60183 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60184
60185         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60186
60187 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60190         (Depends-on): Remove pathmax, same.  Add mempcpy.
60191         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60192         (Makefile.am): Append getcwd.h to lib_SOURCES.
60193         (Include): Add getcwd.h.
60194         (Maintainer): Change from Jim Meyering to "all, glibc",
60195         since getdate now uses intended-for-glibc code.
60196         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60197         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60198
60199 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60200
60201         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60202         HP's ANSI C compiler.
60203         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60204         Declaring int functions causes warnings on some modern systems and
60205         shouldn't be needed to compile on ancient ones.
60206         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60207         defined.
60208
60209         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60210         with the following changes.
60211         (__set_errno): Parenthesize properly.
60212         Include <stdbool.h>.
60213         (MIN, MAX, MATCHING_INO): New macros.
60214         (__getcwd): Define with prototype, not K&R form.
60215         Use heuristics to allocate default buffer on stack if possible.
60216         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60217         behavior, and to avoid the PATH_MAX limit when computing
60218         ../../../../...
60219         Use MATCHING_INO to compare inode number to file.
60220         Check for arithmetic overflow in size calculations.
60221         Fix bug in reallocation of dot array that caused getcwd to fail
60222         on directories nested deeper than 75.
60223         Be more careful about saving errno on error.
60224         Do not use realloc; use only free+malloc, as this is a bit
60225         more flexible and avoids a needless copy operation.
60226         Do not inspect st_dev and st_ino for symbolic links; POSIX
60227         doesn't specify the latter.
60228         Check for closedir errors.
60229         Avoid needless casts.
60230         Use "#ifdef weak_alias" around weak_alias, to be like other
60231         glibc code.
60232         The following changes to getcwd.c have effect only when used in
60233         gnulib; they have no effect inside glibc proper.
60234         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60235         as alloca isn't used.
60236         (alloca, __alloca): Likewise.
60237         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60238         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60239         unconditionally, as gnulib assumes C89 or better.
60240         Do not include <sys/param.h>.
60241         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60242         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60243         better.
60244         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60245         Include <dirent.h> in a way that is compatible with modern Autoconf.
60246         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60247         New macros, if not already defined.
60248         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60249         Use "_LIBC", not "defined _LIBC", for consistency.
60250         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60251         a mempcpy module.
60252         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60253         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60254         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60255         credit only to Jim Meyering and adjust the copyright dates.
60256         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60257         <stdlib.h>, <unistd.h>, "pathmax.h".
60258         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60259         (INITIAL_BUFFER_SIZE): Remove.
60260         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60261
60262 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60263
60264         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60265         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60266         Use the _ONCE methods, for efficiency.
60267         Check for fcntl.h.  In test program, include <errno.h>
60268         and <fcntl.h> if available.  Remove old K&R cruft from
60269         test program.  Check for common errors in GNU/Linux,
60270         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60271         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60272         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60273         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60274         name accordingly.
60275         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60276         accommodate new getcwd.c.
60277         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60278         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60279         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60280         that's all we need now.
60281
60282 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60283
60284         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60285         argp-parse.c depends on getopt internals, that means we should
60286         always use our getopt, to be on the safe side.
60287         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60288         order not to spoil the result of an eventual previous invocation
60289         of gl_GETOPT_SUBSTITUTE.
60290
60291 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60292
60293         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60294         redefinition warnings. To avoid them, include the defines
60295         in `#if !defined __need_getopt ... #endif'. The only place
60296         where __getopt_argv_const is used is in definitions
60297         of getopt_long and getopt_long_only below, which are as well
60298         protected by `#ifndef __need_getopt'.
60299         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60300         __need_getopt after including <stdio.h> and <unistd.h> These
60301         headers might have defined it.
60302
60303 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60306
60307 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60308
60309         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60310         (futimens): New function, which uses futimes if available.
60311         (futimens, utimens): Support timespec==NULL, with same semantics
60312         as utime and utimens.
60313         * lib/utimens.h (futimens): New decl.
60314
60315 2004-11-23  Jim Meyering  <jim@meyering.net>
60316
60317         * lib/getopt_.h: Remove trailing blanks.
60318
60319 2004-11-23  Jim Meyering  <jim@meyering.net>
60320
60321         * lib/__fpending.c: Add comment.
60322
60323 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60324
60325         * modules/canonicalize (Depends-on): Add xreadlink.
60326         Problem reported by James Youngman.
60327
60328 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60331         New macros.
60332         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60333         optopt): Use them instead of invoking ## directly; otherwise, the
60334         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60335
60336 2004-11-19  Bruno Haible  <bruno@clisp.org>
60337
60338         * lib/strtok_r.c: Move comments from here...
60339         * lib/strtok_r.h: ... to here.
60340
60341 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60342
60343         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60344         implementations that mishandle size_t overflow.
60345
60346 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60349         might fail.  Problem reported by Yoann Vandoorselaere.
60350         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60351         implementations that mishandle size_t overflow.
60352
60353 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * modules/canon-host (Depends-on): Add strdup.
60356
60357 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60358
60359         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60360
60361 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60362
60363         * lib/canon-host.c: Include "strdup.h".
60364         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60365         Use strdup instead of malloc/strcpy to duplicate strings.
60366
60367         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60368         (human_space_before_unit): New constant.
60369         * lib/human.c (human_readable): Support it.
60370
60371         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60372         (xgetcwd): Set errno correctly when failing.
60373         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60374         the failure is actually due to a PATH_MAX problem.
60375
60376         Further getopt changes to make it more likely that glibc will
60377         buy the changes back.
60378         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60379         (getopt): Use it, so to preserve glibc semantic
60380         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60381         when compiling for libc.
60382         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60383         (getopt_long, getopt_long_only): Use it.
60384
60385         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60386         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60387         (getopt): Argv is now char * const *, as per standard.
60388         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60389         not char *__getopt_argv_const *.
60390         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60391         _getopt_long_only_r): Likewise.
60392         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60393         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60394         _getopt_long_r, _getopt_long_only_r): Likewise.
60395         * lib/getopt_.h (__getopt_argv_const): Remove.
60396         (getopt): Argv is now char * const *, as per standard.
60397
60398         * lib/getdate.y (tORDINAL): New token.
60399         (day, relunit): Allow it for relative times.
60400         (relative_time_table): Use tORDINAL for ordinals.
60401
60402 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60405         Document that "second" isn't allowed as an ordinal number.
60406
60407 2004-11-16  Jim Meyering  <jim@meyering.net>
60408
60409         * modules/closeout (Depends-on): Add fpending.
60410
60411 2004-11-15  Jim Meyering  <jim@meyering.net>
60412
60413         * lib/closeout.c: Include "__fpending.h" once again.
60414         Include <stdbool.h>.
60415         (close_stdout): Don't fail just because stdout was closed initially,
60416         since some programs don't write to stdout in the normal course of
60417         operation (other than --version and --help), and we don't want this
60418         function to make e.g. `touch file >&-' fail.
60419         But do fail if it was closed and someone has tried to write to it.
60420         E.g., `printf foo >&-' must fail.
60421
60422 2004-11-13  Jim Meyering  <jim@meyering.net>
60423
60424         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60425
60426 2004-11-12  Simon Josefsson  <jas@extundo.com>
60427
60428         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60429         small doc fix is still pending.
60430
60431 2004-11-11  Simon Josefsson  <jas@extundo.com>
60432
60433         * modules/strtok_r: New file.
60434
60435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60436         strtok_r.
60437
60438 2004-11-11  Simon Josefsson  <jas@extundo.com>
60439
60440         * m4/strtok_r.m4: New file.
60441
60442         * m4/getopt.m4: Replace opterr.
60443
60444 2004-11-11  Simon Josefsson  <jas@extundo.com>
60445
60446         * lib/strtok_r.h, strtok_r.c: New file.
60447
60448 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60451         of replacing opterr, getopt, etc.  This should handle the
60452         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60453
60454 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60455
60456         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60457         we can stop lying to compilers about the constness of argv when we
60458         are compiled outside glibc.
60459         (getopt, getopt_long, getopt_long_only): Use it.
60460         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60461         _getopt_internal, getopt): Likewise.
60462         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60463         _getopt_long_only_r): Likewise.
60464         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60465         _getopt_long_r, _getopt_long_only_r): Likewise.
60466
60467         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60468         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60469         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60470         the other external symbols.
60471         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60472         declaration, since the above renaming now works around collisions.
60473
60474 2004-11-11  Jim Meyering  <jim@meyering.net>
60475
60476         * lib/linebreak.c: Remove trailing blanks.
60477         * lib/alloca_.h: Likewise.
60478         * lib/acosl.c: Likewise.
60479         * lib/euidaccess.c: Likewise.
60480         * lib/allocsa.h: Likewise.
60481
60482 2004-11-10  Simon Josefsson  <jas@extundo.com>
60483
60484         * m4/getaddrinfo.m4: New file.
60485
60486 2004-11-10  Simon Josefsson  <jas@extundo.com>
60487
60488         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60489
60490 2004-11-10  Simon Josefsson  <jas@extundo.com>
60491
60492         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60493         getaddrinfo.
60494
60495         * modules/getaddrinfo: New file.
60496
60497 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60500
60501 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * lib/mktime.c (SHR): New macro, which is a portable
60504         substitute for >> that should work even on Crays.
60505         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60506         Problem reported by Mark D. Baushke in
60507         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60508         * lib/getdate.y (SHR): Likewise.
60509         (tm_diff): Use it.
60510         * lib/strftime.c (SHR): Likewise.
60511         (tm_diff): Use it.
60512         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60513         quote_these_too, so that right shifts are well defined.  All uses
60514         changed.
60515
60516 2004-11-10  Jim Meyering  <jim@meyering.net>
60517
60518         Ensure that no close failure goes unreported.
60519         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60520         return early when it seems there's nothing to flush.
60521         Don't include __fpending.h.
60522
60523 2004-11-10  Jim Meyering  <jim@meyering.net>
60524
60525         * modules/closeout (Depends-on): Remove fpending.
60526
60527 2004-11-10  Jim Meyering  <jim@meyering.net>
60528
60529         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60530
60531 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60534         gl_FUNC_STRFTIME.
60535         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60536         and AC_REQUIRE when possible, to avoid duplicate checks.
60537         Check for <wchar.h>.
60538
60539 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60542
60543 2004-11-09  Bruno Haible  <bruno@clisp.org>
60544
60545         * m4/sockpfaf.m4: New file.
60546
60547 2004-11-05  Bruno Haible  <bruno@clisp.org>
60548
60549         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60550         Reported by Mark D. Baushke <mdb@cvshome.org>.
60551
60552 2004-11-04  Bruno Haible  <bruno@clisp.org>
60553
60554         2004-09-11  Bruno Haible  <bruno@clisp.org>
60555                 * allocsa.valgrind: New file.
60556         2004-02-06  Bruno Haible  <bruno@clisp.org>
60557                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60558                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60559                 Reported by Christopher Seip <chris.seip@hp.com>.
60560
60561 2004-11-04  Bruno Haible  <bruno@clisp.org>
60562
60563         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60564         (Makefile.am): Distribute it.
60565
60566 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60569         with errno == ERANGE if the buffer is too small.
60570         Problem reported by Mark D. Baushke.
60571
60572 2004-11-03  Albert Chin  <china@thewrittenword.com>
60573             Paul Eggert  <eggert@cs.ucla.edu>
60574
60575         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60576         equivalent, substitute $ac_type for equivalent type rather than
60577         blindly using uint32_t *always* which won't work if uint32_t is not
60578         available.  Define _UINT32_T to work around typedef of uint32_t if
60579         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60580         2.5.1.
60581
60582 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60583
60584         * m4/jm-macros.m4: Sync from coreutils.
60585         (gl_MACROS): Check for mbrlen, for pathchk.
60586         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60587
60588 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60589
60590         * lib/xreadlink.c (MAXSIZE): New macro.
60591         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60592         size does not exceed MAXSIZE.  Avoid cast.
60593         As suggested by Mark D. Baushke in
60594         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60595         if readlink fails with buffer size just under MAXSIZE, try again
60596         with MAXSIZE.
60597
60598 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60601
60602 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60603         and  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60606         (get_date): Overparenthesize to avoid GCC warning.
60607
60608 2004-11-02  Bruno Haible  <bruno@clisp.org>
60609
60610         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60611         returns void.
60612
60613 2004-11-02  Bruno Haible  <bruno@clisp.org>
60614
60615         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60616         function returns void.
60617
60618 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60619
60620         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60621         fflush_unlocked, flockfile, funlockfile, funlockfile,
60622         fputs_unlocked, putc_unlocked.
60623
60624 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60625
60626         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60627         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60628         already declared.
60629
60630 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * modules/getdate (Files): Add doc/getdate.texi.
60633         (Depends-on): Add setenv, xalloc.
60634
60635 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60636
60637         * lib/getdate.y: Add support for TZ="foo" within a date string.
60638         Fix some bugs near time_t boundaries.  Reject dates with
60639         out-of-range components, e.g., "Sept 31".
60640         Include <stdlib.h>, "setenv.h", "xalloc.h".
60641         (ISDIGIT_LOCALE): Remove; unused.
60642         Note that the TZ and time functions used here are not reentrant.
60643         (mktime_ok, get_tz): New functions.
60644         (TZBUFSIZE): New constant.
60645         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60646         This requires that we sometimes generate our own TZ="XXX..." setting.
60647
60648 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60649
60650         * doc/getdate.texi: New file, from coreutils with modifications for
60651         the new TZ parsing.
60652
60653 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60654
60655         * lib/mktime.c (not_equal_tm): Remove redundant check.
60656
60657 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * modules/regex (lib_SOURCES): Add regex.c.
60660         Reported by James Youngman in
60661         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60662
60663 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60664
60665         * lib/getdate.y: Use Bison 1.875 features, and some minor
60666         code cleanups.  This change does not affect semantics.
60667         Don't include <stdlib.h>; no longer needed.
60668         Don't include unlocked-io.h; only the "#if TEST" code uses
60669         stdio, and performance isn't crucial there.
60670         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60671         Bison 1.875 features as described below.
60672         All uses of "PC." replaced by "pc->".
60673         (YYSTYPE): Add a forward declaration.
60674         (yylex, yyerror): Use full prototypes in forward decls.
60675         Use "%pure-parser" rather than obsolescent "%pure_parser".
60676         Use %parse-param and %lex-param instead of obsolescent
60677         YYPARSE_PARAM and YYLEX_PARAM.
60678         (meridian_table, month_and_day_table, time_units_table,
60679         relative_time_table, time_zone_table, military_table,
60680         lookup_zone, lookup_word, get_date):
60681         Use NULL instead of 0 where appropriate.
60682         (to_hour): Avoid abort (), to avoid a dependency on
60683         stdlib.h.
60684         (yyerror, yylex): Now accepts parser_control * arg.
60685         (main) [TEST]: Use '\0' rather than 0 for char.
60686
60687 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60688
60689         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60690
60691 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60692
60693         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60694         It's now the caller's responsibility to handle the case where
60695         !HAVE_GETPAGESIZE && !defined getpagesize.
60696
60697         * lib/mktime.c (leapyear): Arg is long int, not int.
60698
60699 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60702
60703 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60704
60705         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60706         missing.  Problem reported by James Youngman.
60707
60708 2004-10-16  Simon Josefsson  <jas@extundo.com>
60709
60710         * gnulib-tool: Fix comments.  Fix parse problem.
60711         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60712
60713 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60714
60715         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60716         implementation of getopt_long.  Problem reported by Alexander Taler in:
60717         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60718
60719 2004-10-15  Bruno Haible  <bruno@clisp.org>
60720
60721         * gnulib-tool: Untabify. Initialize supplied_libname.
60722         (func_usage): More homogenous output.
60723         (func_modules_transitive_closure, func_modules_to_filelist,
60724         func_emit_lib_Makefile_am): New functions.
60725         (func_import): New function, extracted from big case statement. Use
60726         func_get_license, func_modules_transitive_closure,
60727         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60728         opt_lgpl. Don't use test -a, as it's not portable.
60729         (func_create_testdir): Use func_modules_transitive_closure,
60730         func_modules_to_filelist, func_emit_lib_Makefile_am.
60731
60732 2004-10-15  Bruno Haible  <bruno@clisp.org>
60733
60734         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60735
60736 2004-10-15  Bruno Haible  <bruno@clisp.org>
60737
60738         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60739         the portions belonging to each module.
60740         Suggested by Derek Robert Price <derek@ximbiot.com>.
60741
60742 2004-10-12  Simon Josefsson  <jas@extundo.com>
60743
60744         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60745         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60746         to real functions.
60747
60748 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60749
60750         * modules/vsnprintf: New file.
60751
60752 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60753
60754         * m4/vsnprintf.m4: New file.
60755
60756 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60757
60758         * lib/vsnprintf.h: New file.
60759         * lib/vsnprintf.c: New file.
60760
60761 2004-10-11  Bruno Haible  <bruno@clisp.org>
60762
60763         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60764         vsnprintf.
60765
60766 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60769
60770 2004-10-07  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60773         fits into the provided buffer.
60774
60775 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60776
60777         * lib/diacrit.c, diacrit.h: Add GPL notice.
60778
60779         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60780         notice.
60781         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60782         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60783         This avoids a potential constant-folding bug.
60784
60785 2004-10-05  Bruno Haible  <bruno@clisp.org>
60786
60787         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60788         for the declaration of strsep.
60789
60790 2004-10-05  Bruno Haible  <bruno@clisp.org>
60791
60792         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60793
60794 2004-10-04  Simon Josefsson  <jas@extundo.com>
60795
60796         * modules/memmem: New file.
60797         * tests/test-memmem.c: New file.
60798         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60799
60800 2004-10-04  Simon Josefsson  <jas@extundo.com>
60801
60802         * m4/memmem.m4: New file.
60803
60804 2004-10-04  Simon Josefsson  <jas@extundo.com>
60805
60806         * lib/memmem.h: New file.
60807         * lib/memmem.c: New file, taken from glibc.
60808
60809 2004-10-04  Simon Josefsson  <jas@extundo.com>
60810
60811         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60812         '#ifdef USE_UNLOCKED_IO'.
60813
60814 2004-10-04  Simon Josefsson  <jas@extundo.com>
60815
60816         * config/srclist.txt: Add memmem from glibc.
60817
60818 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60819
60820         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60821
60822         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60823         modules/exclude, modules/getdate, modules/getline,
60824         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60825         modules/getusershell, modules/linebuffer, modules/md5,
60826         modules/mountlist, modules/posixtm, modules/readtokens,
60827         modules/readutmp, modules/regex, modules/sha1,
60828         modules/version-etc, modules/yesno:
60829         Remove dependency on unlocked-io.
60830
60831 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60834
60835         * m4/unlocked-io.m4: Add copyright notice.
60836         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60837
60838 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60839
60840         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60841         * lib/xmalloc.c (xmemdup): Likewise.
60842         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60843         XFREE): Remove these long-obsolescent macros.
60844         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60845         * lib/xstrdup.c: Remove.
60846
60847         * lib/regex.c (re_comp): Cast gettext return value to char *,
60848         Problem reported by Martin Neitzel via Mark D. Baushke.
60849
60850 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60853         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60854         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60855         regex.c, sha1.c, version-etc.c, yesno.c:
60856         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60857         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60858         the includer's responsibility.
60859
60860         Sync from coreutils.
60861
60862         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60863         points to the start of a string, as the C Standard says the
60864         resulting behavior is undefined.
60865
60866         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60867         simple -> simple_backups, numbered_existing ->
60868         numbered_existing_backups, numbered -> numbered_backups
60869         to avoid shadowing problems.  All uses changed.
60870         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60871         * lib/backupfile.c (check_extension, numbered_backup):
60872         Rename locals to avoid shadowing 'basename'.
60873         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60874         once.
60875
60876         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60877         * lib/.cvsignore: Add getopt.h.
60878
60879 2004-10-04  Bruno Haible  <bruno@clisp.org>
60880
60881         * modules/README: New file.
60882         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60883         not a module.
60884
60885 2004-10-02  Jim Meyering  <jim@meyering.net>
60886
60887         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60888
60889 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60890
60891         * modules/strsep: New file.
60892
60893 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60894
60895         * m4/strsep.m4: New file.
60896
60897 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60898
60899         * lib/strsep.h: New file.
60900         * lib/strsep.c: New file.
60901
60902 2004-10-01  Simon Josefsson  <jas@extundo.com>
60903
60904         * lib/snprintf.c (snprintf): Handle size==0.
60905
60906 2004-10-01  Simon Josefsson  <jas@extundo.com>
60907             Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60910         (snprintf): Declare 'args'.
60911
60912 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * lib/snprintf.c: Remove comments as to why each header is needed.
60915
60916 2004-10-01  Bruno Haible  <bruno@clisp.org>
60917
60918         * MODULES.html.sh: Add strsep.
60919
60920 2004-09-30  Simon Josefsson  <jas@extundo.com>
60921
60922         * modules/snprintf: New file.
60923
60924 2004-09-30  Simon Josefsson  <jas@extundo.com>
60925
60926         * m4/snprintf.m4: New file.
60927
60928 2004-09-30  Simon Josefsson  <jas@extundo.com>
60929
60930         * lib/snprintf.h, lib/snprintf.c: New files.
60931
60932 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60933
60934         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60935         (hol_entry_help): Never translate an empty string.
60936         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
60937         * lib/argp.h (OPTION_NO_TRANS): New option.
60938
60939 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60940
60941         * modules/argp (Maintainer): Replace Simon Josefsson
60942         by Sergey Poznyakoff.
60943
60944 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
60947         changes merged back into glibc.
60948
60949 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60950
60951         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
60952
60953 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60954
60955         * lib/xvasprintf.c: Include xalloc.h.
60956         (xvasprintf): Use xalloc_die, not xmalloc_die.
60957
60958 2004-09-29  Bruno Haible  <bruno@clisp.org>
60959
60960         * modules/alloca-opt: New file, derived from modules/alloca.
60961         * modules/allocsa: Depend on alloca-opt instead of alloca.
60962         * modules/setenv: Likewise.
60963         * modules/vasnprintf: Likewise.
60964         * MODULES.html.sh: Add alloca-opt.
60965
60966 2004-09-28  Simon Josefsson  <jas@extundo.com>
60967
60968         * gnulib-tool: New parameter --lgpl, to asseert that modules are
60969         LGPL, and to replace license template from GPL to LGPL.
60970
60971 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * modules/dummy: Change license to LGPL.
60974
60975 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
60978
60979 2004-09-24  Simon Josefsson  <jas@extundo.com>
60980
60981         * modules/minmax (License): Change from GPL to LGPL.
60982
60983 2004-09-23  Simon Josefsson  <jas@extundo.com>
60984
60985         * gnulib-tool (--import): Typo.
60986
60987 2004-09-23  Simon Josefsson  <jas@extundo.com>
60988
60989         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
60990
60991 2004-09-22  Bruno Haible  <bruno@clisp.org>
60992
60993         * modules/*: Add 'License' field.
60994         * gnulib-tool: Accept --extract-license option.
60995         (func_get_license): New function.
60996
60997 2004-09-21  Bruno Haible  <bruno@clisp.org>
60998
60999         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61000         Reported by Simon Josefsson.
61001
61002 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61005         gl_AC_TYPE_LONG_LONG.
61006
61007 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61008
61009         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61010
61011 2004-09-18  Simon Josefsson  <jas@extundo.com>
61012         and  Paul Eggert  <eggert@cs.ucla.edu>
61013
61014         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61015         calls with autoreconf.  Define GL_LIB.
61016
61017 2004-09-14  Karl Berry  <karl@gnu.org>
61018
61019         * config/srclist.txt: unsync setenv.c, sigh.
61020
61021 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61022
61023         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61024         Problem reported by Bruno Haible in:
61025         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61026
61027 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61028
61029         * config/srclist.txt: Comment out argp-pvh.c.
61030
61031 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61032
61033         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61034         in case some system header has #define'd it.  Problem reported by
61035         Soeren D. Schulze in
61036         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61037
61038 2004-09-09  Karl Berry  <karl@gnu.org>
61039
61040         * regex.[ch]: delete from the root.  These were supposed to be
61041                 synced with emacs cvs, but this has not happened for about
61042                 a year, and anyway nothing else uses emacs regex.[ch].
61043                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61044                 lib/regex[.ch] is untouched.
61045
61046 2004-09-09  Bruno Haible  <bruno@clisp.org>
61047
61048         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61049
61050 2004-09-09  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61053         modifications.
61054         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61055
61056 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61057
61058         * modules/xvasprintf: New file.
61059         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61060
61061 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61062
61063         * lib/xvasprintf.h: New file.
61064         * lib/xvasprintf.c: New file.
61065         * lib/xasprintf.c: New file.
61066
61067 2004-09-08  Bruno Haible  <bruno@clisp.org>
61068
61069         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61070
61071 2004-09-08  Bruno Haible  <bruno@clisp.org>
61072
61073         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61074         length is > INT_MAX.
61075         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61076         more.
61077
61078 2004-09-08  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/stdint_.h: New file, taken from GNU clisp.
61081
61082 2004-09-08  Bruno Haible  <bruno@clisp.org>
61083             Oskar Liljeblad  <oskar@osk.mine.nu>
61084
61085         * modules/stdint: New file.
61086         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61087
61088 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         Import from coreutils.
61091         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61092         strings on unbounded length.  alloca's performance benefits aren't
61093         that important here.
61094         (V_STRDUP): Remove.
61095         (parse_with_separator): New function, with most of the internals
61096         of the old parse_user_spec.  Allow user to omit both user and group,
61097         for compatibility with FreeBSD.
61098         Clone only the user name, not the entire spec.
61099         Do not set *uid, *gid unless entirely successful.
61100         Avoid memory leak in some failing cases.
61101         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61102         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61103         (parse_user_spec): Rewrite to use parse_with_separator.
61104
61105 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * modules/userspec: Don't depend on alloca.
61108
61109 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61110
61111         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61112
61113 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61114
61115         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61116         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61117         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61118
61119 2004-08-16  Simon Josefsson  <jas@extundo.com>
61120
61121         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61122         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61123         Add --dry-run for --import.
61124         Let user provided command line parameters override configure.ac
61125         settings.
61126
61127 2004-08-12  Simon Josefsson  <jas@extundo.com>
61128
61129         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61130         as discussed with Paul Eggert in threads rooted at
61131         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61132         and
61133         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61134         Before, the test was empty, and relied on ELIDE_CODE in source
61135         code.)
61136         (gl_PREREQ_GETOPT): New macro.
61137         (gl_GETOPT): Use them.
61138
61139 2004-08-12  Simon Josefsson  <jas@extundo.com>
61140
61141         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61142         * lib/getopt_.h: Renamed from getopt.h.
61143
61144 2004-08-12  Simon Josefsson  <jas@extundo.com>
61145
61146         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61147         Change default library name from libfoo to libgnu.
61148         Now, if you have a configure.ac that says:
61149                 gl_SOURCE_BASE(gl)
61150                 gl_M4_BASE(gl/m4)
61151                 gl_MODULES(error getopt etcetera)
61152                 gl_INIT
61153         you can import all you need by running:
61154                 ../gnulib/gnulib-tool --import
61155
61156         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61157         (Makefile.am): Rewrite, use logic from argz.
61158         (Include): Use <getopt.h> instead of "getopt.h".
61159
61160 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * modules/argp (Files): Add m4/unlocked-io.m4.
61163         (Depends-on): Add extensions.
61164
61165 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61166
61167         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61168         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61169         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61170         Check for program_invocation_name, program_invocation_short_name,
61171         flockfile, funlockfile, features.h, _getopt_long_only_r.
61172
61173 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61176         its complicated substitute.
61177         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61178         and program_invocation_name.
61179         (__argp_basename) [!_LIBC]: Remove; the only use was
61180         replaced by its body.
61181         (__argp_short_program_name): Change condition from
61182         !defined __argp_short_program_name to
61183         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61184         to match argp-namefrob.h.
61185         (__argp_failure): Don't assume strerror_r returns char *.
61186         * lib/argp-parse.c (N_): Define unconditionally.
61187         (argp_default_options): Fill out initializers with 0 to avoid
61188         gcc warnings.
61189
61190 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61193         getopt1.c.
61194
61195 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         Merge from coreutils.
61198
61199         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61200
61201         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61202         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61203
61204 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         Merge from coreutils.
61207
61208         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61209         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61210         for Reliant Unix 5.43.
61211
61212         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61213         (union fooround): Use uintmax_t, not long int.
61214         The rest is a merge from libc:
61215         [defined _LIBC]: Include <shlib-compat.h>.
61216         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61217
61218         * lib/settime.c (settime): Recode to avoid warning with
61219         Sun Forte C 6U2.
61220
61221         * lib/strverscmp.c: Convert to UTF-8.
61222
61223 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61226         m4/uintmax_t.m4.
61227
61228 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61229
61230         * modules/xalloc-die: New file.
61231         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61232
61233         * modules/md5 (Files): Add m4/uint32_t.m4.
61234         * modules/sha1: Renamed from modules/sha.
61235         (Files):
61236         Rename lib/sha.h to lib/sha1.h.
61237         Rename lib/sha.c to lib/sha1.c.
61238         Rename m4/sha.m4 to m4/sha1.m4.
61239         (lib_SOURCES): Likewise.
61240         (configure.ac): Rename gl_SHA to gl_SHA1.
61241         (Include): sha.h -> sha1.h.
61242
61243 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61246         * m4/sha1.m4: Renamed from sha.m4.
61247         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61248
61249 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * lib/obstack.h (obstack_empty_p):
61252         Don't assume that chunk->contents is suitably aligned.
61253         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61254         Likewise. Problem reported by Benno in
61255         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61256
61257         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61258         readable.  This could be improved further but it'd take some work.
61259
61260 2004-08-08  Simon Josefsson  <jas@extundo.com>
61261
61262         * modules/xgethostname (Depends-on): Remove exit and error (not
61263         used).
61264
61265         * modules/getpass-gnu: Add getpass.h.
61266         (Depends-on): Add stdbool.
61267         * modules/getpass: Add getpass.h.
61268
61269 2004-08-08  Simon Josefsson  <jas@extundo.com>
61270
61271         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61272         Check getpass declaration.
61273
61274 2004-08-08  Simon Josefsson  <jas@extundo.com>
61275
61276         * lib/xgethostname.c: Don't include error.h (not used).
61277
61278         * lib/getpass.h: Add.
61279         * lib/getpass.c: Include getpass.h first.
61280
61281 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61282
61283         * lib/xalloc-die.c: New file.
61284         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61285         All uses removed.
61286         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61287         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61288         xalloc-die.c.
61289         (_, N_, xalloc_die): Move to xalloc-die.c.
61290         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61291         so that we needn't mess with xalloc_msg_memory_exhausted.
61292
61293         * lib/sha1.h: Renamed from sha.h.
61294         (SHA1_H): Renamed from _SHA_H.
61295         (sha1_ctx): Renamed from sha_ctx.
61296         (sha1_init_ctx): Renamed from sha_init_ctx.
61297         (sha1_process_block): Renamed from sha_process_block.
61298         (sha1_process_bytes): Renamed from sha_process_bytes.
61299         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61300         (sha1_read_ctx): Renamed from sha_read_ctx.
61301         (sha1_stream): Renamed from sha_stream.
61302         (sha1_buffer): Renamed from sha_buffer.
61303         * lib/sha1.c: Likewise; renamed from sha.c.
61304         Do not include <sys/types.h>.
61305         Include <stddef.h> rather than <stdlib.h>.
61306
61307 2004-08-08  Bruno Haible  <bruno@clisp.org>
61308
61309         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61310         FILESYSTEM_PREFIX_LEN.
61311         * lib/progreloc.c: Likewise.
61312         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61313
61314 2004-08-06  Simon Josefsson  <jas@extundo.com>
61315
61316         * modules/progname (Depends-on): Don't depend on stdbool.
61317
61318 2004-08-06  Simon Josefsson  <jas@extundo.com>
61319
61320         * modules/getsubopt: New file.
61321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61322         getsubopt.
61323
61324 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         More merge from coreutils.
61327
61328         * m4/utimens.m4, m4/utimecmp.m4: New files.
61329         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61330         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61331         prereq.m4, sha.m4: Import changes from coreutils.
61332
61333 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         More merge from coreutils.
61336         * modules/raise, modules/readtokens0, modules/utimens:
61337         * modules/utimecmp, module/xnanosleep: New files.
61338         * modules/strftime: Add lib/strftime.h.
61339         Change include from <time.h> to "strftime.h".
61340         * modules/yesno: Add lib/yesno.h.
61341         * modules/backupfile: Remove lib/addext.c.
61342         * modules/euidaccess: Add stat-macros.h.
61343         * modules/canonicalize, modules/euidaccess,
61344         modules/filemode, modules/lchown, modules/makepath,
61345         modules/rmdir, modules/stat: Likewise.
61346
61347 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         Merge from tar.
61350         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61351         SIZE_MAX is a valid preprocessor constant.
61352         (__argp_basename): Change from "#ifndef _LIBC"
61353         to "#ifndef __argp_short_program_name", so that
61354         we don't compile these functions for tar.
61355
61356         More merges from coreutils.
61357         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61358         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61359         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61360         * lib/addext.c: Remove; no longer needed.
61361         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61362         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61363         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61364         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61365         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61366         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61367         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61368         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61369         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61370         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61371         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61372         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61373         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61374         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61375         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61376         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61377         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61378         Import changes from coreutils.
61379
61380 2004-08-05  Simon Josefsson  <jas@extundo.com>
61381
61382         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61383
61384 2004-08-05  Simon Josefsson  <jas@extundo.com>
61385
61386         * m4/getsubopt.m4: New file.
61387
61388 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         Merge from coreutils.
61391
61392         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61393         * m4/getcwd-path-max.m4: New files.
61394
61395         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61396         FILESYSTEM_PREFIX_LEN ->
61397         FILE_SYSTEM_PREFIX_LEN.
61398         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61399         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61400         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61401         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61402
61403         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61404         prerequisite modules now handle the DOS stuff.
61405         Don't check for unistd.h.
61406
61407 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         Merge from coreutils.
61410
61411         * lib/.gdb-history: Remove; this doesn't belong here.
61412
61413         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61414         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61415         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61416         * lib/getcwd.c: New files.
61417
61418         * lib/dirname.h: Include <stdbool.h>.
61419         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61420         for consistency with POSIX terminology.  All uses changed.
61421         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61422         (strip_trailing_slashes): Use bool for booleans.
61423         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61424
61425         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61426         sometimes returns a positive errno value even when it succeeds.
61427         (print_errno_message) [!LIBC]: Fall back on strerror if
61428         __strerror_r fails.
61429
61430         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61431         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61432         (longest_relative_suffix): New function.
61433         (path_concat): Use it.  Assume first argument is not NULL.
61434         Port to DOS.  Omit redundant separators.
61435         Report an error instead of returning NULL.
61436         Use mempcpy instead of memcpy.
61437         (xpath_concat): Remove: not declared or used.
61438
61439         * lib/same.h: Include <stdbool.h>
61440         (same_name): Return bool, not int.
61441         * lib/same.c (same_name): Likewise.
61442         (errno): Don't declare; we assume C89 or better now.
61443
61444         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61445         if not already defined.
61446
61447         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61448         * lib/dup-safer.c (errno): Likewise.
61449
61450 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61451
61452         Merge from coreutils.
61453         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61454         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61455         * modules/path-concat: Don't depend on strdup.
61456
61457 2004-08-03  Simon Josefsson  <jas@extundo.com>
61458
61459         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61460         * lib/progname.h: Don't include stdbool.h.
61461
61462 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61465         * MODULES.html.sh (func_all_modules): Remove fatal.
61466
61467 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61470
61471 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61472
61473         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61474         working.
61475
61476 2004-08-02  Simon Josefsson  <jas@extundo.com>
61477
61478         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61479         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61480         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61481
61482 2004-08-01  Simon Josefsson  <jas@extundo.com>
61483
61484         * lib/xgetdomainname.c: Include stdlib.h, for free().
61485
61486 2004-07-19  Bruno Haible  <bruno@clisp.org>
61487
61488         * MODULES.html.sh (func_all_modules): Add dummy.
61489
61490 2004-07-16  Simon Josefsson  <jas@extundo.com>
61491
61492         * modules/dummy: New file.
61493
61494 2004-07-16  Simon Josefsson  <jas@extundo.com>
61495
61496         * lib/dummy.c: New file.
61497
61498 2004-07-16  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/backupfile.h: Add extern "C" for C++.
61501         * lib/closeout.h: Likewise.
61502         * lib/copy-file.h: Likewise.
61503         * lib/findprog.h: Likewise.
61504         * lib/full-write.h: Likewise.
61505         * lib/pathname.h: Likewise.
61506         * lib/progname.h: Likewise.
61507         * lib/stpcpy.h: Likewise.
61508         * lib/stpncpy.h: Likewise.
61509         * lib/strcase.h: Likewise.
61510         * lib/strstr.h: Likewise.
61511         * lib/xalloc.h: Likewise.
61512
61513         * lib/mbswidth.h: Add extern "C" for C++.
61514         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61515
61516 2004-07-13  Robert Millan  <robertmh@gnu.org>
61517
61518         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61519
61520 2004-07-09  Simon Josefsson  <jas@extundo.com>
61521
61522         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61523         failed without this.)
61524
61525 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61526
61527         * modules/chown (Files): Add lib/fchown-stub.c, since
61528         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61529
61530 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         * lib/fchown-stub.c: New file.
61533
61534 2004-06-24  Jim Meyering  <jim@meyering.net>
61535
61536         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61537
61538 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61539
61540         * modules/argz: Omit "#include".
61541
61542         * MODULES.html.sh (func_all_modules): Add calloc, to match
61543         2004-06-01 addition of calloc module.
61544
61545 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         * m4/argz.m4: New file, which is autoupdated from libtool.
61548
61549 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61550
61551         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61552         libtool.
61553
61554 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61555
61556         * config/srclist-update: Don't insist on "USA." before the
61557         close-comment, as libtool omits the period and puts the */ on a
61558         separate line.
61559         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61560         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61561
61562 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61563
61564         * modules/argz: New file.
61565         * MODULES.html.sh (func_all_modules): Add argz.
61566
61567 2004-06-12  Jim Meyering  <jim@meyering.net>
61568         and  Paul Eggert  <eggert@cs.ucla.edu>
61569
61570         * modules/hash (Files): Add lib/xalloc.h.
61571         * modules/pipe (Depends-on): Add wait-process.
61572         * modules/stat (Depends-on): Add xalloc.
61573         * modules/userspec (Files): Add lib/userspec.h.
61574         * modules/xstrto
61575
61576         Upgrade from gettext-0.13.
61577         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61578         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61579         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61580
61581 2004-06-10  Jim Meyering  <jim@meyering.net>
61582
61583         * lib/calloc.c: New file.
61584
61585 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         * lib/getdate.y (yylex): Allow space between sign and number.
61588         Problem reported by Dan Jacobson.
61589
61590 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         Merge from coreutils CVS.
61593
61594         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61595         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61596         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61597         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61598         xstrtol.m4: Fix copyright date and/or serial number.
61599
61600         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61601         See if we need an fchown replacement.
61602         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61603         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61604         and use the replacement function if we detect either defect.
61605
61606         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61607         gl_UTIMECMP.
61608
61609 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61610         and  Jim Meyering  <jim@meyering.net>
61611
61612         Merge from coreutils CVS.
61613
61614         * lib/stat-macros.h: New file, with contents from file-type.h
61615         and coreutils' system.h.
61616         * lib/file-type.c: Include "stat-macros.h".
61617         * lib/file-type.h (file_type): Move all macro definitions to new file,
61618         stat-macros.h.
61619
61620         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61621         Wrap old code with this conditional.
61622         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61623         function that does not dereference symlinks.
61624         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61625
61626         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61627         dependency problems.
61628         (xreadlink): Accept new arg SIZE, for efficiency.
61629         All decls and uses changed.
61630         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61631
61632         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61633         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61634
61635         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61636         sysexits.h.
61637
61638 2004-06-01  Jim Meyering  <jim@meyering.net>
61639
61640         * m4/calloc.m4: New file.
61641
61642 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61645         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61646         Also, fix a typo in a diagnostic.
61647
61648 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61649
61650         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61651         or AC_FUNC_REALLOC.
61652
61653 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61656         macros to be defined.
61657         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61658         the allocator returns NULL because the requested size is zero.
61659
61660 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61663         var.  Add comment explaining why libc still defines it.  This
61664         merges the following patch from glibc:
61665         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61666
61667 2004-05-20  Andreas Schwab  <schwab@suse.de>
61668
61669         * m4/free.m4: Replace free if it not known to work, not the other
61670         way round.
61671
61672 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61675         present in glibc since revision 1.1 of this file.
61676         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61677         obstack_alignment_mask, obstack_alloc, obstack_base,
61678         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61679         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61680         obstack_grow0, obstack_init, obstack_int_grow,
61681         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61682         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61683         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61684         nonexistent functions.
61685
61686 2004-05-18  Karl Berry  <karl@gnu.org>
61687
61688         * config/srclist.txt: break link for vasnprintf.c.
61689
61690 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         Port obstack to the AS/400, where pointers are 16 bytes wide and
61693         you cannot cast an integer to a valid pointer.  This patch is
61694         currently waiting to be integrated into glibc; see
61695         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61696
61697         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61698         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61699         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61700         (struct obstack): temp member is now a union of a pointer and
61701         an integer, instead of an integer.  All integer uses changed.
61702         This does not affect the physical layout of struct obstack,
61703         except on hosts (like the AS/400) where the size or alignment of
61704         void * is greater than that of ptrdiff_t.
61705         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61706         __STDC__)]: Store temporary in pointer member of union, not
61707         integer member.
61708         * lib/obstack.c: Include <stddef.h>, for offsetof.
61709         (struct fooalign): Remove; it doesn't need a name.
61710         (union fooround): Change double to long double, and add void *.
61711         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61712         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61713         not a macro.  Hence the values are always int; so remove all
61714         casts-to-int in uses.
61715
61716 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61719         we can get this patch merged into glibc.
61720
61721 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61722             Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * m4/argp: Depend on alloca.
61725
61726 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61727             Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61730         freecoding.
61731
61732 2004-05-17  Bruno Haible  <bruno@clisp.org>
61733
61734         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61735         precision that consists of a '.' followed by an empty digit string.
61736         Patch by Tor Lillqvist <tml@iki.fi>.
61737
61738 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61741         for backward compatibility with older code.  We need our own
61742         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61743         it under some other name, and our alloca.h will define it.
61744
61745 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61746             Derek Price  <derek@ximbiot.com>
61747
61748         * lib/alloca.c: Include <alloca.h>, to get our interface.
61749         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61750         include <alloca.h> first.  Use C89 prototype for alloca; this
61751         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61752         Use #elif for simplicity, since we can assume C89 now.
61753         Don't try to source the system alloca.h since it will not be found
61754         and to prevent recursively including its replacement.
61755         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61756         * lib/regex.c: Likewise.
61757
61758 2004-05-16  Derek Price  <derek@ximbiot.com>
61759             Paul Eggert  <eggert@cs.ucla.edu>
61760
61761         getline cleanup.  This changes the getndelim2 API: both order of
61762         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61763         no delimiter).
61764
61765         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61766         interface does that.
61767         (getline): Always use getdelim, so that we don't have two
61768         copies of this code.
61769         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61770         if available.
61771         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61772         (GETNDELIM2_MAXIMUM): New macro.
61773         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61774         instead of the old practice of delim2==0.  All callers changed.
61775         Return -1 on overflow, instead of returning junk.
61776         Do not set *linesize unless allocation succeeds.
61777         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61778         that we include sys/types.h.
61779         * lib/getnline.h: Likewise.
61780         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61781         (getndelim2): Reorder arguments.
61782         * lib/getnline.c (getnline, getndelim):
61783         Don't discard the NMAX argument.
61784         (getnline): Invoke getndelim, to avoid code duplication.
61785         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61786         of (size_t) -1 by callers of the getnline family.
61787
61788 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61791         Check for gettimeofday.
61792         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61793         Check for settimeofday, stime.
61794
61795 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * lib/nanosleep.c (suspended): Change its type from int to
61798         sig_atomic_t volatile.
61799         (first_call): Make it private to rpl_nanosleep, and have it
61800         be zero initially as that's a bit faster.
61801         (my_usleep): Round up fractional times instead of truncating them,
61802         as this is the usual meaning for 'sleep'.
61803
61804         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61805         doesn't work.
61806         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61807         (ENOSYS): Define if not defined.
61808         (settime): Fall back on stime if it exists and settimeofday fails.
61809         But don't bother with fallbacks if a method fails with errno == EPERM.
61810
61811 2004-05-11  Jim Meyering  <jim@meyering.net>
61812
61813         Prior to this change, the save_cwd caller required read access to the
61814         current directory on most systems (ones with the fchdir function).
61815
61816         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61817         fails, try write-only, and finally, resort to using xgetcwd.
61818
61819 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * lib/obstack.c, obstack.h: Import changes from libc.
61822
61823 2004-04-28  Bruno Haible  <bruno@clisp.org>
61824
61825         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61826         also implicitly appends .exe to executables.
61827         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61828         accepts Windows pathnames.
61829         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61830         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61831         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61832         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61833         Reported by Derek Robert Price <derek@ximbiot.com>.
61834
61835 2004-04-21  Karl Berry  <karl@gnu.org>
61836
61837         * config/srclist.txt (localcharset.c): break sync.
61838
61839 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61840
61841         * m4/host-os.m4: Add a copyright notice.
61842
61843 2004-04-20  Jim Meyering  <jim@meyering.net>
61844
61845         Change UTILS_ to gl_ in AC_DEFINE'd names.
61846         Change utils_- and jm_-prefixed variables, too.
61847         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61848         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61850
61851         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61852         Don't emit trailing blanks.
61853         Also rename jm_-prefixed variables to have gl_ prefix.
61854
61855         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61856         Also rename jm_-prefixed variables to have gl_ prefix.
61857
61858         * m4/jm-macros.m4: Reflect the renamings.
61859         * m4/prereq.m4: Likewise.
61860
61861 2004-04-20  Jim Meyering  <jim@meyering.net>
61862
61863         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61864         memory.
61865
61866 2004-04-20  Jim Meyering  <jim@meyering.net>
61867             Bruno Haible  <bruno@clisp.org>
61868
61869         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61870         memory when realloc fails.
61871
61872 2004-04-19  Jim Meyering  <jim@meyering.net>
61873
61874         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61875         now that readutmp.c may call `free (0)'.
61876
61877 2004-04-19  Bruno Haible  <bruno@clisp.org>
61878
61879         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61880         * m4/inttypes_h.m4: Likewise.
61881         * m4/stdint_h.m4: Likewise.
61882         * m4/intmax_t.m4: Likewise.
61883         * m4/uintmax_t.m4: Likewise.
61884
61885 2004-04-18  Jim Meyering  <jim@meyering.net>
61886
61887         * m4/prereq.m4: Don't forbid jm_ prefix.
61888
61889         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61890         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61891         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61892         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61893         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61894         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61895         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61896         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61897         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61898         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61899         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61900         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61901         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61902         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61903         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61904         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61905         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61906         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61907         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61908
61909 2004-04-18  Jim Meyering  <jim@meyering.net>
61910
61911         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61912         failure, don't leak memory and do call END_UTMP_ENT.
61913
61914 2004-04-16  Jim Meyering  <jim@meyering.net>
61915
61916         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61917         coreutils' stat program.
61918         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61919
61920 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61921
61922         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61923         C89.
61924         (CHAR_BIT): Remove, since we assume C89.
61925         Include <stdint.h> if available, as per current Autoconf CVS advice.
61926
61927 2004-03-31  Jim Meyering  <jim@meyering.net>
61928
61929         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61930         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61931         * m4/xalloc.m4: Likewise.
61932
61933 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61934
61935         Merge from coreutils.
61936
61937         * m4/inttostr.m4: New file.
61938         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
61939         Require AM_STDBOOL_H and gl_TIMESPEC instead.
61940         Require gl_CLOCK_TIME.
61941         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
61942
61943 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61944
61945         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
61946         not bool, to be more consistent with Unix conventions.
61947         Suggested by Bruno Haible.
61948
61949         Merge from coreutils.
61950
61951         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
61952         * lib/umaxtostr.c: New files.
61953
61954         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
61955         the usual <time.h> dance.
61956         (get_date): Change signature to support fractional time stamps.
61957         All callers changed.
61958         * lib/getdate.y: Include "getdate.h" first, as we can now
61959         assume C89 and don't need to worry about 'const'.
61960         Similarly, include "unlocked-io.h" near start, not in middle.
61961         Include <limits.h>.
61962         (textint.value): Use long int rather than int.
61963         (textint.digits): Use size_t rather than int.
61964         (BILLION, LOG10_BILLION): New constants.
61965         (parser_control): New member rel_ns.  Members day_ordinal,
61966         time_zone, month, day, hour, minutes, rel_year, rel_month,
61967         rel_day, rel_hour, rel_minutes, rel_seconds
61968         are now long int, not int.  Member seconds is now struct timespec,
61969         not int.  New member timespec_seen.  Members dates_seen, days_seen,
61970         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
61971         not int.
61972         (%union.intval): Now long int, not int.
61973         New member timespec.
61974         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
61975         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
61976         (spec): Now is a timespec or an item list.
61977         (timespec, items): New nonterminals.
61978         (time, rel, relunit, number, get_date):
61979         Add support for fractional seconds.
61980         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
61981         (gmtime, localtime, mktime): Remove decls; not needed with C89.
61982         (to_hour): First arg is now long int, not int.
61983         (to_year): Returns long int, not int.
61984         Don't treat year -70 like 70.
61985         (tm_diff): Returns long int, not int.
61986         (lookup_word): Use bool instead of int when appropriate.
61987         (yylex): Use size_t for count, not int.
61988         Detect overflow when parsing large integer constants.
61989         Add support for fractions.
61990         (get_date): Make pointers 'const' if possible.
61991         Use more-portable code to detect integer overflow.
61992         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
61993         Don't use ctime; it's not reliable if the year has >4 digits.
61994
61995         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
61996         This is for compatibility with BSD.
61997
61998         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
61999         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62000         From coreutils' system.h.
62001
62002         * lib/userspec.c: Don't include "posixver.h".
62003         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62004         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62005         compatible extension.  Simplify code by removing a boolean int
62006         that was always nonzero if a string was nonnull.
62007
62008 2004-03-30  Jim Meyering  <jim@meyering.net>
62009
62010         Merge from coreutils.
62011
62012         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62013         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62014         on some systems one must include <grp.h> before it.
62015         Reported by Christian Krackowizer.
62016
62017 2004-03-30  Jim Meyering  <jim@meyering.net>
62018
62019         Merge from coreutils.
62020
62021         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62022
62023         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62024         an empty input stream.
62025
62026         * lib/readtokens.c: Include <stdbool.h>.
62027         (readtoken): Use `size_t' rather than int/long.
62028         All callers adjusted.
62029         Use `bool' rather than `int' where appropriate.
62030         Use memset rather than an explicit loop.
62031         Use x2nrealloc rather than xrealloc.
62032         Allow the use of `\0' as a delimiter.
62033         (readtokens): Likewise.
62034         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62035
62036 2004-03-30  Jim Meyering  <jim@meyering.net>
62037
62038         * m4/realloc.m4: Remove file, since now it does no more than
62039         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62040         the `configure.ac' section of module/realloc.
62041         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62042
62043 2004-03-30  Bruno Haible  <bruno@clisp.org>
62044
62045         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62046         nonnull.
62047
62048 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62049
62050         Merge changes to getloadavg.c from coreutils and Emacs.
62051
62052         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62053         Define to an expression, not to the empty string.
62054         Include cloexec.h and xalloc.h.
62055         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62056         Use set_cloexec_flag rather than rolling our own.
62057         * lib/cloexec.c, lib/cloexec.h: New files.
62058
62059 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62060
62061         * m4/cloexec.m4: New file.
62062
62063 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62064
62065         * lib/getopt.h: Sync with libc CVS.
62066
62067 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62068             Bruno Haible  <bruno@clisp.org>
62069
62070         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62071         mbswidth.
62072
62073 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62074             Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/mbswidth.h: Include <wchar.h> only if
62077         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62078         <wchar.h>.
62079         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62080
62081 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62082
62083         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62084         Sync with libc CVS.
62085         * lib/getopt_int.h: New file, also synced from libc.
62086
62087 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62088
62089         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62090         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62091         Bring back getopt.c, getopt.h, getopt1.c.
62092
62093 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62094
62095         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62096         All uses changed.  Check for sa_sigaction member; this fixes
62097         a bug first reported by Jason Andrade in
62098         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62099
62100 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62101
62102         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62103         '#if' expressions.  Unlike the code it replaces, it does not
62104         depend on (defined _SC_PAGESIZE).  However, it does depend on
62105         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62106         first reported by Jason Andrade in
62107         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62108
62109 2004-02-25  Simon Josefsson  <jas@extundo.com>
62110
62111         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62112
62113 2004-02-25  Simon Josefsson  <jas@extundo.com>
62114
62115         * lib/strdup.h: New file.
62116         * lib/strdup.c: Include it.
62117         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62118         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62119
62120 2004-02-23  Karl Berry  <karl@gnu.org>
62121
62122         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62123         (from fencepost.gnu.org:/gd/gnuorg).
62124
62125 2004-02-23  Karl Berry  <karl@gnu.org>
62126
62127         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62128         * config/srclist.txt: add maintain/standards documents.
62129
62130 2004-02-18  Bruno Haible  <bruno@clisp.org>
62131
62132         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62133         Reported by Derek Robert Price <derek@ximbiot.com>.
62134
62135 2004-02-16  Karl Berry  <karl@gnu.org>
62136
62137         * config/mkinstalldirs, install-sh: update from automake.
62138
62139 2004-02-06  Karl Berry  <karl@gnu.org>
62140
62141         * m4/po.m4: update from gettext 0.14.1.
62142
62143 2004-02-06  Karl Berry  <karl@gnu.org>
62144
62145         * lib/config.charset: update from gettext 0.14.1.
62146
62147 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62148
62149         Add comments and code, prompted by suggestions from Bruno Haible
62150         for sh-quote.
62151         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62152         describing the enum quoting_style values.
62153         * lib/quotearg.c (quotearg_alloc): New function.
62154         (quotearg_buffer_restyled): Treat lone { and } as special.
62155         Treat = as special.  Work around bug with older shells
62156         that "see" a '\' that is really the 2nd byte of a multibyte char.
62157         Quote empty string with shell_quoting_style.
62158
62159 2004-02-03  Bruno Haible  <bruno@clisp.org>
62160
62161         * m4/pipe.m4: New file, from GNU gettext.
62162
62163 2004-02-03  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/pipe.h: New file, from GNU gettext.
62166         * lib/pipe.c: New file, from GNU gettext.
62167
62168 2004-01-27  Bruno Haible  <bruno@clisp.org>
62169
62170         * m4/execute.m4: New file, from GNU gettext.
62171
62172 2004-01-27  Bruno Haible  <bruno@clisp.org>
62173
62174         * lib/execute.h: New file, from GNU gettext.
62175         * lib/execute.c: New file, from GNU gettext.
62176         * lib/w32spawn.h: New file, from GNU gettext.
62177
62178 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62179
62180         Merge from diffutils.
62181
62182         * lib/file-type.c (file_type): Add typed memory objects.
62183         * lib/file-type.h (S_TYPEISTMO): New macro.
62184
62185         * lib/c-stack.h (c_stack_action): Remove argv argument.
62186         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62187         (die): Don't calculate message unless segv_action returns.
62188         (get_stack_location, min_address_from_argv, max_address_from_argv,
62189         volatile stack_base, volatile_stack_size): Remove.
62190         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62191         that every segmentation violation is a stack overflow.  (Ouch!)
62192         See Debian bug 136249 (still outstanding) for more info about why
62193         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62194
62195 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62196
62197         Exit-status fix from coreutils.
62198
62199         Use exit_failure consistently in place of EXIT_FAILURE,
62200         so that program exit statuses are consistent on failure.
62201
62202         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62203         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62204         * lib/argmatch.h: Comment fix to match the above.
62205         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62206         Now a macro referring to exit_failure, instead of a separate
62207         variable.  Include "exitfail.h" to get it.
62208         * lib/xstrtol.h: Include "exitfail.h".
62209         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62210
62211         * lib/long-options.c (parse_long_options): Use prototype
62212         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62213         for clarity.
62214
62215 2004-01-21  Jim Meyering  <jim@meyering.net>
62216
62217         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62218         so as not to conflict with a different-sized __mktime_internal
62219         function in GNU libc.
62220         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62221         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62222
62223 2004-01-20  Karl Berry  <karl@gnu.org>
62224
62225         * config/config.guess: update from config.
62226
62227         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62228
62229 2004-01-20  Bruno Haible  <bruno@clisp.org>
62230
62231         Safer stack allocation.
62232         * lib/setenv.c: Include allocsa.h.
62233         (alloca): Remove fallback definition.
62234         (freea): Remove macro.
62235         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62236         instead of freea.
62237
62238 2004-01-20  Bruno Haible  <bruno@clisp.org>
62239
62240         * m4/eealloc.m4: New file, from GNU gettext.
62241
62242 2004-01-20  Bruno Haible  <bruno@clisp.org>
62243
62244         * m4/allocsa.m4: New file, from GNU gettext.
62245
62246 2004-01-20  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/xallocsa.h: New file, from GNU gettext.
62249         * lib/xallocsa.c: New file, from GNU gettext.
62250
62251 2004-01-20  Bruno Haible  <bruno@clisp.org>
62252
62253         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62254
62255 2004-01-20  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62258         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62259         specially.
62260
62261 2004-01-20  Bruno Haible  <bruno@clisp.org>
62262
62263         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62264         patch.
62265
62266 2004-01-20  Bruno Haible  <bruno@clisp.org>
62267
62268         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62269
62270 2004-01-20  Bruno Haible  <bruno@clisp.org>
62271
62272         * lib/eealloc.h: New file.
62273
62274 2004-01-20  Bruno Haible  <bruno@clisp.org>
62275
62276         * lib/binary-io.h: Avoid warnings on Cygwin.
62277
62278 2004-01-20  Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/allocsa.h: New file, from GNU gettext.
62281         * lib/allocsa.c: New file, from GNU gettext.
62282
62283 2004-01-18  Karl Berry  <karl@gnu.org>
62284
62285         * doc/gpl.texi, doc/lgpl.texi: new files.
62286
62287 2004-01-18  Karl Berry  <karl@gnu.org>
62288
62289         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62290         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62291
62292 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62293
62294         Merge from coreutils.
62295
62296         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62297         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62298         (gl_DEFAULT_POSIX2_VERSION): Move
62299         the documentation from 'configure' into 'config.hin',
62300         so that 'configure --help' isn't burdened by it and
62301         we don't have to worry about its formatting there.
62302         Reword the documentation so that it's more succinct
62303         and can be run together into a single paragraph.
62304         * m4/same.m4 (gl_SAME): Check for pathconf.
62305
62306 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62307
62308         Merge from coreutils.
62309
62310         * lib/posixver.c: Include posixver.h.
62311
62312         * lib/same.c: Include <stdbool.h>, <limits.h>.
62313         (_POSIX_NAME_MAX): Define if not defined.
62314         (MIN): New macro.
62315         (same_name): If file names are silently truncated, report
62316         that the file names are the same if they are the same after
62317         the silent truncation.
62318
62319         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62320         conversion function.
62321         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62322         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62323         longer needed.
62324
62325 2004-01-15  Jim Meyering  <jim@meyering.net>
62326
62327         Merge from coreutils.
62328
62329         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62330         if no library is required.
62331         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62332         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62333         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62334         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62335         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62336         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62337         value, $ac_cv_search_crypt, if it's "none required".
62338         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62339         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62340         not gl_FUNC_GETLOADAVG.
62341         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62342         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62343
62344 2004-01-15  Jim Meyering  <jim@meyering.net>
62345
62346         Merge from coreutils.
62347
62348         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62349         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62350         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62351
62352         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62353         optional configure-time default.
62354
62355         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62356
62357         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62358
62359 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62360
62361         Merge from coreutils.
62362
62363         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62364         value, $ac_cv_search_nanosleep, if it's "none required".
62365
62366 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62367
62368         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62369         with like-named macro in fnmatch.c.
62370         (EXT): Use an internal constant instead.
62371
62372         Merge fnmatch patches from glibc.
62373         * lib/fnmatch.c (mbsinit): Remove define.
62374         Add libc_hidden_ver (__fnmatch, fnmatch).
62375         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62376         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62377
62378 2004-01-14  Karl Berry  <karl@gnu.org>
62379
62380         * config/install-sh: update from automake.
62381
62382 2004-01-13  Karl Berry  <karl@gnu.org>
62383
62384         * config/install-sh: update from automake.
62385
62386 2004-01-09  Karl Berry  <karl@gnu.org>
62387
62388         * config/install-sh: update from automake.
62389
62390 2004-01-05  Karl Berry  <karl@gnu.org>
62391
62392         * config/config.{sub,guess}: update from config.
62393
62394 2003-12-31  Karl Berry  <karl@gnu.org>
62395
62396         * config/depcomp: update from automake.
62397
62398 2003-12-14  Karl Berry  <karl@gnu.org>
62399
62400         * lib/config.charset: update from gettext-runtime.
62401
62402 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62403
62404         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62405         Bug reported by Alfred M. Szmidt.
62406
62407 2003-12-03  Bruno Haible  <bruno@clisp.org>
62408
62409         * m4/gettext.m4: Upgrade from gettext-0.13.
62410         * m4/po.m4: Upgrade from gettext-0.13.
62411         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62412         * m4/intmax.m4: New file, from gettext-0.13.
62413         * m4/printf-posix.m4: New file, from gettext-0.13.
62414
62415 2003-11-29  Karl Berry  <karl@gnu.org>
62416
62417         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62418
62419 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62420             Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/printf-parse.h: Don't include sys/types.h.
62423         (ARG_NONE): New macro.
62424         (char_directive): Change type of *arg_index fields to size_t.
62425         * lib/printf-parse.c: Don't include sys/types.h.
62426         (SSIZE_MAX): Remove macro.
62427         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62428         Remove unnecessary overflow check.
62429         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62430         fields.
62431
62432 2003-11-25  Bruno Haible  <bruno@clisp.org>
62433
62434         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62435
62436 2003-11-25  Bruno Haible  <bruno@clisp.org>
62437
62438         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62439         gt_TYPE_SSIZE_T.
62440
62441 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62442
62443         * modules/alloca: Remove dependency on xalloc.
62444
62445 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62446
62447         * lib/alloca.c: Remove dependency on xalloc module.
62448         (xalloc_die): Remove.
62449         (memory_full) [!defined emacs]: New macro.
62450         [!defined emacs]: Don't include xalloc.h.
62451         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62452         address arithmetic overflows.  Change datatypes a bit to avoid
62453         unnecessary casts.
62454
62455 2003-11-22  Jim Meyering  <jim@meyering.net>
62456
62457         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62458         s/size/size_t/.
62459
62460 2003-11-21  Karl Berry  <karl@gnu.org>
62461
62462         * config/config.{sub,guess}: update from config.
62463
62464 2003-11-18  Karl Berry  <karl@gnu.org>
62465
62466         * config/config.{sub,guess}: update from config.
62467
62468         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62469
62470 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62471
62472         * README: Mention that S+T cannot overflow if S is the size of
62473         an existing object and T is sufficiently small.
62474
62475 2003-11-17  Jim Meyering  <jim@meyering.net>
62476
62477         On systems without utime and without a utimes function capable of
62478         dealing with a NULL struct utimbuf* argument, this utime replacement
62479         could -- in unusual circumstances -- leak a file descriptor.
62480         * lib/utime.c: Include <unistd.h> and <errno.h>.
62481         (utime_null): Be sure to close `fd' and to preserve errno.
62482         Reported by Geoff Collyer via Arnold Robbins.
62483
62484 2003-11-17  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62487         (Depends-on): Add xsize.
62488
62489 2003-11-17  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62492
62493 2003-11-17  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/vasnprintf.c (alloca): Remove fallback definition.
62496         (freea): Remove definition.
62497         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62498         Reported by Paul Eggert.
62499
62500 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62501             Bruno Haible  <bruno@clisp.org>
62502
62503         Protect against address arithmetic overflow.
62504         * lib/printf-args.h: Include stddef.h.
62505         (arguments): Change type of field 'count' to size_t.
62506         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62507         'unsigned int' where appropriate.
62508         * lib/printf-parse.h: Include sys/types.h.
62509         (char_directive): Change type of *arg_index fields to ssize_t.
62510         (char_directives): Change type of fields 'count', max_*_length to
62511         size_t.
62512         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62513         (SSIZE_MAX): Define fallback value.
62514         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62515         instead of 'int' where appropriate. Check a_allocated, d_allocated
62516         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62517         * lib/vasnprintf.c: Include xsize.h.
62518         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62519         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62520         overflow. Avoid wraparound when converting a width or precision from
62521         decimal to binary.
62522
62523 2003-11-16  Bruno Haible  <bruno@clisp.org>
62524
62525         Update from GNU gettext.
62526         * lib/printf-parse.c: Generalize to it can be compiled for wide
62527         strings.
62528         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62529         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62530         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62531         SNPRINTF): New macros.
62532         Don't include <alloca.h> if the file is used inside libintl.
62533         (local_wcslen): New function, for Solaris 2.5.1.
62534         (VASNPRINTF): Use it instead of wcslen.
62535
62536 2003-11-16  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/xsize.h (xmax): New function.
62539         (xsum, xsum3, xsum4): Declare as "pure" functions.
62540
62541 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62542
62543         * modules/xalloc (Files): Undo latest change, since xalloc.h
62544         no longer needs SIZE_MAX or PTRDIFF_MAX.
62545
62546 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62547
62548         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62549         gl_PTRDIFF_MAX.
62550
62551 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62552
62553         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62554         "return", to pacify some unknown compiler.  Problem reported
62555         by Joerg Schilling.
62556
62557 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62558
62559         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62560         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62561         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62562         heuristic is just as accurate as far as we know, and it removes a
62563         dependency on size_max.m4 and ptrdiff_max.m4.
62564
62565 2003-11-11  Bruno Haible  <bruno@clisp.org>
62566
62567         * modules/xsize (Files): Add m4/size_max.m4.
62568         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62569
62570 2003-11-11  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/size_max.m4: New file.
62573         * m4/ptrdiff_max.m4: New file.
62574         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62575         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62576         (gl_XALLOC): Invoke it.
62577
62578 2003-11-11  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62581         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62582         defined.
62583
62584 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62585
62586         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62587         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62588         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62589         From Bruno Haible.
62590         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62591         not (size_t) -1, since it's defined here.
62592
62593 2003-11-09  Karl Berry  <karl@gnu.org>
62594
62595         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62596
62597 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62598
62599         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62600         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62601         Reject sizes of exactly SIZE_MAX bytes.
62602         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62603         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62604
62605 2003-11-05  Bruno Haible  <bruno@clisp.org>
62606
62607         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62608         SIZE_MAX defined in <limits.h> on Solaris.
62609
62610 2003-11-04  Jim Meyering  <jim@meyering.net>
62611
62612         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62613         variable names, rather than @VAR@.
62614         * modules/poll: Likewise.
62615
62616 2003-11-04  Bruno Haible  <bruno@clisp.org>
62617
62618         * modules/xsize: New file.
62619         * modules/linebreak: Depend on xsize.
62620         * MODULES.html.sh (func_all_modules): Add xsize.
62621
62622 2003-11-04  Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/xsize.m4: New file.
62625
62626 2003-11-04  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/xsize.h: New file.
62629         * lib/linebreak.c: Include xsize.h.
62630         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62631         argument for overflow.
62632         Suggested by Paul Eggert.
62633
62634 2003-11-03  Karl Berry  <karl@gnu.org>
62635
62636         * config/config.{guess,sub}: update from config.
62637
62638 2003-11-03  Jim Meyering  <jim@meyering.net>
62639
62640         * modules/userspec (lib_SOURCES): Add userspec.h.
62641         (Include): Add "userspec.h".
62642         Improve description.
62643
62644 2003-11-03  Jim Meyering  <jim@meyering.net>
62645
62646         * lib/userspec.c: Include "userspec.h".
62647         * lib/userspec.h: New file.
62648
62649 2003-11-03  Bruno Haible  <bruno@clisp.org>
62650
62651         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62652
62653 2003-11-03  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62656         available, to avoid (extremely rare) race condition.
62657         Suggested by Paul Eggert.
62658
62659 2003-11-02  Karl Berry  <karl@gnu.org>
62660
62661         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62662
62663 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62664
62665         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62666         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62667         (read_filesystem_list): Set and use me_type_malloced.
62668         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62669         whatever the type happens to be), for brevity and consistency.
62670         Check for size calculation overflow on Alphas running OSF/1.
62671
62672 2003-10-31  Jim Meyering  <jim@meyering.net>
62673
62674         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62675
62676         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62677
62678 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62679             Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62682         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62683
62684 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62685
62686         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62687         netbsd*-gnu*.  Suggested by Robert Millan.
62688
62689 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62690
62691         * modules/group-member: Depend on stdbool.
62692
62693 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62694
62695         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62696
62697 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62698
62699         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62700         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62701         after the 'gnu' in these cases.  This fixes some bugs in the
62702         previous change, and is based on suggestions by Robert Millan.
62703
62704 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62705
62706         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62707         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62708         no longer needed.
62709         * lib/quotearg.c (quotearg_n_options): Use it.
62710         * lib/group-member.c: Include <stdbool.h>.
62711         (free_group_info): Arg is now const *; don't free arg.
62712         (get_group_info): Now returns bool and accepts struct group_info *,
62713         rather than returning a malloc'ed struct group_info *.
62714         All uses changed.  Check for overflow in internal size calculation.
62715
62716         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62717         rather than xmalloc/xrealloc.
62718         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62719         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62720         conformance bug: the old code used a pointer after freeing the
62721         storage that it addressed.
62722         * lib/hash.c (hash_initialize): Simplify the code by using
62723         xalloc_oversized rather than doing it by hand.
62724         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62725         the buffer preserved.  Use free and xmalloc instead.
62726         * lib/quotearg.c (quotearg_n_options): Likewise.
62727         Use a simpler test for size overflow.  Don't use xalloc_oversized
62728         because unsigned int might be wider than size_t (!); this suggests
62729         that we should switch from unsigned int to size_t for slot numbers.
62730
62731 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62732
62733         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62734         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62735         NetBSD kernels.  Requested by Richard Stallman.
62736
62737 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62738
62739         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62740         to allocate the returned structure.  Do not allocate a subarray,
62741         as x2nrealloc will do that.
62742         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62743         instead of xnrealloc.
62744         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62745
62746 2003-10-27  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/stdbool_.h: Better support for BeOS.
62749
62750 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62751
62752         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62753         now uses inline.
62754
62755 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62756
62757         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62758         callers that want to do their own size-overflow checking.  Include
62759         <stdbool.h>, since xalloc_oversized returns bool.
62760         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62761         to use xalloc_oversized.
62762
62763         Add two functions x2realloc, x2nrealloc, for programs that grow
62764         arrays dynamically by doubling their sizes.
62765         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62766         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62767         New functions.
62768
62769         Port to C99 semantics for 'inline' of external functions.
62770         Bug reported by Bruno Haible.
62771         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62772         with the old contents of xnmalloc.
62773         (xnmalloc, xmalloc): Use it.
62774         (xnrealloc_inline): New static inline function,
62775         with the old contents of xnrealloc.
62776         (xnrealloc, xrealloc): Use it.
62777
62778         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62779         that.
62780
62781 2003-10-26  Karl Berry  <karl@gnu.org>
62782
62783         * config/srclist.txt (COPYING.DOC): no longer available from
62784         /gd/gnuorg; don't know where the ultimate source is.
62785
62786 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62787
62788         Fix several address-calculation bugs in the hash modules,
62789         plus some minor code cleanup.
62790
62791         * lib/hash.h: Include <stdbool.h>, for bool.
62792         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62793         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62794         hash_get_n_entries, hash_get_max_bucket_length,
62795         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62796         hash_rehash): Use size_t rather than unsigned.
62797         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62798         hash_get_n_buckets_used, hash_get_n_entries,
62799         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62800         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62801         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62802         Likewise.
62803         (SIZE_MAX): Define if not defined.
62804         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62805         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62806         hash_print):
62807         Use const * when possible.
62808         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62809         (check_tuning): Fix bug: if tuning parameters were very close to
62810         0 or 1, rounding errors could have caused subscript violations.
62811         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62812         (hash_initialize): Add 'fail:' label
62813         to free table and return NULL, and use it to simplify code.
62814         Use calloc rather than clearing the storage ourself.
62815         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62816         buffer size calculations.
62817         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62818         Include <stddef.h>, for size_t.
62819         * lib/hash-pjw.c (hash_pjw): Likewise.
62820         Switch to method described by Bruno Haible.
62821         Include <limits.h>, for CHAR_BIT.
62822         (SIZE_BITS): New macro.
62823
62824 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62825
62826         * m4/getline.m4 (AM_FUNC_GETLINE):
62827         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62828         hosts.  Problem reported by Derek Robert Price in
62829         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62830         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62831         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62832
62833 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62834
62835         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62836         ceiling the allocation at NMAX bytes rather than silently
62837         discarding input bytes before NMAX is reached.  This makes
62838         a difference only if NMAX exceeds SIZE_MAX / 2.
62839
62840         * lib/obstack.c: Merge from glibc.
62841         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62842         Add libc_hidden_def (_obstack_newchunk).
62843         (_obstack_free) [! defined _LIBC]: Remove.
62844         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62845         a clone of the function body.
62846         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62847         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62848
62849         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62850         glibc.
62851         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62852         arg to memcpy.
62853
62854         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62855         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62856         Don't use lvalue casts, as GCC plans to remove support for them
62857         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62858         was also present in the non-GCC version, indicating that this
62859         code had always been buggy and had never been widely used.
62860         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62861         Use the fast variant of each macro, rather than copying the
62862         definiens of the fast variant; that way, we'll be more likely to
62863         catch future bugs in the fast variants.
62864
62865 2003-10-20  Bruno Haible  <bruno@clisp.org>
62866
62867         * modules/wait-process: New file.
62868         * MODULES.html.sh (func_all_modules): Add wait-process.
62869
62870 2003-10-20  Bruno Haible  <bruno@clisp.org>
62871
62872         * m4/wait-process.m4: New file.
62873
62874 2003-10-20  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/wait-process.h: New file, from GNU gettext.
62877         * lib/wait-process.c: New file, from GNU gettext.
62878
62879 2003-10-19  Jim Meyering  <jim@meyering.net>
62880
62881         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62882         HPUX 10.20.
62883
62884 2003-10-18  Karl Berry  <karl@gnu.org>
62885
62886         * config/config.guess: update from config.
62887
62888 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62889
62890         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62891         (getgroups): First arg is int, not size_t.
62892         Don't let 'free' mangle errno.
62893
62894 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62895
62896         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62897
62898 2003-10-16  Karl Berry  <karl@gnu.org>
62899
62900         * config/config.{guess,sub}: update from config.
62901
62902 2003-10-16  Jim Meyering  <jim@meyering.net>
62903
62904         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62905         memcpy.
62906
62907 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62908
62909         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62910         (SIZE_MAX): Remove.
62911         (new_exclude, add_exclude_file): Initial size no longer needs to
62912         be a power of 2.
62913         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62914         our own address arithmetic overflow checking.
62915
62916         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62917         (fnmatch): Do not alloca more than 2000 wide characters;
62918         instead, use malloc for large buffers.
62919         Check for address arithmetic overflow, and return -1
62920         with errno set to ENOMEM in that case.
62921         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62922         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62923         instead, return -1.  Check for address arithmetic overflow.
62924
62925 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62926
62927         Handle invalid suffixes and overflow independently, so that
62928         callers can treat them independently as needed.  Fix some bugs in
62929         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62930         suffix for a human-readable blocksize.  The major caller-visible
62931         change is the addition of a new
62932         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62933         that both overflow and suffix chars were found.
62934
62935         * lib/human.c (humblock): Don't check separately for invalid suffix
62936         char; that is xstrtoumax's job (now that its bug is fixed).
62937         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
62938         INTMAX_MAX]: New macros.
62939         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
62940         TYPE_MAXIMUM): New macros.
62941         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
62942         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
62943         if overflow occurs, as it's what __strtol does and it's more useful
62944         in practice.
62945         (__xstrtol): If __strtol reports some error other than ERANGE,
62946         reflect it to the caller as LONGINT_INVALID.  If it reports
62947         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
62948         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
62949         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
62950         value.
62951         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
62952         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
62953         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
62954         [defined UINTMAX_MAX]: New macros.
62955
62956 2003-10-14  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
62959
62960 2003-10-14  Bruno Haible  <bruno@clisp.org>
62961
62962         * m4/sig_atomic_t: New file, from GNU gettext.
62963         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
62964
62965 2003-10-14  Bruno Haible  <bruno@clisp.org>
62966
62967         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
62968         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
62969         Also use volatile where needed.
62970
62971 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62972
62973         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
62974         Change maintainer from Bruno Haible to 'all'.
62975
62976 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62977
62978         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
62979
62980 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62981
62982         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
62983         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
62984         and define in terms of the other primitives.
62985         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
62986         (SIZE_MAX): Define if not already defined.
62987         (array_size_overflow): New function.
62988         (xalloc_die): Abort instead of exiting if 'error' returns.
62989         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
62990         (xmalloc, xrealloc): Use them.
62991         (xcalloc): Check for address arithmetic overflow.
62992         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
62993         a bit faster than strcpy.
62994
62995 2003-10-10  Simon Josefsson  <jas@extundo.com>
62996
62997         * modules/argp (Depends-on): Add restrict and strcase.
62998
62999 2003-10-10  Simon Josefsson  <jas@extundo.com>
63000
63001         * m4/argp.m4: Add AC_C_INLINE.
63002
63003 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63004
63005         Merge getpass from libc, plus a few fixes.
63006
63007         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63008         Include <stdbool.h>.
63009         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63010         __fsetlocking to empty.
63011         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63012         do include <bits/libc-lock.h>.
63013         Do not include <fcntl.h>; not needed.
63014         [_LIBC]: Include <wchar.h>.
63015         (NOTCANCEL_MODE): New macro.
63016         (flockfile, funlockfile) [_LIBC]: New macros.
63017         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63018         [!_LIBC]: New macros.
63019         (call_fclose): New function.
63020         (getpass): Use it.  Save tty stream separately; this simplifies the
63021         code and makes it more reliable if stdin happens to equal stdout.
63022         Invoke __fsetlocking on tty.
63023         Handle thread cancellation if needed.
63024         Namespace cleanup (use __tcgetattr, __getline).
63025         Use bool for Booleans.
63026         [USE_IN_LIBIO]: Handle wide streams.
63027         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63028         stream might go where.
63029
63030         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63031         doesn't have to include <stdio.h> before us.
63032         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63033         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63034         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63035         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63036         if not declared, so that we can use getpass.c code from libc without
63037         rewriting it.
63038         (flockfile, ftrylockfile, funlockfile): New macros.
63039
63040 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63041
63042         * modules/getpass: Depend on stdbool.
63043
63044 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63045
63046         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63047
63048 2003-10-07  Karl Berry  <karl@gnu.org>
63049
63050         * config/config.{guess,sub}: update from config.
63051
63052 2003-10-06  Jim Meyering  <jim@meyering.net>
63053             Bruno Haible  <bruno@clisp.org>
63054
63055         This lets translators provide better translations for the
63056         "Written by ..." part of --version output.
63057         * lib/version-etc.h: Include stdarg.h.
63058         (version_etc_copyright): Declare as readonly.
63059         (version_etc): Make this function variadic with a NULL-terminated list
63060         of author name strings.
63061         (version_etc_va): New declaration.
63062         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63063         (version_etc_copyright): Declare as readonly.
63064         (version_etc_va): New function. Provide a different translatable string
63065         for each possible number of authors < 10. Abbreviate when there are 10
63066         authors or more.
63067         (version_etc): Make this function variadic. Call version_etc_va.
63068         Suggestion from Gary V. Vaughan.
63069
63070         * lib/long-options.h (parse_long_options): Change prototype: the
63071         authors string is moved to the end and becomes variadic.
63072         * lib/long-options.c: Include stdarg.h.
63073         (parse_long_options): Make this function variadic, too.
63074         Call version_etc_va, not version_etc.
63075
63076 2003-10-06  Bruno Haible  <bruno@clisp.org>
63077
63078         * modules/version-etc-2: Remove file.
63079         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63080
63081 2003-10-06  Bruno Haible  <bruno@clisp.org>
63082
63083         * modules/fatal-signal: New file.
63084         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63085
63086 2003-10-06  Bruno Haible  <bruno@clisp.org>
63087
63088         * m4/fatal-signal.m4: New file.
63089         * m4/signalblocking.m4: New file, from GNU gettext.
63090
63091 2003-10-06  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/version-etc-2.h: Remove file.
63094         * lib/version-etc-2.c: Remove file.
63095
63096 2003-10-06  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/fatal-signal.h: New file, from GNU gettext.
63099         * lib/fatal-signal.c: New file, from GNU gettext.
63100
63101 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63102
63103         * README: Rework advice for preventing empty .o files.
63104         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63105         not <sys/types.h>.
63106
63107 2003-10-04  Karl Berry  <karl@gnu.org>
63108
63109         * lib/argp*: update from libc.
63110
63111 2003-10-04  Karl Berry  <karl@gnu.org>
63112
63113         * config/config.{guess,sub}: update from config.
63114
63115 2003-10-02  Bruno Haible  <bruno@clisp.org>
63116
63117         * modules/lchown (Include): Add lchown.h.
63118         * modules/time_r (Include): Use "..." syntax.
63119         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63120
63121 2003-10-01  Simon Josefsson  <jas@extundo.com>
63122
63123         * MODULES.html.sh (func_all_modules): Move gethostname from section
63124         'based on' to section 'lacking' POSIX:2001.
63125
63126 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63127
63128         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63129         to output mode on the same stream.
63130
63131 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63132
63133         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63134         Fix arg typo in previous patch.
63135
63136 2003-09-28  Jim Meyering  <jim@meyering.net>
63137
63138         * lib/error.c: Correct cpp indentation.
63139
63140 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63141
63142         * modules/free: New file.
63143
63144 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63145
63146         * m4/free.m4: New file.
63147
63148 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63149
63150         * lib/minmax.h (MIN, MAX)
63151         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63152         Omit the special code that used __typeof__, since we worry that
63153         it could be more trouble than it's worth.  See:
63154         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63155         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63156
63157         * lib/free.c: New file.
63158
63159 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63160
63161         Trivial fixes to Makefile.am parts of module listings.
63162         * modules/strstr: Append strstr.h to lib_SOURCES.
63163         * modules/strcase: Likewise, for strcase.h.
63164
63165 2003-09-27  Karl Berry  <karl@gnu.org>
63166
63167         * config/mkinstalldirs: update from automake.
63168
63169 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63170
63171         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63172         (error_tail): Do not loop, reallocating temporary buffer, since
63173         the output cannot contain more wide characters than the input
63174         contains bytes, the size must be big enough already.  This avoids
63175         one potential size overflow calculation.  Check for size overflow
63176         when calculating temporary buffer size.  Free temporary buffer
63177         when done, if it was allocated with malloc; this plugs a memory
63178         leak.  Remove casts from void * to pointers, that are no longer
63179         needed now that we're assuming C89 or better.
63180
63181         Merge error changes from glibc.
63182
63183         * lib/error.c, error.h: Update copyright notice header to match glibc.
63184         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63185         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63186         Disable cancellation while printing error.
63187         * lib/error.h: Prepend __ to parameter names.
63188
63189 2003-09-26  Jim Meyering  <jim@meyering.net>
63190
63191         * lib/error.c (error_tail): Move some declarations
63192         into inner scope where the local variables are used.
63193
63194 2003-09-26  Bruno Haible  <bruno@clisp.org>
63195
63196         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63197         stpncpy().
63198         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63199
63200 2003-09-26  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63203         (stpncpy): Define as alias for gnu_stpncpy.
63204         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63205
63206 2003-09-25  Simon Josefsson  <jas@extundo.com>
63207
63208         * lib/xgetdomainname.h: New file.
63209         * lib/xgetdomainname.c: New file.
63210
63211 2003-09-25  Simon Josefsson  <jas@extundo.com>
63212             Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/getdomainname: New file.
63215         * modules/xgetdomainname: New file.
63216         * MODULES.html.sh (func_all_modules): Add getdomainname,
63217         xgetdomainname.
63218
63219 2003-09-25  Simon Josefsson  <jas@extundo.com>
63220             Bruno Haible  <bruno@clisp.org>
63221
63222         * m4/getdomainname.m4: New file.
63223
63224 2003-09-25  Simon Josefsson  <jas@extundo.com>
63225             Bruno Haible  <bruno@clisp.org>
63226
63227         * lib/getdomainname.h: New file.
63228         * lib/getdomainname.c: New file.
63229
63230 2003-09-25  Karl Berry  <karl@gnu.org>
63231
63232         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63233
63234 2003-09-25  Karl Berry  <karl@gnu.org>
63235
63236         * config/install-sh: update from automake.
63237
63238 2003-09-25  Bruno Haible  <bruno@clisp.org>
63239
63240         * modules/version-etc-2: New file, from modules/version-etc with
63241         modifications.
63242         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63243
63244 2003-09-25  Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63247         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63248
63249 2003-09-24  Simon Josefsson  <jas@extundo.com>
63250
63251         * modules/xgethostname: Add xgethostname.h.
63252
63253 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63254
63255         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63256         the buffer associated with the argument.  Bug reported by
63257         Simon Josefsson.
63258
63259 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63260
63261         * README: Document assumptions that 'int' is at least 32 bits
63262         wide, that integer arithmetic is 2's complement without overflow,
63263         that there are no holes in integer values, that adding sizes of
63264         two nonoverlapping objects can't overflow, and that all-bits-zero
63265         yields scalar zero.  Fix spelling and capitalization typos.
63266
63267 2003-09-19  Karl Berry  <karl@gnu.org>
63268
63269         * lib/argp.h: update from libc.
63270
63271 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63272
63273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63274         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63275         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63276
63277 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63278
63279         * gnulib-tool: Use "test -h", not "test -L", for portability
63280         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63281         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63282         (sed_extract_prog): Issue s commands one-by-one, rather than
63283         using \| in one s command.
63284
63285 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63286
63287         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63288         input error, instead of returning NULL the next time we are called
63289         (and therefore losing track of errno).
63290
63291 2003-09-16  Bruno Haible  <bruno@clisp.org>
63292
63293         * gnulib-tool (func_create_testdir): Warn about duplicated
63294         dependencies.
63295
63296 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63297
63298         * modules/argmatch, modules/fatal, modules/obstack,
63299         modules/xalloc, modules/xgethostname: Sort dependencies by
63300         importance, not alphabetically.
63301
63302 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63303
63304         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63305         fails, so that the caller gets the proper errno.
63306
63307         * lib/readutmp.c (read_utmp): Likewise.
63308         Check for fstat error.  Close stream and free storage
63309         when failing.
63310
63311 2003-09-14  Karl Berry  <karl@gnu.org>
63312
63313         * config/srclist.txt (strdup.c): disable for c89 changes.
63314
63315 2003-09-14  Jim Meyering  <jim@meyering.net>
63316
63317         * lib/getloadavg.c: Correct cpp indentation.
63318         * lib/strdup.c: Likewise.
63319         * lib/vasnprintf.c: Likewise.
63320
63321 2003-09-14  Bruno Haible  <bruno@clisp.org>
63322
63323         * modules/fwriteerror: New file.
63324         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63325
63326 2003-09-14  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/fwriteerror.h: New file.
63329         * lib/fwriteerror.c: New file.
63330
63331 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63332
63333         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63334         modules/xgethostname, modules/xalloc: Depend on exit.
63335
63336 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63337
63338         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63339
63340         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63341         and AC_MINIX, too, so that their extensions are available.
63342
63343         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63344         This macro has been superseded by gl_BACKUPFILE.
63345
63346         More patches to assume C89 or better.
63347
63348         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63349
63350         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63351         unconditionally.
63352         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63353         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63354         Include <string.h>, <stdlib.h> unconditionally.
63355         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63356         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63357         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63358         headers or for string.h.
63359         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63360         or strtoul.
63361
63362         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63363         headers.
63364         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63365         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63366         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63367         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63368         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63369         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63370         memcpy, memset.
63371         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63372         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63373         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63374         strtol.
63375         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63376         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63377         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63378         strtoul.
63379
63380 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63381
63382         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63383         * lib/obstack.c [!defined _LIBC]: Likewise.
63384         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63385         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63386         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63387
63388         More changes to assume C89 or better.
63389
63390         * lib/error.c (error_tail): Assume vprintf.
63391
63392         * lib/argmatch.c (getenv): Remove decl.
63393         * lib/progreloc.c (get_full_program_name): Define via prototype.
63394         * lib/setenv.c (clearenv): Likewise.
63395         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63396         needed.
63397         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63398         (malloc, memcpy): Remove decls.
63399         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63400         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63401         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63402         (memcpy): Remove macro.
63403         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63404         (__P): Remove.  All uses removed.
63405         (PTR): Remove.  All uses changed to void *.
63406         (CHAR_BIT, NULL): Remove.
63407         (spaces, zeros, memset_space, memset_zero)
63408         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63409         Remove.
63410         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63411         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63412         Define with prototype.
63413         Remove now-unnecessary prototype decl.
63414         (extra_args_spec): Assume ANSI C.  All uses changed.
63415         (extra_args_spec_iso): Remove.
63416         (my_strftime, emacs_strftimeu): Define via prototype.
63417         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63418         unconditionally.
63419         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63420         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63421         (strtoul, strtol): Remove decls.
63422         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63423         LONG_MAX): Remove.
63424         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63425         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63426         (LOCALE_PARAM_PROTO): New macro.
63427         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63428         (INTERNAL (strtol), strtol): Define with a prototype.
63429         (PARAMS): Remove.  All uses removed.
63430         * lib/tempname.c: Include <string.h> unconditionally.
63431         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63432         * lib/xgethostname.c (main): Define with a prototype.
63433         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63434         Include <stdlib.h> unconditionally.
63435         (calloc, malloc, realloc, free): Remove decls.
63436         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63437         Include <stdlib.h> unconditionally.  Sort include file names.
63438         (strtod): Remove.
63439         (xstrtod): Define with a prototype.
63440         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63441         (strtol, strtoul): Remove decls.
63442
63443 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63444
63445         More patches to assume C89 or better.
63446         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63447         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63448         string.h, memchr, STDC_HEADERS.
63449
63450 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63451
63452         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63453         Include <stdlib.h>, <string.h> unconditionally.
63454         Remove now-unnecessary cast to char *.
63455         * lib/strnlen.c: Include <string.h> unconditionally.
63456         * lib/yesno.c (yesno): Define with a prototype.
63457
63458 2003-09-11  Bruno Haible  <bruno@clisp.org>
63459
63460         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63461
63462 2003-09-10  Jim Meyering  <jim@meyering.net>
63463
63464         * lib/error.c: Correct indentation of cpp directives.
63465
63466 2003-09-10  Bruno Haible  <bruno@clisp.org>
63467
63468         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63469         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63470         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63471         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63472         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63473         <stdlib.h> and <string.h> checks.
63474         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63475         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63476
63477 2003-09-10  Bruno Haible  <bruno@clisp.org>
63478
63479         * lib/strcspn.c: Include <string.h> unconditionally.
63480         * lib/strpbrk.c: Include <string.h> unconditionally.
63481         * lib/strstr.c: Include <string.h> unconditionally.
63482         * lib/unicodeio.c: Include <string.h> unconditionally.
63483         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63484         * lib/unsetenv.c: Likewise.
63485         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63486         * lib/yesno.c: Include <stdlib.h> unconditionally.
63487         (rpmatch): Add prototype.
63488
63489 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63490
63491         More patches to assume C89 or better.
63492         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63493         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63494         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63495         or for string.h.
63496         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63497         stdlib.h.
63498         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63499         C headers.
63500         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63501         string.h.
63502         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63503         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63504         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63505         or for string.h.
63506         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63507         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63508         C headers.
63509         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63510         memcpy.
63511         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63512         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63513         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63514         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63515         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63516         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63517         string.h, free.
63518         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63519         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63520         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63521         C headers, or for string.h.
63522         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63523         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63524         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63525         headers, memory.h, stdlib.h, string.h, strings.h.
63526         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63527         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63528         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63529         strchr.
63530         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63531         headers, memory.h, string.h.
63532         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63533         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63534         free.
63535         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63536         headers.
63537         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63538         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63539         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63540         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63541         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63542
63543 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63544
63545         More K&R removal.
63546
63547         * lib/acosl.c (main): Use a prototype.
63548         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63549         tanl.c: Likewise.
63550
63551         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63552
63553         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63554         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63555         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63556         with a prototype.
63557         * lib/getopt.c (const): Remove macro.
63558         Include <string.h> unconditionally.
63559         (my_index): Remove; all uses changed to strchr.
63560         (strlen): Remove decl.
63561         (exchange): Remove forward decl; no longer needed.
63562         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63563         Define with prototype.
63564         * lib/getopt1.c (const): Remove macro.
63565         (getopt_long, getopt_long_only, main): Define with prototype.
63566
63567         * lib/getugroups.c: Include <string.h> unconditionally.
63568
63569         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63570         (getusershell, setusershell, endusershell, readname, main):
63571         Define with prototypes.
63572
63573         * lib/group-member.c: Include group-member.h first.
63574         Include <stdlib.h> unconditionally.
63575
63576         * lib/hard-locale.c: Include hard-locale.h first.
63577         Include <stdlib.h>, <string.h> unconditionally.
63578
63579         * lib/hash.c (free, malloc): Remove decls.
63580         Include <stdlib.h> unconditionally.
63581
63582         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63583         (getenv): Do not declare.
63584
63585         * lib/idcache.c: Include <string.h> unconditionally.
63586
63587         * lib/long-options.c: Include long-options.h first, to test interface.
63588         Include <stdlib.h> unconditionally.
63589
63590         * lib/makepath.c: Include makepath.h first, to test interface.
63591         Include <stdlib.h> and <string.h> unconditionally.
63592
63593         * lib/linebuffer.c: Include <stdlib.h>.
63594         (free): Remove decl.
63595
63596         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63597         stddef.h. rpl_malloc returns void *, not char *.
63598         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63599         prototype.
63600
63601         * lib/md5.h: Include <limits.h> unconditionally.
63602         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63603         (__P): Remove; all uses removed.
63604         * lib/md5.c: Include "md5.h" first.
63605         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63606         md5_buffer, md5_process_bytes, md5_process_block):
63607         Define with prototypes.
63608         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63609         * lib/sha.c: Include "sha.h" first.
63610         Include <stdlib.h>, <string.h> unconditionally.
63611
63612         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63613         * lib/memcmp.c (__ptr_t): Likewise.
63614         * lib/memrchr.c (__ptr_t): Likewise.
63615         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63616         Include <string.h> unconditionally.
63617         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63618         * lib/memchr.c: Include <stdlib.h> unconditionally.
63619         * lib/memchr.c (LONG_MAX): Remove.
63620         * lib/memrchr.c (LONG_MAX): Likewise.
63621         * lib/memchr.c (__memchr): Define via a prototype.
63622         * lib/memrchr.c (__memrchr): Likewise.
63623         * lib/memcmp.c (__P): Remove, and remove all uses.
63624         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63625         Remove forward decls; no longer needed.
63626         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63627         Use types required by C89 in prototype.
63628
63629         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63630         * lib/savedir.c: Likewise.
63631         * lib/mkdir.c (free): Remove decl.
63632         * lib/rmdir.c (rmdir): Define with a prototype.
63633         * lib/savedir.c: Include savedir.h first, to test interface.
63634
63635         * lib/mktime.c (STDC_HEADERS): Remove.
63636         Include <stdlib.h>, <string.h> unconditionally.
63637
63638         * lib/modechange.c: Include <stdlib.h> unconditionally.
63639         (malloc): Remove decl.
63640
63641         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63642         (free): Remove decl.
63643
63644         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63645         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63646         (This type really should be intptr_t, but that's a C99ism.)
63647         (_obstack_memcpy): Remove: all uses changed to memcpy.
63648         Include <string.h> unconditionally.
63649         (struct obstack): Assume __STDC__ for types of members
63650         chunkfun, freefun, extra_arg.
63651         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63652         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63653         obstack_begin, obstack_specify_allocation,
63654         obstack_specify_allocation_with_arg, obstack_chunkfun,
63655         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63656         Remove unprototyped decls and the macros that use them.
63657         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63658         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63659         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63660         (defined __STDC__ && __STDC__)]:
63661         Remove nonprototyped code.
63662         Include <stdlib.h> unconditionally.
63663         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63664         _obstack_allocated_p, _obstack_free, obstack_free,
63665         _obstack_memory_used, print_and_abort):
63666         Define using prototypes.
63667         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63668         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63669         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63670         obstack_next_free, obstack_object_size, obstack_room) [0]:
63671         Remove unused, unprototyped code.
63672
63673         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63674
63675         * lib/physmem.c (physmem_total, physmem_available, main): Define
63676         with prototypes.
63677
63678         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63679         (main): Define with a prototype.
63680
63681         * lib/posixver.c (getenv): Remove decl.
63682
63683         * lib/putenv.c (malloc): Returns void *, not char *.
63684         Include <string.h> unconditionally.
63685         (strchr, memcpy, NULL): Do not define.
63686
63687         * lib/readtokens.c: Include readtokens.h first, to test interface.
63688         Include <stdlib.h>, <string.h> unconditionally.
63689         (init_tokenbuffer): Define with a prototype.
63690
63691         * lib/regex.c (PARAMS): Remove.  All uses removed.
63692         All uses of _RE_ARGS removed, too.
63693         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63694         unconditionally.
63695         (bzero): Assume memset exists.
63696         (memcmp, memcpy, NULL): Remove.
63697         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63698         char, or assignments to local vars of type signed char.
63699         (init_syntax_once, PREFIX(extract_number_and_incr),
63700         PREFIX(print_partial_compiled_pattern),
63701         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63702         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63703         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63704         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63705         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63706         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63707         wcs_compile_range, byte_compile_range, truncate_wchar,
63708         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63709         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63710         count_mbs_length, wcs_re_match_2_internal,
63711         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63712         PREFIX(alt_match_null_string_p),
63713         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63714         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63715         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63716         now-unnecessary declaration, if any.
63717         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63718         regcomp, regexec):
63719         Remove now-unnecessary casts among pointer types.
63720         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63721
63722         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63723         (free): Remove decl.
63724
63725         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63726
63727         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63728         (free): Remove decl.
63729
63730         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63731         * lib/xgetcwd.c: Likewise.
63732
63733         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63734         (free): Remove decl.
63735
63736         * lib/strchrnul.c (strchrnul): Define with a prototype.
63737         Fix bug: c_in was not converted to char before searching.
63738
63739         The following changes are not K&R related:
63740
63741         * lib/group-member.h: Include <sys/types.h>, so that this file is
63742         self-contained.
63743         * lib/makepath.h: Likewise.
63744
63745         * lib/getusershell.c (readname, default_index, line_size, readname):
63746         Use size_t, not int, for sizes.
63747         (readname): If the size overflows, report an error instead of
63748         looping forever.
63749
63750 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63751
63752         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63753         libc.
63754
63755 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63756
63757         * README: New section: portability guidelines.
63758
63759 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63760
63761         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63762         C89 spec.
63763
63764 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63765
63766         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63767
63768 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63769
63770         Assume C89 or better; remove K&R cruft.
63771         A few of these changes were first proposed by Derek Robert Price
63772         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63773
63774         * lib/addext.c: Include <string.h> unconditionally.
63775         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63776         Don't declare getenv or malloc.
63777
63778         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63779         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63780         (NULL): Remove.
63781         (find_stack_direction, alloca): Use prototypes.
63782
63783         * lib/atexit.c (atexit): Define using a prototype.
63784
63785         * lib/basename.c, dirname.c, stripslash.c:
63786         Include <string.h> unconditionally.
63787
63788         * lib/bcopy.c: Include <stddef.h>.
63789         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63790
63791         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63792
63793         * lib/error.h (error, error_at_line, error_print_progname)
63794         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63795         * lib/error.c: Include error.h first, to check interface.
63796         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63797         (VA_START): Remove; all uses changeed to va_start.
63798         (exit, strerror): Remove decls.
63799         (error_print_progname): Prototype uncondionally.
63800         Don't include <errno.h>; no longer needed.
63801         (private_strerror): Remove.
63802         (error_tail): Always define.
63803         (error, error_at_line): Assume C89 or better; always use prototypes.
63804         * lib/fatal.c: Include "fatal.h" first, to test interface.
63805         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63806         (VA_START): Remove; all uses changed to va_start.
63807         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63808         this case.
63809         (exit): Remove decl.
63810         (fatal): Prototype unconditionally.  Assume va_start works.
63811         Abort at end, to pacify gcc.
63812
63813         * lib/euidaccess.c (main): Define with a prototype.
63814
63815         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63816
63817         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63818
63819         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63820         prototypes.
63821         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63822         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63823         (getenv): Remove decl.
63824         (fnmatch): Define using a prototype.
63825         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63826         (FCT): Define using a prototype.
63827
63828         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63829
63830         * lib/gethostname.c: Include <stddef.h>.
63831         (gethostname): Define with prototype.  Length is size_t, not int.
63832
63833 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63834
63835         Assume C89 or better; remove K&R cruft.
63836         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63837         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63838         string.h, getenv, malloc.
63839         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63840         headers.
63841         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63842         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63843         do not check for strerror.
63844         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63845         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63846         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63847         do not check for doprnt or vprintf.
63848         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63849         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63850
63851 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63852
63853         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63854         getversion.c should have been removed then, but was accidentally
63855         preserved.
63856
63857         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63858         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63859
63860 2003-09-08  Karl Berry  <karl@gnu.org>
63861
63862         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63863                 config, forget about prep.
63864
63865         * config/depcomp, missing: update from automake.
63866
63867 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63868
63869         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63871
63872 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63873
63874         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63875         copy_tm_result.  Bug reported by Simon Josefsson in
63876         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63877
63878 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63879
63880         * m4/time_r.m4: New file.
63881         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63882         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63883         is. Check for timegm declaration.
63884         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63885         Do not check for gmtime_r.
63886         Replace mktime if __mktime_internal does not exist and if mktime
63887         hasn't been replaced already.
63888
63889 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63890
63891         * lib/time_r.c, lib/time_r.h: New files.
63892
63893         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63894         __localtime_r.
63895         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63896         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63897
63898         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63899         __gmtime_r.
63900         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63901         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63902         Include <time_r.h>.
63903
63904         * lib/timegm.c: Switch to glibc implementation, with the following
63905         changes:
63906         [defined HAVE_CONFIG_H]: Include <config.h>.
63907         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63908         (__mktime_internal) [!defined _LIBC]: New decl.
63909         (__gmtime_r) [!defined _LIBC]: New macro and function.
63910         (timegm): Use a prototype, since gnulib assumes C89.
63911         Do not bother declaring tmp to be const, as it's not really usefu.
63912         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63913         (timegm): Declare only if HAVE_DECL_TIMEGM.
63914
63915 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63916
63917         * MODULES.html.sh (func_all_modules): Add time_r.
63918         * modules/time_r: New file.
63919         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63920         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63921
63922 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63923
63924         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63925         Bug reported by Lute Kamstra in
63926         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63927
63928         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63929         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63930         course with correspondingly smaller numbers for tomorrow and
63931         yesterday.  From Tadayoshi Funaba.  Originally installed into
63932         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63933         coreutils merge?).
63934
63935 2003-08-31  Simon Josefsson  <jas@extundo.com>
63936
63937         * modules/timegm: New file.
63938         * MODULES.html.sh (func_all_modules): Add timegm.
63939
63940 2003-08-31  Simon Josefsson  <jas@extundo.com>
63941
63942         * m4/timegm.m4: New file.
63943
63944 2003-08-31  Simon Josefsson  <jas@extundo.com>
63945
63946         * lib/timegm.h: New file.
63947         * lib/timegm.c: New file.  Based on
63948         wget-1.8.2/src/http.c:mktime_from_utc.
63949
63950 2003-08-31  Karl Berry  <karl@gnu.org>
63951
63952         * lib/argp.h: update from libc.
63953
63954 2003-08-28  Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
63957         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
63958         followed by '#define fnmatch fnmatch_posix' gives an error.
63959
63960 2003-08-28  Bruno Haible  <bruno@clisp.org>
63961
63962         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
63963         warning on QNX, which defines O_BINARY to 000000.
63964
63965 2003-08-27  Jim Meyering  <jim@meyering.net>
63966
63967         * m4/mkstemp.m4: Require that the system mkstemp be able to create
63968         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
63969         would fail after 32.  Reported by Danny Levinson.  Details here:
63970         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
63971
63972 2003-08-24  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
63975         MSVC7 <stdio.h> is included later.
63976
63977 2003-08-22  Simon Josefsson  <jas@extundo.com>
63978
63979         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
63980
63981 2003-08-20  Karl Berry  <karl@gnu.org>
63982
63983         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
63984
63985 2003-08-20  Bruno Haible  <bruno@clisp.org>
63986
63987         * modules/progname: New file.
63988         * MODULES.html.sh (func_all_modules): Add progname.
63989
63990 2003-08-20  Bruno Haible  <bruno@clisp.org>
63991
63992         * lib/progname.h: New file, from GNU gettext.
63993         * lib/progname.c: New file, from GNU gettext.
63994         * lib/progreloc.c: New file, from GNU gettext.
63995
63996 2003-08-19  Jim Meyering  <jim@meyering.net>
63997
63998         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
63999         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64000
64001 2003-08-19  Bruno Haible  <bruno@clisp.org>
64002
64003         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64004         more.
64005
64006 2003-08-19  Bruno Haible  <bruno@clisp.org>
64007
64008         * lib/xstrdup.c: Assume <string.h> exists.
64009
64010 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64011
64012         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64013         in makefile rules.
64014
64015 2003-08-18  Jim Meyering  <jim@meyering.net>
64016
64017         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64018         * m4/lib-ld.m4: Likewise.
64019
64020 2003-08-18  Jim Meyering  <jim@meyering.net>
64021
64022         * lib/setenv.h: Indent nested cpp directive.
64023         * lib/vasnprintf.c: Remove trailing blanks.
64024
64025 2003-08-17  Simon Josefsson  <jas@extundo.com>
64026
64027         * modules/xstrndup: New file.
64028         * MODULES.html.sh (func_all_modules): Add xstrndup.
64029
64030 2003-08-17  Simon Josefsson  <jas@extundo.com>
64031
64032         * modules/argp: Fix autoconf macro name. Add more dependencies.
64033
64034 2003-08-17  Simon Josefsson  <jas@extundo.com>
64035
64036         * m4/xstrndup.m4: New file.
64037
64038 2003-08-17  Simon Josefsson  <jas@extundo.com>
64039
64040         * m4/argp.m4: New file.
64041
64042 2003-08-17  Simon Josefsson  <jas@extundo.com>
64043             Bruno Haible  <bruno@clisp.org>
64044
64045         * lib/xstrndup.h: New file.
64046         * lib/xstrndup.c: New file.
64047
64048 2003-08-17  Bruno Haible  <bruno@clisp.org>
64049
64050         * modules/strndup (Files, Include): Add lib/strndup.h.
64051
64052 2003-08-17  Bruno Haible  <bruno@clisp.org>
64053
64054         * modules/euidaccess (Files): Add lib/euidaccess.h.
64055
64056 2003-08-17  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/strndup.h: New file.
64059
64060 2003-08-17  Bruno Haible  <bruno@clisp.org>
64061
64062         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64063         like AC_GNU_SOURCE.
64064         * modules/extensions (configure.ac): Comment out the invocation of
64065         gl_USE_SYSTEM_EXTENSIONS.
64066
64067 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64068
64069         Merges from coreutils, etc.
64070         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64071         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64072         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64073         fixing a typo.
64074         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64075         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64076
64077 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64078
64079         Document merge from coreutils.
64080         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64081         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64082         * modules/utime: Add m4/utimes-null.m4.
64083
64084 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64085
64086         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64087         space, undoing this 2003-08-12 change:
64088         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64089
64090 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64091
64092         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64093         strtoul.c from libc, undoing this 2003-08-12 change:
64094         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64095
64096 2003-08-16  Jim Meyering  <jim@meyering.net>
64097
64098         Merges from coreutils.
64099         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64100         prefix.  Adjust cache variables similarly.  Create 500 rather than
64101         just 300 files, to exercise bug on Darwin6.5, too.
64102         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64103         $missing_dir.
64104         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64105         AM_SYS_POSIX_TERMIOS.
64106         Reported by mkc@mathdogs.com.
64107         Also change use of $am_cv_sys_posix_termios
64108         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64109         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64110         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64111         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64112         in /proc/mounts until it finds one with matching device number.  This
64113         is unnecessary when the FILE argument *is* a mount point.  No stat call
64114         is necessary in that case.  So, disable the statvfs-testing code on
64115         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64116         as RedHat bug# 84846.
64117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64118         to 1MB, so as not to render systems with no stack size limit (e.g.,
64119         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64120         Include <unistd.h>.  On some systems,
64121         it is required for the definition of _SC_PAGESIZE.
64122
64123 2003-08-16  Jim Meyering  <jim@meyering.net>
64124
64125         Merge from coreutils.
64126         * lib/xstrtoimax.c: #else #if -> #elif.
64127         * lib/xstrtoumax.c: Likewise.
64128
64129 2003-08-16  Jim Meyering  <jim@meyering.net>
64130
64131         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64132         * m4/utimes.m4: Removed.
64133         * m4/utimes-null.m4: Renamed from utimes.m4.
64134
64135         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64136         to 1MB, so as not to render systems with no stack size limit (e.g.,
64137         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64138         Include <unistd.h>.  On some systems,
64139         it is required for the definition of _SC_PAGESIZE.
64140
64141 2003-08-16  Jim Meyering  <jim@meyering.net>
64142         and Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         Merges from coreutils, etc.
64145
64146         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64147         using the latest version from cvs.  This avoids problems with #line
64148         directives using a vendor (Sun) compiler.
64149         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64150         Don't set GETGROUPS_LIB here; now it's
64151         done via getgroups.m4's wrapper function.
64152         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64153         rather than just in sh-util/configure.in, so that the
64154         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64155         same.
64156         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64157         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64158         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64159         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64160         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64161         Remove code that is now done by the newly-required macros.
64162         Append $(EXEEXT) to DF_PROG.
64163         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64164         Do not invoke or require the following here,
64165         since prereq.m4 or some gnulib .m4 now does this for us:
64166         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64167         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64168         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64169         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64170         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64171         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64172         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64173         AC_FUNC_OBSTACK.
64174         Do not replace the following functions, as this is now the job
64175         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64176         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64177         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64178         atexit getpass, strdup, getpagesize.
64179         Replace 'raise'.
64180         Do not check for the following functions, as this is now the job
64181         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64182         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64183         setregid.
64184         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64185         Check for sys/sysctl.h.
64186         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64187         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64188         of checking for ssize_t ourselves.
64189
64190         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64191         Require every macro that gnulib/modules/* suggests for us.
64192         (jm_PREREQ_ADDEXT): New macro.
64193         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64194         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64195
64196         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64197         (gl_PHYSMEM): Use it.
64198         Also check for `table' function.
64199         Check for new headers and functions.
64200         Add check for sys/sysmp.h.
64201         With suggestions from Kaveh Ghazi.
64202         Ignore headers that are present but cannot be compiled.  This
64203         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64204         C 5.4.
64205
64206 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64207
64208         Document merge from coreutils.
64209         * modules/userspec: Depend on posixver.
64210         * modules/strftime: Depend on tzset.
64211
64212 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64213
64214         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64215         rather than tab, after '#' in shell-script copyright notices.
64216         Suggested by Bruno Haible.
64217
64218 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64219
64220         * config/srclist-update: Use three spaces, rather than tab, after '#'
64221         in shell-script copyright notices.  Suggested by Bruno Haible.
64222         Remove unnecessary parenthesization in regular expression.
64223
64224 2003-08-15  Jim Meyering  <jim@meyering.net>
64225
64226         Merge from coreutils.
64227         * lib/xgethostname.c: Include <stdlib.h>.
64228         (xghostname): Don't exit for anything other than memory-related
64229         failure; just return NULL.
64230         * lib/userspec.c: Include "posixver.h".
64231         (parse_user_spec): Accept `.' as a separator only
64232         in pre-POSIX-200112 mode.
64233         * lib/strtoimax.c: Use #elif rather than #else #if.
64234         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64235         Remove function, now that we can rely on a working tzset function.
64236         [!_LIBC]: Ensure that the required autoconf test has been run.
64237         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64238         Use underlying_strftime for %r.
64239         * lib/sha.c: Merge in some clean-up and optimization changes from
64240         glibc.
64241         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64242         Ensure that it is a multiple of 64.
64243         Rearrange loop exit tests so as to avoid performing an
64244         additional fread after encountering an error or EOF.
64245         * lib/realloc.c: Update copyright date.
64246
64247 2003-08-15  Jim Meyering  <jim@meyering.net>
64248         and Paul Eggert  <eggert@twinsun.com>
64249
64250         Merge from coreutils.
64251         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64252         member but strut utmpx does not.  Needed for AIX 4.3.3.
64253         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64254
64255 2003-08-15  Jim Meyering  <jim@meyering.net>
64256         and Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         Merges from coreutils, etc.
64259         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64260         Require gl_FUNC_TZSET_CLOBBER.
64261         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64262         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64263         members.
64264
64265 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64266
64267         Help the merge from coreutils.
64268         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64269         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64270         * m4/tzset.m4: Use it too.
64271
64272 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64273
64274         * modules/tzset: New file.
64275
64276 2003-08-14  Jim Meyering  <jim@meyering.net>
64277
64278         Merges from coreutils.
64279         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64280         variable names, rather than @FNMATCH_H@.
64281         * modules/alloca: Likewise for $(ALLOCA_H).
64282
64283         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64284         the three copies of the literal target, `fnmatch.h'.
64285         * modules/alloca (alloca.h): Likewise.
64286
64287 2003-08-14  Jim Meyering  <jim@meyering.net>
64288
64289         Merge from coreutils.
64290         * m4/tzset.m4: New file.
64291         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64292         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64293         otherwise, AIX 5.1 systems would end up using the latter.
64294         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64295         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64296         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64297         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64298
64299 2003-08-14  Jim Meyering  <jim@meyering.net>
64300
64301         Merge from coreutils.
64302         * lib/obstack.h: Whitespace changes.
64303         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64304         and xcalloc return values.
64305         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64306         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64307         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64308         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64309         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64310         error from mntctl.
64311         Use mntctl's return value to drive the entry-processing loop, since
64312         we can't rely on the value of the vmt_length member in the last
64313         entry.  On some systems doing so could result in exhausting
64314         virtual memory.  Based in part on a patch from Mike Jetzer.
64315
64316 2003-08-14  Jim Meyering  <jim@meyering.net>
64317         and Paul Eggert  <eggert@twinsun.com>
64318
64319         Merges from coreutils, plus other fixes.
64320         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64321         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64322         for credits and details.  Thanks to Kaveh Ghazi for helping
64323         to keep these files in sync.
64324         (ARRAY_SIZE): Define it.
64325         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64326         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64327         (memcasecmp): Don't assume size_t fits in unsigned int.
64328         Remove casts and duplicate code.
64329         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64330         (memcpy): Remove definition.
64331         Merge in some clean-up and optimization changes from glibc.
64332         [BLOCKSIZE]: Move definition to top of file.
64333         Ensure that it is a multiple of 64.
64334         Rearrange loop exit tests so as to avoid performing an
64335         additional fread after encountering an error or EOF.
64336         * lib/md5.h (md5_uintptr): Define.
64337         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64338         return to the initial working directory.  Preserve errno
64339         for caller.
64340         * lib/idcache.c: Include "xalloc.h".
64341         (xmalloc, xrealloc): Remove decls.
64342         (getuser): Remove casts no longer required in C89.
64343         * lib/human.c: Include stdio.h, for sprintf.
64344         * lib/group-member.c: Include "xalloc.h".
64345         (xmalloc, xrealloc): Remove decls.
64346         (get_group_info): Remove casts no longer required in C89.
64347         * lib/getusershell.c (readname): Remove casts no longer required in
64348         C89.
64349         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64350         * lib/getline.c: Whitespace fix, from coreutils.
64351
64352 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64353
64354         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64355         Check for isascii.
64356
64357         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64358         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64359         Undo previous (whitespace-only) change.
64360
64361 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64362
64363         * lib/exclude.c: Include <ctype.h>
64364         (IN_CTYPE_DOMAIN): New macro.
64365         (is_space): New fn.
64366         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64367         and empty lines.
64368
64369         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64370         Undo previous (whitespace-only) change.
64371
64372 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64373
64374         * config/srclist-update: Change update back to the old behavior,
64375         leaving whitespace alone.  Use one 'sed' command rather than a
64376         pipeline.
64377         (fixlicense): Now a variable, not a function.
64378         (remove_trailing_blanks): Remove.
64379         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64380         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64381         Undo previous (whitespace-only) change.
64382
64383 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64384
64385         Merge from coreutils.
64386         * modules/euidaccess: Add lib_SOURCES, include for new
64387         file euidaccess.h
64388
64389 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64390
64391         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64392         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64393         Normalize leading white space and remove trailing white space.
64394
64395         Merge from coreutils
64396         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64397
64398         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64399         0.12.1.  These files are now being upgraded automatically by
64400         ../config/srclist-update.
64401
64402 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64403
64404         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64405         Normalize leading white space and remove trailing white space.
64406         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64407         notice, as per ../config/srclist-update.
64408
64409         Merge from coreutils.
64410         * lib/euidaccess.h: New file.
64411         * lib/euidaccess.c: Include it.
64412         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64413         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64414         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64415
64416 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64417
64418         * config/srclist-update: Add copyright notice.
64419         (remove_id_lines, remove_trailing_blanks): New constants.
64420         (fixfile): Use them to normalize spacing a bit in copied files.
64421         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64422         Normalize leading white space and remove trailing white space.
64423
64424         * config/texinfo.tex: Sync with texinfo.
64425
64426         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64427         strtoul.c from libc, to merge coreutils whitespace changes.
64428
64429         * config/srclist.txt: Get the following m4 files from gettext:
64430         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64431         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64432         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64433         wint_t.m4.
64434
64435 2003-08-12  Karl Berry  <karl@gnu.org>
64436
64437         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64438         been made.
64439
64440 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64441
64442         * modules/gnu-source, m4/gnu-source.m4:
64443         Remove; we're assuming Autoconf 2.54 or later now.
64444         Suggested by Bruno Haible.
64445         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64446
64447 2003-08-11  Bruno Haible  <bruno@clisp.org>
64448
64449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64450
64451 2003-08-11  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64454         (vasnprintf): Use it instead of wcslen.
64455
64456 2003-08-11  Bruno Haible  <bruno@clisp.org>
64457
64458         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64459         value to ensure that _Bool promotes to int. Use #define for _Bool when
64460         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64461
64462 2003-08-10  Karl Berry  <karl@gnu.org>
64463
64464         * lib/regex.h: update from libc (whitespace fix).
64465
64466 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64467
64468         Merge some files from coreutils.  These changes were
64469         originally made by Jim Meyering.
64470         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64471         many older Unixes require this.
64472         * lib/alloca.c (alloca): Remove cast to argument of free;
64473         no longer needed in C89.
64474         * lib/alloca_.h, regex.h: Fix white space to match
64475         what GNU indent does.
64476
64477 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64478
64479         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64480         apparently Emacs's Unicode mode got confused before my 2003-08-05
64481         checkin.
64482
64483 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64484
64485         * m4/extensions.m4: New file.
64486         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64487         Require gl_USE_SYSTEM_EXTENSIONS.
64488         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64489         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64490
64491 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64492
64493         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64494         * modules/extensions, modules/gnu-source: New files.
64495         * modules/timespec, modules/unlocked-io: Depend on extensions.
64496
64497 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64498
64499         * modules/restrict: New file.
64500         * MODULES.html.sh (func_all_modules): Add restrict.
64501         * modules/regex: Depend on restrict.
64502
64503 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64504
64505         * m4/restrict.m4: New file.
64506         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64507
64508 2003-08-07  Bruno Haible  <bruno@clisp.org>
64509
64510         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64511         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64512
64513 2003-08-07  Bruno Haible  <bruno@clisp.org>
64514
64515         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64516         makes the module 'getndelim2' compatible with the module 'getline'.
64517
64518 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64519
64520         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64521         byte with "\201" to avoid glitches when editing that source file
64522         with multi-gnome-terminal.
64523
64524 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64525
64526         * lib/bumpalloc.h: Remove.
64527
64528 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64529
64530         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64531         * modules/bumpalloc: Remove.
64532
64533 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64534
64535         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64536         GNU coding style.
64537
64538         Merge from coreutils.
64539         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64540         1. From glibc.
64541         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64542         from Karl Berry, implemented by Jim Meyering.
64543         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64544         from Dmitry V. Levin.
64545         Remove anachronistic cast of xrealloc.
64546         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64547         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64548         type. Otherwise, it wouldn't compile with at least /bin/cc on
64549         ymp-cray-unicos9.0.2.X.
64550         Combine two mostly-identical uses of alloca into one.
64551         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64552
64553 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64554
64555         [From Emacs.]
64556
64557         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64558         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64559         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64560         obsolete NLIST_NAME_UNION.
64561         [__GNU__]: Undef BSD and FSCALE.
64562         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64563
64564 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64565
64566         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64567         an enum type, so that it's guaranteed to promote to int.  See:
64568         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64569
64570 2003-08-03  Karl Berry  <karl@gnu.org>
64571
64572         * config/depcomp: update from automake.
64573
64574 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64575
64576         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64577         (strerror): Don't assume that a printable int fits in 14 bytes.
64578
64579 2003-07-31  Bruno Haible  <bruno@clisp.org>
64580
64581         * modules/getpass-gnu: New file.
64582         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64583
64584 2003-07-31  Bruno Haible  <bruno@clisp.org>
64585
64586         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64587
64588 2003-07-24  Karl Berry  <karl@gnu.org>
64589
64590         * config/missing: update from automake.
64591
64592 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64593             Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64596         * lib/getline.c (getline, getdelim): Likewise.
64597         Remove _GNU_SOURCE define; now it's defined in config.h through
64598         m4/getline.m4.
64599
64600 2003-07-23  Karl Berry  <karl@gnu.org>
64601
64602         * config/config.sub: update from prep.
64603
64604 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64605
64606         * modules/xalloc (Depends-on): Add exitfail.
64607         * modules/xmemcoll: Likewise.
64608
64609 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64610
64611         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64612         over-parenthesization in macros.
64613
64614         Sync with coreutils.
64615
64616         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64617         required by C99.
64618
64619         Use `exit_failure' for xalloc and xmemcoll instead of their own
64620         private exit-failure variables.
64621         * lib/xalloc.h (xalloc_exit_failure): Remove.
64622         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64623         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64624         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64625         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64626         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64627
64628 2003-07-20  Jim Meyering  <jim@meyering.net>
64629
64630         * modules/closeout (Depends-on): Add exitfail.
64631         Suggestion from Bruno Haible.
64632
64633 2003-07-19  Karl Berry  <karl@gnu.org>
64634
64635         * config/config.sub: update from prep.
64636
64637 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64638
64639         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64640         Remove.
64641         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64642         to test that it can stand by itself.  Include "exitfail.h".
64643         Clients should set exit_failure instead.
64644         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64645
64646 2003-07-18  Bruno Haible  <bruno@clisp.org>
64647
64648         * modules/getndelim2: New file.
64649         * modules/getline: Share files with module getndelim2.
64650         * modules/getnline: Depend on getndelim2 instead of sharing files with
64651         it. Add getnline.c to lib_SOURCES.
64652         * MODULES.html.sh (func_all_modules): Add getndelim2.
64653
64654 2003-07-18  Bruno Haible  <bruno@clisp.org>
64655
64656         * m4/getndelim2.m4: New file.
64657         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64658         invoke gl_PREREQ_GETNDELIM2.
64659         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64660         gl_PREREQ_GETNDELIM2.
64661         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64662         gl_GETNDELIM2.
64663
64664 2003-07-18  Bruno Haible  <bruno@clisp.org>
64665
64666         * lib/getndelim2.h: New file.
64667         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64668         getndelim2.h.
64669         (getndelim2): Make non-static. Change return type to ssize_t.
64670         * lib/getline.h: Change argument names.
64671         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64672         * lib/getnline.c: Include getndelim2.h.
64673
64674 2003-07-18  Andreas Schwab  <schwab@suse.de>
64675
64676         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64677
64678 2003-07-17  Karl Berry  <karl@gnu.org>
64679
64680         * config/config.sub: update from prep.
64681
64682 2003-07-17  Bruno Haible  <bruno@clisp.org>
64683
64684         * modules/getnline: New file.
64685         * modules/getline: Add lib/getndelim2.c to source file list.
64686         * MODULES.html.sh (func_all_modules): Add getnline.
64687
64688 2003-07-17  Bruno Haible  <bruno@clisp.org>
64689
64690         * m4/getnline.m4: New file.
64691
64692 2003-07-17  Bruno Haible  <bruno@clisp.org>
64693
64694         * m4/Makefile.am.in: Remove file.
64695         * m4/Makefile.am: Remove file.
64696         * m4/Makefile.in: Remove file.
64697
64698 2003-07-17  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/getnline.h: New file.
64701         * lib/getnline.c: New file.
64702         * lib/getndelim2.c: New file, extracted from getline.c.
64703         (getndelim2): Renamed from getdelim2, with added nmax argument.
64704         * lib/getline.c: Include getndelim2.c.
64705         (getdelim2): Moved out to getndelim2.c.
64706         (getline, getdelim): Update.
64707
64708 2003-07-17  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/Makefile.am: Remove file.
64711         * lib/Makefile.in: Remove file.
64712
64713 2003-07-17  Bruno Haible  <bruno@clisp.org>
64714
64715         * configure.in: Remove file.
64716         * Makefile.in: Remove file.
64717
64718 2003-07-17  Bruno Haible  <bruno@clisp.org>
64719
64720         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64721
64722 2003-07-16  Karl Berry  <karl@gnu.org>
64723
64724         * config/srclist-update: was running fixlicense twice, which caused
64725                 texinfo.tex to be nullified for some reason.  Simplify,
64726                 $gplsrc is no longer needed as far as I can see?
64727
64728 2003-07-16  Jim Meyering  <jim@meyering.net>
64729
64730         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64731
64732 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64733
64734         * config/srclist.txt: Get the following files from gettext-runtime/intl
64735         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64736         ref-del.sin.  From Bruno Haible.
64737         * config/srclist-update (fixfile): Change grep pattern again, since the
64738         previous fix didn't work (there was another trailing $).  Use
64739         '[$]' to escape the $s.
64740
64741 2003-07-15  Karl Berry  <karl@gnu.org>
64742
64743         * lib/vasnprintf.c: update from gettext.
64744
64745 2003-07-15  Karl Berry  <karl@gnu.org>
64746
64747         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64748         gets expanded when surrounded by '$'.
64749
64750 2003-07-15  Jim Meyering  <jim@meyering.net>
64751
64752         * modules/save-cwd: Don't depend on error.  From Derek Price.
64753
64754 2003-07-15  Jim Meyering  <jim@meyering.net>
64755
64756         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64757
64758 2003-07-14  Simon Josefsson  <jas@extundo.com>
64759
64760         * modules/mempcpy: New file.
64761         * MODULES.html.sh (func_all_modules): Add mempcpy.
64762
64763 2003-07-14  Simon Josefsson  <jas@extundo.com>
64764
64765         * m4/mempcpy.m4: New file.
64766
64767 2003-07-14  Simon Josefsson  <jas@extundo.com>
64768
64769         * lib/mempcpy.h: New file.
64770         * lib/mempcpy.c: New file.
64771
64772 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64773
64774         * modules/getdate, modules/posixtm: Depend on mktime.
64775
64776 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64777
64778         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64779         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64780         unicodeio.c, unicodeio.h, unlocked-io.h:
64781         Switch from LGPL to GPL.
64782
64783 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64784
64785         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64786         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64787         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64788         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64789         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64790         updated automatically by ../config/srclist-update.  This changes
64791         their license from LPGL to GPL.
64792
64793 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64794
64795         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64796         assumed to refer to the root of the most recent stable gettext version.
64797         * config/srclistvars.sh: Add defaults for eggert.
64798         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64799         Match "This program" as well as "The program".  This is needed
64800         for gettext.
64801
64802 2003-07-14  Jim Meyering  <jim@meyering.net>
64803
64804         Don't emit diagnostics.  Let callers do that.
64805         * lib/save-cwd.c: Don't include "error.h".
64806         (save_cwd): Don't call error.  Ensure that errno is valid
64807         when returning nonzero.
64808
64809         * lib/save-cwd.h (restore_cwd): Update prototype.
64810         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64811         Simplify.  Don't call error upon failure.  Let callers do that.
64812         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64813         when auditing is enabled.  But don't bother updating the #if.
64814
64815 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64816
64817         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64818         it breaks C++ compilation.
64819         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64820
64821 2003-07-10  Simon Josefsson  <jas@extundo.com>
64822
64823         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64824
64825 2003-07-10  Jim Meyering  <jim@meyering.net>
64826
64827         * m4/clock_time.m4: Remove trailing blank.
64828         * m4/intmax_t.m4: Likewise.
64829
64830 2003-07-10  Jim Meyering  <jim@meyering.net>
64831
64832         * lib/vasnprintf.c: Remove trailing blanks.
64833         Make cpp indentation consistent.
64834
64835 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64836
64837         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64838         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64839         Switch from LGPL to GPL.
64840
64841 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64842
64843         * config/srclist.txt: Sort sublists.  Add
64844         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64845         that differ from gnulib for one reason or another; we'd like this list
64846         to be smaller but for now let's document what we have.
64847
64848 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64849
64850         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64851         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64852         and sweeter "eval x=$x".
64853         * config/srclist.txt: Get lib/argp* from glibc.
64854
64855 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64856
64857         * lib/mktime.c: Fix some boundary cases and remove need for floating
64858         point.
64859
64860         Issue a compile-time diagnostic if time_t is floating point, or if
64861         two's complement arithmetic is not in effect, or if arithmetic
64862         right shift does not propagate the sign.  These assumptions were
64863         all in the original code but they weren't checked.
64864
64865         (TIME_T_MIDPOINT, verify): New macros.
64866         (__isleap): Remove; it has integer overflow problems.
64867         (leapyear): New function, without those problems.
64868         (ydhms_tm_diff): Remove; splitting into two parts.
64869         (ydhms_diff): New function, containing the arithmetic part of
64870         the old ydhms_tm_diff function.  Issue a compile-time
64871         diagnostic if we are not using C99 integer division.
64872         Avoid casts when possible.
64873         (guess_time_tm): New function, containing the checking part of
64874         the old ydhms_tm_diff function.  Return the new value, rather than
64875         the difference between it and the old.  Accept a new argument T
64876         so that *T specifies the old value.  Check for overflow in the result.
64877
64878         (__mktime_internal): Use a time_t offset, not a long int offset.
64879         This undoes the 2003-06-04 change, which is no longer needed now
64880         that we have better overflow checking.
64881         (localtime_offset): Likewise.
64882
64883         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64884         and long are 64-bit but int is only 32-bit.
64885         (ydhms_diff): Use long int to store year1 and yday1.
64886         Issue a compile-time diagnostic if long int is not wide enough.
64887
64888         (__mktime_internal): Use long int to store adjusted year and yday.
64889         Use plain C rather than preprocessor commands, if that doesn't
64890         affect efficiency.
64891         Check for overflow (and try to repair) after each probe
64892         rather than checking only at the very end.  This avoids some bugs
64893         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64894         does not equal GMT offset at maximum time).
64895         Use integer to check for overflow rather than floating point; this
64896         is more portable to non-IEEE hosts, and is a tad faster.
64897         When we detect that we are oscillating between two values,
64898         don't check whether tm_isdst has the requested value, since
64899         we already know the answer.  When tm_isdst has the wrong value,
64900         use a different heuristic to find the right one, based on the
64901         extreme values actually observed in practice in tz2003a,
64902         rather than the (overly optimistic) "previous 3 calendar quarters".
64903
64904         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64905         "T const" to accommodate glibc style.
64906         (check_result): Use less-confusing report format.  "long" -> "long int.
64907         (main): Likewise.
64908         Don't loop if the iteration overflows time_t.
64909         Allow a negative step in the iteration.
64910
64911 2003-07-06  Karl Berry  <karl@gnu.org>
64912
64913         * config/depcomp: update from automake.
64914         * config/config.sub: update from prep.
64915
64916 2003-07-03  Karl Berry  <karl@gnu.org>
64917
64918         * config/config.guess: update from prep.
64919
64920 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64921
64922         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64923         xreadlink.c now includes it unconditionally.
64924
64925 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64926
64927         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64928         having it depend on HAVE_SYS_TYPES_H.
64929
64930 2003-07-01  Bruno Haible  <bruno@clisp.org>
64931
64932         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64933         <sys/types.h> should be sufficient.
64934         Reported by Paul Eggert.
64935
64936 2003-06-26  Karl Berry  <karl@gnu.org>
64937
64938         * config/depcomp: update from automake.
64939
64940 2003-06-26  Bruno Haible  <bruno@clisp.org>
64941
64942         * modules/human: Depend on module stdbool.
64943
64944 2003-06-25  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/readlink: New file.
64947         * modules/xreadlink: Depend on it.
64948         * MODULES.html.sh (func_all_modules): Add readlink.
64949
64950 2003-06-25  Bruno Haible  <bruno@clisp.org>
64951
64952         * m4/readlink.m4: New file.
64953
64954 2003-06-25  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/readlink.c: New file.
64957
64958 2003-06-22  Karl Berry  <karl@gnu.org>
64959
64960         * config/srclist.txt: update mkinstalldirs from automake.
64961         * config/mkinstalldirs: update.
64962
64963 2003-06-22  Bruno Haible  <bruno@clisp.org>
64964
64965         Portability to mingw32.
64966         * m4/ssize_t.m4: New file, from GNU gettext.
64967         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
64968         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
64969
64970 2003-06-22  Bruno Haible  <bruno@clisp.org>
64971
64972         * modules/safe-read: Add m4/ssize_t.m4.
64973         * modules/xreadlink: Add m4/ssize_t.m4.
64974
64975 2003-06-20  Bruno Haible  <bruno@clisp.org>
64976
64977         Assume C89, so PARAMS isn't needed.
64978         * lib/unicodeio.h (PARAMS): Remove.
64979         * lib/unicodeio.c: Don't use PARAMS.
64980
64981 2003-06-18  Karl Berry  <karl@gnu.org>
64982
64983         * config/config.{guess,sub}: update from prep.
64984
64985 2003-06-18  Jim Meyering  <jim@meyering.net>
64986
64987         Merge changes from coreutils.
64988         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
64989         Remove explicit declarations of xmalloc and realloc.
64990         Include xalloc.h.
64991         (read_utmp): Remove anachronistic cast of xmalloc.
64992
64993 2003-06-17  Paul Eggert  <eggert@twinsun.com>
64994
64995         Assume C89, so PARAMS isn't needed.
64996         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
64997         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
64998         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
64999         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65000         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65001         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65002         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65003         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65004         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65005         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65006         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65007         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65008         no longer needed. Anyway, config.h should always be included before any
65009         other file.
65010
65011 2003-06-11  Simon Josefsson  <jas@extundo.com>
65012
65013         * modules/sysexits: New file.
65014         * MODULES.html.sh (func_all_modules): Add sysexits.
65015
65016 2003-06-11  Simon Josefsson  <jas@extundo.com>
65017
65018         * lib/sysexit_.h: New file.
65019
65020 2003-06-11  Derek Price  <derek@ximbiot.com>
65021
65022         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65023         necessary.
65024
65025 2003-06-11  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/sysexits.m4: New file.
65028
65029 2003-06-10  Simon Josefsson  <jas@extundo.com>
65030
65031         * lib/argp.h: New file, from glibc.
65032         * lib/argp-ba.c: New file, from glibc.
65033         * lib/argp-eexst.c: New file, from glibc.
65034         * lib/argp-fmtstream.c: New file, from glibc.
65035         * lib/argp-fmtstream.h: New file, from glibc.
65036         * lib/argp-fs-xinl.c: New file, from glibc.
65037         * lib/argp-help.c: New file, from glibc.
65038         * lib/argp-namefrob.h: New file, from glibc.
65039         * lib/argp-parse.c: New file, from glibc.
65040         * lib/argp-pv.c: New file, from glibc.
65041         * lib/argp-pvh.c: New file, from glibc.
65042         * lib/argp-xinl.c: New file, from glibc.
65043
65044 2003-06-10  Simon Josefsson  <jas@extundo.com>
65045
65046         * modules/strchrnul: New file.
65047
65048 2003-06-10  Simon Josefsson  <jas@extundo.com>
65049
65050         * modules/argp: New file.
65051
65052 2003-06-10  Simon Josefsson  <jas@extundo.com>
65053
65054         * m4/strchrnul.m4: New file.
65055
65056 2003-06-10  Simon Josefsson  <jas@extundo.com>
65057
65058         * lib/strchrnul.h: New file.
65059         * lib/strchrnul.c: New file.
65060
65061 2003-06-10  Bruno Haible  <bruno@clisp.org>
65062
65063         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65064
65065 2003-06-07  Karl Berry  <karl@gnu.org>
65066
65067         * config/config.{guess,sub}: update from prep.
65068
65069 2003-06-07  Jim Meyering  <jim@meyering.net>
65070
65071         * modules/strtod: Use $(...) notation, not @...@ for
65072         AC_REPLACE'd variables.
65073         * modules/localcharset: Likewise.
65074
65075 2003-06-07  Jim Meyering  <jim@meyering.net>
65076
65077         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65078         in place of my name in the copyright comment.
65079         Remove definition and uses of __P.
65080
65081         From coreutils.
65082         * lib/stat.c: Don't declare xmalloc explicitly.
65083         Instead, include "xalloc.h".
65084         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65085         xrealloc, and xcalloc return values.
65086         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65087         Improve comment.
65088         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65089
65090 2003-06-07  Bruno Haible  <bruno@clisp.org>
65091
65092         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65093         avoid AC_CONFIG_LINKS.
65094         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65095         fnmatch.h, to avoid AC_CONFIG_LINKS.
65096         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65097
65098 2003-06-07  Bruno Haible  <bruno@clisp.org>
65099
65100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65101         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65102         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65103         directory.
65104         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65105         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65106         directory.
65107
65108 2003-06-06  Jim Meyering  <jim@meyering.net>
65109
65110         Merge from coreutils.
65111         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65112         Consolidate declarations and initializations of *_base* locals.
65113
65114         Merge from coreutils.
65115         This avoids a core dump on systems without GNU putenv,
65116         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65117         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65118         (unsetenv): New static function, from GNU libc.
65119         (rpl_putenv): Use it.
65120
65121         * lib/modechange.c: Remove trailing blanks.
65122
65123         Merge from coreutils.
65124         * lib/fsusage.c: Remove declaration of statfs.
65125         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65126
65127         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65128
65129 2003-06-06  Jim Meyering  <jim@meyering.net>
65130
65131         * lib/stdbool_.h: Renamed from stdbool.h.in.
65132
65133 2003-06-06  Jim Meyering  <jim@meyering.net>
65134             Bruno Haible  <bruno@clisp.org>
65135
65136         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65137         Adjust Makefile.am snippet not to redirect directly to target.
65138         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65139
65140 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65141
65142         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65143         mismatch, look in future quarters as well as past.  This fixes a
65144         bug when processing fall-backwards gaps immediately after a long
65145         period of daylight-saving time.
65146
65147         * lib/mktime.c: Assume freestanding C89 or better.
65148         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65149         (__P): Remove; not used.
65150         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65151         (mktime, not_equal_tm, print_tm, check_result,
65152         main): Use prototypes.  Use const * where appropriate.
65153         (main): Fix typo in testing code that uncovered by above changes.
65154         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65155
65156 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65157
65158         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65159         locale.h, localeconv.  This merges changes from coreutils.
65160
65161         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65162         It can be removed after the next Autoconf is released.
65163         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65164         needed.
65165
65166 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65167
65168         * lib/mktime.c: Fix Debian bug 177940
65169         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65170         (localtime_offset): Now long int, not time_t, because we want it
65171         to be guaranteed to be signed.  All uses changed.
65172         (__mktime_internal): If overflow would occur when adding offset,
65173         don't add it.
65174
65175         Merge 'human' changes from coreutils.  Rewrite to support
65176         locale-specific notations like thousands separators.
65177         * lib/human.c: Simplify authorship notice.
65178         Include human.h immediately after config.h.
65179         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65180         <limits.h>: Do not include, since human.h does.
65181         (SIZE_MAX, UINTMAX_MAX): New macros.
65182         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65183         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65184         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65185         (power_letter): Renamed from suffixes.
65186         (generate_suffix_backwards): Remove.
65187         (adjust_value): Now takes int style (because of human.h changes)
65188         and long double value (for greater precision on some platforms).
65189         (group_number): New function.
65190         (human_readable): Use it.  Use integer options, not enum.
65191         Put the options before the sizes in the arg list.
65192         Support all the new options.
65193         The old human_readable function has been removed;
65194         use inttostr.h instead.
65195         (human_readable, default_block_size, humblock):
65196         Use uintmax_t, not int, for block sizes.
65197         (human_readable_inexact, block_size_types): Remove.
65198         (block_size_opts): New constant.
65199         (human_options): Renamed from human_block_size, with new signature
65200         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65201         * lib/human.h: Add copyright and authorship notice.
65202         Include <limits.h> and <stdbool.h> unconditionally.
65203         (PARAMS): Remove.  All uses removed.
65204         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65205         (enum human_inexact_style): Remove tag; now a nameless enum.
65206         (human_floor, human_ceiling, human_round_to_even): Now have
65207         values 2, 0, 1 rather than -1, 1, 0.
65208         (human_group_digits, human_suppress_point_zero, human_autoscale,
65209         human_base_1024, human_SI, human_B): New constants.
65210         (human_readable_inexact, human_block_size): Remove.
65211         (human_readable): Size args are now uintmax_t, not int.
65212         (human_options): New decl.
65213
65214         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65215         unnecessary now that we assume C89 or better.  This change
65216         imported from coreutils.
65217
65218         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65219         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65220         in the 2003-05-30 sync from glibc.
65221
65222         .h files should stand alone, but we shouldn't include <sys/types.h>
65223         if we can get away with just <stddef.h>.
65224
65225         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65226         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65227         rather than <sys/types.h>, as we merely need size_t.
65228         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65229         to get size_t.
65230         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65231         Include <stdio.h>, to get FILE.
65232         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65233         memcasecmp.h has included <stddef.h> and all we need is size_t.
65234         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65235         our interface, instead of including <sys/types.h>
65236
65237 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65238
65239         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65240         now, as glibc mktime is buggy on non-glibc systems.
65241
65242 2003-06-03  Karl Berry  <karl@gnu.org>
65243
65244         * config/config.sub: update from prep.
65245
65246 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65247
65248         [from coreutils]
65249         Fix some minor time-related bugs with POSIX time arguments.
65250         Some valid time stamps were being rejected (notably -1, and
65251         time stamps before 1900 on 64-bit hosts).  And some invalid
65252         time stamps were being accepted, e.g. September 31.
65253
65254         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65255         that we can return (time_t) -1 successfully.
65256         * lib/posixtm.c: Likewise.
65257         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65258         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65259         (t): Remove static var.
65260         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65261         of static var.  All uses changed.
65262         (year): Do not reject years before 1900; they can occur with
65263         64-bit time_t.
65264         (posix_time_parse): Do not check for out-of-range components;
65265         that is now the caller's responsibility, since our checks were
65266         only approximations.
65267         (posixtime): Use mktime to check for out-of-range components,
65268         since it knows them exactly.
65269         If mktime returns (time_t) -1, check whether an error actually occurred
65270         by invoking localtime on -1.
65271         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65272         posixtime failures better.
65273         Improve the test data (in comments only).
65274
65275 2003-06-02  Karl Berry  <karl@gnu.org>
65276
65277         * config/mkinstalldirs (version): new variable.
65278         (--version): new option.
65279         (usage): improve message.
65280
65281 2003-05-30  Karl Berry  <karl@gnu.org>
65282
65283         * lib/mktime.c: update from libc.
65284
65285 2003-05-30  Bruno Haible  <bruno@clisp.org>
65286
65287         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65288         * config/config.rpath: Upgrade to gettext-0.12.1.
65289
65290 2003-05-30  Bruno Haible  <bruno@clisp.org>
65291
65292         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65293         * m4/nls.m4: New file, from gettext-0.12.1.
65294         * m4/po.m4: New file, from gettext-0.12.1.
65295         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65296
65297 2003-05-30  Bruno Haible  <bruno@clisp.org>
65298
65299         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65300         * lib/localcharset.h: Likewise.
65301         * lib/localcharset.c: Likewise.
65302
65303 2003-05-29  Karl Berry  <karl@gnu.org>
65304
65305         * config/config.rpath: update from gettext.
65306
65307 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65308
65309         Assume the headers required for C89 freestanding compilers.
65310         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65311         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65312         * m4/human.m4 (gl_HUMAN): Likewise.
65313         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65314         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65315         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65316         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65317         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65318         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65319
65320 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65321
65322         Assume the headers required for C89 freestanding compilers.
65323         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65324         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65325         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65326         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65327         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65328         define, since <limits.h> is guaranteed to do that.
65329         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65330         * lib/exclude.c: Include <stdbool.h> unconditionally.
65331         * lib/tempname.c: Include <stddef.h> unconditionally.
65332         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65333         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65334         <stddef.h> does that.
65335         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65336         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65337         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65338         needed.
65339         * lib/xstrtol.c: Likewise.
65340         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65341         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65342
65343         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65344         warnings on some platforms.
65345
65346         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65347         arbitrarily.
65348
65349 2003-05-26  Jim Meyering  <jim@meyering.net>
65350
65351         Merge in a change from coreutils:
65352         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65353         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65354         that condition, rather than `-1' which is slightly misleading.
65355         Change the name of the cache variable to have the gl_ prefix.
65356         Prompted by a patch from Richard Dawe for DJGPP.
65357
65358 2003-05-24  Karl Berry  <karl@gnu.org>
65359
65360         * config/config.guess: update from prep.
65361
65362 2003-05-22  Karl Berry  <karl@gnu.org>
65363
65364         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65365
65366 2003-05-20  Karl Berry  <karl@gnu.org>
65367
65368         * config/config.guess: update from prep.
65369
65370 2003-05-18  Karl Berry  <karl@gnu.org>
65371
65372         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65373         might actually be set by the user.
65374
65375         * config/depcomp, install-sh, mdate-sh: update from automake.
65376
65377 2003-05-17  Bruno Haible  <bruno@clisp.org>
65378
65379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65380         invalid expansion for AC_EGREP_CPP.
65381         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65382         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65383         Suggested by Akim Demaille <akim@epita.fr> in
65384         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65385
65386 2003-05-12  Jim Meyering  <jim@meyering.net>
65387
65388         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65389         the space-padded-by-default conversion specifiers, %e, %k, %l.
65390
65391 2003-05-12  Bruno Haible  <bruno@clisp.org>
65392
65393         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65394         the string is longer than 4 KB.
65395
65396 2003-05-11  Karl Berry  <karl@gnu.org>
65397
65398         * config/config.{guess,sub}: update from prep.
65399
65400 2003-05-09  Bruno Haible  <bruno@clisp.org>
65401
65402         * modules/error: Add m4/strerror_r.m4 to file list.
65403
65404 2003-05-03  Bruno Haible  <bruno@clisp.org>
65405
65406         Upgrade to Unicode-4.0.
65407         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65408         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65409         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65410         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65411         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65412         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65413         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65414         Change width of U+E0100..U+E01EF from 1 to 0.
65415
65416 2003-04-25  Jim Meyering  <jim@meyering.net>
65417
65418         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65419         of type size_t, not int.
65420
65421 2003-04-25  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/copy-file.c: Include <stddef.h>, for size_t.
65424
65425 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65426
65427         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65428         code which expansion is under static control.  Patch imported from
65429         Akim Demaille's patch to Bison; see
65430         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65431
65432 2003-04-14  Bruno Haible  <bruno@clisp.org>
65433
65434         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65435
65436 2003-04-11  Jim Meyering  <jim@meyering.net>
65437
65438         Merge changes from Coreutils.
65439
65440         2003-03-22  Jim Meyering  <jim@meyering.net>
65441
65442         * lib/strftime.c (widen): Cast alloca return value to proper type.
65443
65444         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65445
65446         From GNU libc.
65447         * lib/strftime.c (my_strftime): Handle very large width
65448         specifications for numeric values correctly.  Improve checks for
65449         overflow.
65450
65451         2003-01-19  Jim Meyering  <jim@meyering.net>
65452
65453         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65454         definitions.
65455         (nl_get_alt_digit) [! defined my_strftime]: Define.
65456         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65457         _nl_get_alt_digit and _nl_get_walt_digit.
65458
65459         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65460         libc. These changes have no effect outside of _LIBC.
65461
65462 2003-04-10  Bruno Haible  <bruno@clisp.org>
65463
65464         * modules/findprog: New file.
65465         * MODULES.html.sh (func_all_modules): Add it.
65466
65467 2003-04-10  Bruno Haible  <bruno@clisp.org>
65468
65469         * m4/findprog.m4: New file.
65470         * m4/eaccess.m4: New file.
65471
65472 2003-04-10  Bruno Haible  <bruno@clisp.org>
65473
65474         * lib/findprog.h: New file, from GNU gettext.
65475         * lib/findprog.c: New file, from GNU gettext.
65476
65477 2003-04-05  Jim Meyering  <jim@meyering.net>
65478
65479         Merge changes from Coreutils.
65480
65481         * lib/exclude.h (PARAMS): Remove definition and uses.
65482         * lib/exclude.c: Remove uses of `PARAMS'.
65483
65484         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65485         Add test-cases for DOS filenames. Declare program_name.
65486         (main): Set up program_name.  Patch by Rich Dawe.
65487
65488         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65489         error from mntctl.
65490         Use mntctl's return value to drive the entry-processing loop, since
65491         we can't rely on the value of the vmt_length member in the last
65492         entry.  On some systems doing so could result in exhausting
65493         virtual memory.  Based in part on a patch from Mike Jetzer.
65494
65495 2003-04-04  Bruno Haible  <bruno@clisp.org>
65496
65497         * modules/linebreak: New file.
65498         * MODULES.html.sh (func_all_modules): Add it.
65499
65500 2003-04-04  Bruno Haible  <bruno@clisp.org>
65501
65502         * m4/linebreak.m4: New file.
65503
65504 2003-04-04  Bruno Haible  <bruno@clisp.org>
65505
65506         * lib/linebreak.h: New file, from GNU gettext.
65507         * lib/linebreak.c: New file, from GNU gettext with slight
65508         modifications.
65509         * lib/lbrkprop.h: New file, from GNU gettext.
65510
65511 2003-04-03  Bruno Haible  <bruno@clisp.org>
65512
65513         * modules/utf8-ucs4: New file.
65514         * modules/utf16-ucs4: New file.
65515         * modules/ucs4-utf8: New file.
65516         * modules/ucs4-utf16: New file.
65517         * MODULES.html.sh (func_all_modules): Add them.
65518
65519 2003-04-03  Bruno Haible  <bruno@clisp.org>
65520
65521         * m4/utf-ucs4.m4: New file.
65522         * m4/ucs4-utf.m4: New file.
65523
65524 2003-04-03  Bruno Haible  <bruno@clisp.org>
65525
65526         * lib/utf8-ucs4.h: New file, from GNU gettext.
65527         * lib/utf16-ucs4.h: New file, from GNU gettext.
65528         * lib/ucs4-utf8.h: New file, from GNU gettext.
65529         * lib/ucs4-utf16.h: New file, from GNU gettext.
65530
65531 2003-04-02  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/binary-io: New file.
65534         * MODULES.html.sh (func_all_modules): Add it.
65535
65536 2003-04-02  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/binary-io.h: New file, from GNU gettext.
65539
65540 2003-04-01  Bruno Haible  <bruno@clisp.org>
65541
65542         * modules/pathname: New file.
65543         * MODULES.html.sh (func_all_modules): Add it.
65544
65545 2003-04-01  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/pathname.h: New file, from GNU gettext.
65548         * lib/concatpath.c: New file, from GNU gettext.
65549
65550 2003-03-30  Bruno Haible  <bruno@clisp.org>
65551
65552         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65553
65554 2003-03-30  Bruno Haible  <bruno@clisp.org>
65555
65556         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65557         function chown() doesn't exist.
65558
65559 2003-03-28  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/copy-file: New file.
65562         * MODULES.html.sh (func_all_modules): Add it.
65563
65564 2003-03-28  Bruno Haible  <bruno@clisp.org>
65565
65566         * m4/copy-file.m4: New file.
65567
65568 2003-03-28  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/copy-file.h: New file, from GNU gettext.
65571         * lib/copy-file.c: New file, from GNU gettext.
65572
65573 2003-03-18  Jim Meyering  <jim@meyering.net>
65574
65575         * lib/quote.c (quote_n): Fix typo in comment.
65576
65577 2003-03-18  Bruno Haible  <bruno@clisp.org>
65578
65579         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65580         checking.
65581         * m4/onceonly_2_57.m4: Likewise.
65582
65583 2003-03-17  Bruno Haible  <bruno@clisp.org>
65584
65585         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65586         (m4_quote): Remove macro.
65587         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65588
65589 2003-03-14  Jim Meyering  <jim@meyering.net>
65590
65591         Merge changes from Coreutils.
65592         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65593         to be const, in order to avoid warnings.
65594         (obstack_room): Likewise.
65595         (obstack_empty_p): Likewise.
65596
65597 2003-03-14  Bruno Haible  <bruno@clisp.org>
65598
65599         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65600         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65601
65602 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65603
65604         Merge changes from Bison.
65605         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65606         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65607         when compiling Bison 1.875's `bitset bset = obstack_alloc
65608         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65609         * lib/hash.c: Include <stdbool.h> unconditionally.
65610
65611 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65612
65613         * m4/onceonly.m4 (m4_quote): New macro.
65614         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65615         Quote AC_FOREACH variable-expansions properly.
65616
65617 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65618
65619         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65620
65621 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65622
65623         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65624         Reported by Bruce Becker; see:
65625         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65626
65627 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65628             Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65631         Reported by John Hughes, see
65632         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65633
65634 2003-02-20  Bruno Haible  <bruno@clisp.org>
65635
65636         * MODULES.html.sh (func_all_modules): Add poll.
65637
65638 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65639
65640         * modules/poll: New file.
65641
65642 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65643
65644         * lib/poll_.h: New file.
65645         * lib/poll.c: New file.
65646
65647 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65648
65649         * m4/poll.m4: New file.
65650
65651 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65652
65653         * modules/mathl: New file.
65654
65655 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65656
65657         * lib/mathl.h: New file.
65658         * lib/acosl.c: New file.
65659         * lib/asinl.c: New file.
65660         * lib/atanl.c: New file.
65661         * lib/ceill.c: New file.
65662         * lib/cosl.c: New file.
65663         * lib/expl.c: New file.
65664         * lib/floorl.c: New file.
65665         * lib/frexpl.c: New file.
65666         * lib/ldexpl.c: New file.
65667         * lib/logl.c: New file.
65668         * lib/sincosl.c: New file.
65669         * lib/sinl.c: New file.
65670         * lib/sqrtl.c: New file.
65671         * lib/tanl.c: New file.
65672         * lib/trigl.c: New file.
65673         * lib/trigl.h: New file.
65674
65675 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65676
65677         * m4/mathl.m4: New file.
65678
65679 2003-02-18  Bruno Haible  <bruno@clisp.org>
65680
65681         * MODULES.html.sh (func_all_modules): Add mathl.
65682
65683 2003-02-17  Bruno Haible  <bruno@clisp.org>
65684
65685         * modules/mkdtemp: New module.
65686         * MODULES.html.sh (func_all_modules): Add it.
65687
65688 2003-02-17  Bruno Haible  <bruno@clisp.org>
65689
65690         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65691
65692 2003-02-17  Bruno Haible  <bruno@clisp.org>
65693
65694         * lib/mkdtemp.h: New file, from GNU gettext.
65695         * lib/mkdtemp.c: New file, from GNU gettext.
65696
65697 2003-02-02  Jim Meyering  <jim@meyering.net>
65698
65699         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65700         e.g. glibc-2.2.93.
65701
65702 2003-01-31  Bruno Haible  <bruno@clisp.org>
65703
65704         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65705         'rpl_rename'.
65706         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65707         'rpl_strnlen'.
65708         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65709         'rpl_strtod'.
65710         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65711         'rpl_utime'.
65712
65713 2003-01-31  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/rename.c: #undef rename before defining rpl_rename.
65716         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65717
65718 2003-01-30  Bruno Haible  <bruno@clisp.org>
65719
65720         * modules/vasnprintf, modules/vasprintf: New modules.
65721         * MODULES.html.sh (func_all_modules): Add them.
65722
65723 2003-01-30  Bruno Haible  <bruno@clisp.org>
65724
65725         * m4/signed.m4: New file, from GNU gettext.
65726         * m4/longdouble.m4: New file, from GNU gettext.
65727         * m4/wchar_t.m4: New file, from GNU gettext.
65728         * m4/wint_t.m4: New file, from GNU gettext.
65729         * m4/vasnprintf.m4: New file.
65730         * m4/vasprintf.m4: New file.
65731
65732 2003-01-30  Bruno Haible  <bruno@clisp.org>
65733
65734         * lib/printf-args.h: New file, from GNU gettext.
65735         * lib/printf-args.c: New file, from GNU gettext.
65736         * lib/printf-parse.h: New file, from GNU gettext.
65737         * lib/printf-parse.c: New file, from GNU gettext.
65738         * lib/vasnprintf.h: New file, from GNU gettext.
65739         * lib/vasnprintf.c: New file, from GNU gettext.
65740         * lib/asnprintf.c: New file, from GNU gettext.
65741         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65742         * lib/vasprintf.c: New file, from GNU gettext.
65743         * lib/asprintf.c: New file, from GNU gettext.
65744
65745 2003-01-29  Bruno Haible  <bruno@clisp.org>
65746
65747         * modules/stpncpy: New module.
65748         * MODULES.html.sh (func_all_modules): Add it.
65749
65750 2003-01-29  Bruno Haible  <bruno@clisp.org>
65751
65752         * m4/stpncpy.m4: New file.
65753
65754 2003-01-29  Bruno Haible  <bruno@clisp.org>
65755
65756         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65757         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65758
65759 2003-01-28  Bruno Haible  <bruno@clisp.org>
65760
65761         * modules/c-ctype: New module.
65762         * MODULES.html.sh (func_all_modules): Add it.
65763
65764 2003-01-28  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65767         Paul Eggert.
65768         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65769         Paul Eggert.
65770
65771 2003-01-27  Bruno Haible  <bruno@clisp.org>
65772
65773         * modules/xsetenv: New module.
65774         * MODULES.html.sh (func_all_modules): Add it.
65775
65776 2003-01-27  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/xsetenv.h: New file, from GNU gettext.
65779         * lib/xsetenv.c: New file, from GNU gettext.
65780
65781 2003-01-23  Jim Meyering  <jim@meyering.net>
65782
65783         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65784         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65785
65786 2003-01-23  Bruno Haible  <bruno@clisp.org>
65787
65788         * modules/minmax: New module.
65789         * MODULES.html.sh (func_all_modules): Add it.
65790
65791 2003-01-23  Bruno Haible  <bruno@clisp.org>
65792
65793         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65794         Eggert.
65795
65796 2003-01-22  Bruno Haible  <bruno@clisp.org>
65797
65798         * modules/exit: New module.
65799         * MODULES.html.sh (func_all_modules): Add it.
65800
65801 2003-01-22  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/exit.h: New file, from GNU gettext.
65804
65805 2003-01-19  Bruno Haible  <bruno@clisp.org>
65806
65807         * gnulib-tool: Recognize option --extract-maintainer.
65808         (func_get_maintainer): New function.
65809         * modules/*: Add Maintainer entry.
65810
65811 2003-01-16  Jim Meyering  <jim@meyering.net>
65812
65813         * m4/regex.m4: The `regex' struct is both input and output.
65814         Initialize it before each use.  Patch by Tim Waugh.
65815
65816 2003-01-16  Bruno Haible  <bruno@clisp.org>
65817
65818         * MODULES.html.sh: Add a table of contents. Add the module name as
65819         leftmost column. Add hyperlinks.
65820
65821 2003-01-15  Bruno Haible  <bruno@clisp.org>
65822
65823         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65824
65825 2003-01-15  Bruno Haible  <bruno@clisp.org>
65826
65827         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65828         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65829         suffix.
65830
65831 2003-01-15  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65834
65835 2003-01-15  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65838         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65839
65840 2003-01-14  Jim Meyering  <jim@meyering.net>
65841
65842         * lib/same.c (same_name): Tweak a comment.
65843
65844 2003-01-14  Bruno Haible  <bruno@clisp.org>
65845
65846         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65847         when a string comparison is sufficient.
65848
65849 2003-01-14  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65852         'unsigned int'.
65853
65854 2003-01-14  Bruno Haible  <bruno@clisp.org>
65855
65856         * lib/hash-pjw.c: Add comment about low quality of this function.
65857
65858 2003-01-13  Bruno Haible  <bruno@clisp.org>
65859
65860         * modules/stpcpy: Distribute lib/stpcpy.h.
65861         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65862
65863 2003-01-13  Bruno Haible  <bruno@clisp.org>
65864
65865         * modules/*: Add a description.
65866         * modules/strpbrk: Fix Makefile.am snippet.
65867         * modules/strtoimax: Fix dependencies.
65868         * modules/strtoumax: Likewise.
65869
65870 2003-01-13  Bruno Haible  <bruno@clisp.org>
65871
65872         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65873         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65874         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65875
65876 2003-01-13  Bruno Haible  <bruno@clisp.org>
65877
65878         * gnulib-tool (func_create_testdir): Store config/* files in the main
65879         directory.
65880         * config.rpath: Move to ...
65881         * config/config.rpath: ... here.
65882         * modules/gettext: Contains config/config.rpath, not config.rpath.
65883         * modules/iconv: Likewise.
65884
65885 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65886
65887         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65888         to avoid collisions with libcurses and libreadline.
65889
65890         * m4/getstr.m4: Remove.
65891         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65892
65893 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65894
65895         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65896         to avoid collisions with libcurses and libreadline.
65897
65898         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65899         * lib/getstr.h, getstr.c: Remove.
65900         * lib/getline.c: Include "getline.h", to check interface.
65901         Move body of old getstr.c here: this defines MIN_CHUNK and
65902         declares getdelim2, which is renamed from getstr.
65903         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65904
65905         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65906         All uses changed.
65907         * lib/linebuffer.h: Likewise.
65908         (readline): Remove backward-compatibility macro.
65909
65910 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65911
65912         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65913         to avoid collisions with libcurses and libreadline.
65914         * getstr: Remove.
65915         * MODULES.html.sh: Remove getstr.
65916         * modules/getline: Depend on unlocked-io, not getstr.
65917
65918 2003-01-12  Jim Meyering  <jim@meyering.net>
65919
65920         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65921
65922 2003-01-10  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/alloca: Change Makefile.am requirements. Simplify Include
65925         requirements. Add lib/alloca_.h to file list.
65926
65927 2003-01-10  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65930
65931 2003-01-10  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/alloca_.h: New file.
65934         * lib/getdate.y: Unconditionally include alloca.h.
65935         * lib/makepath.c: Likewise.
65936         * lib/setenv.c: Likewise.
65937         * lib/userspec.c: Likewise.
65938
65939 2003-01-09  Karl Berry  <karl@gnu.org>
65940
65941         * MODULES.html.sh: include `dirname $0` in PATH, to find
65942         gnulib-tool.
65943
65944 2003-01-09  Bruno Haible  <bruno@clisp.org>
65945
65946         * modules/stdbool: Change configure.ac, Makefile.am requirements.
65947         Simplify Include requirements. Add lib/stdbool.h.in to file list.
65948
65949 2003-01-09  Bruno Haible  <bruno@clisp.org>
65950
65951         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
65952
65953 2003-01-09  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/stdbool.h.in: New file.
65956
65957 2003-01-09  Bruno Haible  <bruno@clisp.org>
65958
65959         * gnulib-tool (func_all_modules): Ignore files ending in ~.
65960         * MODULES.html.sh: Likewise.
65961
65962 2003-01-08  Jim Meyering  <jim@meyering.net>
65963
65964         * lib/full-write.c: Undefine and define-away `const' after inclusion
65965         of errno.h, not before.  Suggestion from Bruno Haible.
65966
65967 2003-01-08  Bruno Haible  <bruno@clisp.org>
65968
65969         * modules/full-read: Depend on full-write.
65970
65971 2003-01-08  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/safe-read.c: Include specification header first, to ensure its
65974         selfcontainedness.
65975         * lib/full-write.c: Likewise.
65976
65977 2003-01-07  Jim Meyering  <jim@meyering.net>
65978
65979         * lib/full-write.c: Rework so that it may serve to define full_read,
65980         too.
65981         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
65982
65983 2003-01-07  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/strtoimax.c: Include <stdint.h> as an alternative to
65986         <inttypes.h>.
65987         * lib/xstrtol.h: Likewise.
65988         * lib/xstrtoimax.c: Likewise.
65989         * lib/xstrtoumax.c: Likewise.
65990         * lib/human.h: Likewise.
65991
65992         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
65993         on systems that have <inttypes.h> but not <stdint.h>.
65994
65995 2003-01-07  Bruno Haible  <bruno@clisp.org>
65996
65997         * MODULES.html.sh: Add copyright notice.
65998         (missed_files): Omit CVS directory entries.
65999         (func_module): Make it work with sed-3.02.
66000         * MODULES.txt: Remove file.
66001
66002 2003-01-06  Jim Meyering  <jim@meyering.net>
66003
66004         * lib/version-etc.c: Update year in translatable copyright string.
66005
66006 2003-01-03  Karl Berry  <karl@gnu.org>
66007
66008         * config/config.{guess,sub}: update from prep.
66009
66010 2003-01-02  Karl Berry  <karl@gnu.org>
66011
66012         * doc/COPYING.DOC: belatedly updated to 1.2.
66013
66014 2003-01-01  Karl Berry  <karl@gnu.org>
66015
66016         * gnulib-tool (func_verify_module): report module name $module in
66017         error message, not $1.
66018         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66019         be created, only if it doesn't exist.
66020         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66021
66022 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66023
66024         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66025
66026 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66027
66028         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66029         memcmp if strcoll doesn't work.
66030
66031 2002-12-31  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66034         nonempty.
66035
66036 2002-12-31  Bruno Haible  <bruno@clisp.org>
66037
66038         * lib/memcoll.c (STRCOLL): New macro.
66039         (memcoll): Use it.
66040
66041 2002-12-31  Bruno Haible  <bruno@clisp.org>
66042
66043         * lib/localcharset.h: New file.
66044         * lib/localcharset.c: Include it.
66045         * lib/unicodeio.c: Likewise.
66046
66047 2002-12-31  Bruno Haible  <bruno@clisp.org>
66048
66049         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66050         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66051
66052 2002-12-31  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/getline.h: Include <stddef.h>, for size_t.
66055
66056         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66057         * lib/unicodeio.c: Don't include <stddef.h>.
66058
66059 2002-12-31  Bruno Haible  <bruno@clisp.org>
66060
66061         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66062         HAVE_TM_ZONE.
66063
66064 2002-12-24  Karl Berry  <karl@gnu.org>
66065
66066         * config/config.guess: update from prep.
66067
66068 2002-12-24  Bruno Haible  <bruno@clisp.org>
66069
66070         General infrasructure.
66071         * m4/README: Rewritten.
66072         * m4/onceonly.m4: New file.
66073         * m4/onceonly_2_57.m4: New file.
66074
66075         Module atexit.
66076         * m4/atexit.m4: New file.
66077
66078         Module strtod.
66079         * m4/strtod.m4: New file.
66080
66081         Module strtol.
66082         * m4/strtol.m4: New file.
66083
66084         Module strtoul.
66085         * m4/strtoul.m4: New file.
66086
66087         Module memchr.
66088         * m4/memchr.m4: New file.
66089
66090         Module memcmp.
66091         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66092         (jm_FUNC_MEMCMP): Invoke it.
66093
66094         Module memcpy.
66095         * m4/memcpy.m4: New file.
66096
66097         Module memmove.
66098         * m4/memmove.m4: New file.
66099
66100         Module memset.
66101         * m4/memset.m4: New file.
66102
66103         Module strcspn.
66104         * m4/strcspn.m4: New file.
66105
66106         Module strpbrk.
66107         * m4/strpbrk.m4: New file.
66108
66109         Module strstr.
66110         * m4/strstr.m4: New file.
66111
66112         Module strerror.
66113         * m4/strerror.m4: New file.
66114
66115         Module mktime.
66116         * m4/mktime.m4: Renamed from jm-mktime.m4.
66117         (gl_PREREQ_MKTIME): New macro.
66118         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66119
66120         Module malloc.
66121         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66122         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66123         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66124
66125         Module realloc.
66126         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66127         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66128         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66129
66130         Module strftime.
66131         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66132         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66133         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66134         gl_TM_GMTOFF.
66135         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66136
66137         Module xalloc.
66138         * m4/xalloc.m4: New file.
66139
66140         Module alloca.
66141         * m4/alloca.m4: New file.
66142
66143         Module putenv.
66144         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66145         (jm_FUNC_PUTENV): Invoke it.
66146
66147         Module setenv.
66148         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66149         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66150         when invoked twice.
66151         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66152         gt_FUNC_SETENV.
66153
66154         Module memrchr.
66155         * m4/memrchr.m4: New file.
66156
66157         Module stpcpy.
66158         * m4/stpcpy.m4: New file.
66159
66160         Module strcase.
66161         * m4/strcase.m4: New file.
66162
66163         Module strdup.
66164         * m4/strdup.m4: New file.
66165
66166         Module strnlen.
66167         * m4/strnlen.m4: New file.
66168
66169         Module strndup.
66170         * m4/strndup.m4: New file.
66171
66172         Module xstrtod.
66173         * m4/xstrtod.m4: New file.
66174
66175         Module xstrtol.
66176         * m4/xstrtol.m4: New file.
66177
66178         Module getdate.
66179         * m4/getdate.m4: New file.
66180
66181         Module unlocked-io.
66182         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66183         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66184         * m4/jm-glibc-io.m4n: Remove file.
66185
66186         Module long-options.
66187         * m4/long-options.m4: New file.
66188
66189         Module md5.
66190         * m4/md5.m4: New file.
66191
66192         Module sha.
66193         * m4/sha.m4: New file.
66194
66195         Module getstr.
66196         * m4/getstr.m4: New file.
66197
66198         Module getline.
66199         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66200         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66201         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66202         simply getline. Infoke gl_PREREQ_GETLINE.
66203
66204         Module obstack.
66205         * m4/obstack.m4: New file.
66206
66207         Module hash.
66208         * m4/hash.m4: New file.
66209
66210         Module readtokens.
66211         * m4/readtokens.m4: New file.
66212
66213         Module strverscmp.
66214         * m4/strverscmp.m4: New file.
66215
66216         Module stdbool.
66217         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66218         OSF/1.
66219
66220         Module strtoll.
66221         * m4/strtoll.m4: New file.
66222
66223         Module strtoull.
66224         * m4/strtoull.m4: New file.
66225
66226         Module strtoimax.
66227         * m4/strtoimax.m4: New file.
66228
66229         Module strtoumax.
66230         * m4/strtoumax.m4: New file.
66231
66232         Module xstrtoimax.
66233         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66234         jm_AC_PREREQ_XSTRTOIMAX.
66235         Moved the strtol prerequisites to strtol.m4.
66236         Moved the strtoll prerequisites to strtoll.m4.
66237         Moved the strtoimax prerequisites to strtoimax.m4.
66238
66239         Module xstrtoumax.
66240         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66241         jm_AC_PREREQ_XSTRTOUMAX.
66242         Moved the strtoul prerequisites to strtoul.m4.
66243         Moved the strtoull prerequisites to strtoull.m4.
66244         Moved the strtoumax prerequisites to strtoumax.m4.
66245
66246         Module chown.
66247         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66248         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66249
66250         Module dup2.
66251         * m4/dup2.m4: New file.
66252
66253         Module ftruncate.
66254         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66255         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66256
66257         Module getgroups.
66258         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66259         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66260
66261         Module gettimeofday.
66262         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66263         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66264         gl_PREREQ_GETTIMEOFDAY.
66265
66266         Module mkdir.
66267         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66268         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66269
66270         Module mkstemp.
66271         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66272         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66273         jm_AC_TYPE_UINTMAX_T.
66274         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66275
66276         Module stat.
66277         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66278         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66279
66280         Module lstat.
66281         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66282         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66283
66284         Module timespec.
66285         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66286         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66287         * m4/st_mtim.m4: Indentation.
66288
66289         Module nanosleep.
66290         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66291         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66292         gl_PREREQ_NANOSLEEP.
66293
66294         Module regex.
66295         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66296         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66297         (gl_REGEX): New macro.
66298
66299         Module rename.
66300         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66301         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66302
66303         Module rmdir.
66304         * m4/rmdir.m4: New file.
66305
66306         Module utime.
66307         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66308         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66309         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66310
66311         Module dirname.
66312         * m4/dirname.m4: New file.
66313
66314         Module getopt.
66315         * m4/getopt.m4: New file.
66316
66317         Module unistd-safer.
66318         * m4/unistd-safer.m4: New file.
66319
66320         Module fnmatch.
66321         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66322         declaration.
66323         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66324         (gl_FUNC_FNMATCH_POSIX): New macro.
66325         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66326         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66327         simply fnmatch.
66328
66329         Module exclude.
66330         * m4/exclude.m4: New file.
66331
66332         Module human.
66333         * m4/human.m4: New file.
66334
66335         Module acl.
66336         * m4/acl.m4: Nop.
66337
66338         Module backupfile.
66339         * m4/backupfile.m4: New file.
66340         * m4/d-ino.m4: Indentation.
66341
66342         Module fsusage.
66343         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66344         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66345         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66346
66347         Module dirfd.
66348         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66349         requirements.
66350
66351         Module euidaccess.
66352         * m4/euidaccess.m4: New file.
66353
66354         Module file-type.
66355         * m4/file-type.m4: New file.
66356
66357         Module fileblocks.
66358         * m4/fileblocks.m4: New file.
66359
66360         Module filemode.
66361         * m4/filemode.m4: New file.
66362
66363         Module isdir.
66364         * m4/isdir.m4: New file.
66365
66366         Module lchown.
66367         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66368         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66369
66370         Module makepath.
66371         * m4/makepath.m4: New file.
66372
66373         Module modechange.
66374         * m4/modechange.m4: New file.
66375
66376         Module mountlist.
66377         * m4/mountlist.m4: New file.
66378         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66379         Indentation.
66380
66381         Module path-concat.
66382         * m4/path-concat.m4: New file.
66383
66384         Module pathmax.
66385         * m4/pathmax.m4: New file.
66386
66387         Module same.
66388         * m4/same.m4: New file.
66389
66390         Module save-cwd.
66391         * m4/save-cwd.m4: New file.
66392
66393         Module savedir.
66394         * m4/savedir.m4: New file.
66395
66396         Module xgetcwd.
66397         * m4/xgetcwd.m4: New file.
66398         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66399
66400         Module xreadlink.
66401         * m4/xreadlink.m4: New file.
66402
66403         Module safe-read.
66404         * m4/safe-read.m4: New file.
66405
66406         Module safe-write.
66407         * m4/safe-write.m4: New file.
66408
66409         Module closeout.
66410         * m4/closeout.m4: New file.
66411
66412         Module stdio-safer.
66413         * m4/stdio-safer.m4: New file.
66414
66415         Module getpass.
66416         * m4/getpass.m4: New file.
66417
66418         Module getugroups.
66419         * m4/getugroups.m4: New file.
66420
66421         Module group-member.
66422         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66423         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66424
66425         Module idcache.
66426         * m4/idcache.m4: New file.
66427
66428         Module userspec.
66429         * m4/userspec.m4: New file.
66430
66431         Module gettime.
66432         * m4/clock_time.m4: New file.
66433         * m4/gettime.m4: New file.
66434
66435         Module settime.
66436         * m4/settime.m4: New file.
66437
66438         Module posixtm.
66439         * m4/posixtm.m4: New file.
66440
66441         Module gethostname.
66442         * m4/gethostname.m4: New file.
66443
66444         Module canon-host.
66445         * m4/canon-host.m4: New file.
66446
66447         Module gettext.
66448         * m4/codeset.m4: New file, from gettext-0.11.5.
66449         * m4/gettext.m4: New file, from gettext-0.11.5.
66450         * m4/glibc21.m4: New file, from gettext-0.11.5.
66451         * m4/iconv.m4: New file, from gettext-0.11.5.
66452         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66453         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66454         * m4/inttypes.m4: New file, from gettext-0.11.5.
66455         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66456         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66457         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66458         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66459         * m4/lib-link.m4: New file, from gettext-0.11.5.
66460         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66461         * m4/progtest.m4: New file, from gettext-0.11.5.
66462         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66463         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66464         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66465
66466         Module localcharset.
66467         * m4/localcharset.m4: New file.
66468
66469         Module hard-locale.
66470         * m4/hard-locale.m4: New file.
66471
66472         Module mbswidth.
66473         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66474         onceonly macros.
66475         * m4/mbrtowc.m4: Add comment.
66476
66477         Module memcasecmp.
66478         * m4/memcasecmp.m4: New file.
66479
66480         Module memcoll.
66481         * m4/memcoll.m4: New file.
66482
66483         Module unicodeio.
66484         * m4/unicodeio.m4: New file.
66485
66486         Module rpmatch.
66487         * m4/rpmatch.m4: New file.
66488
66489         Module yesno.
66490         * m4/yesno.m4: New file.
66491
66492         Module exitfail.
66493         * m4/exitfail.m4: New file.
66494
66495         Module c-stack.
66496         * m4/c-stack.m4 (gl_C_STACK): New macro.
66497         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66498
66499         Module error.
66500         * m4/error.m4 (gl_ERROR): New macro.
66501         (jm_PREREQ_ERROR): Use onceonly macros.
66502
66503         Module fatal.
66504         * m4/fatal.m4: New file.
66505
66506         Module getloadavg.
66507         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66508         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66509
66510         Module getpagesize.
66511         * m4/getpagesize.m4: New file.
66512
66513         Module getusershell.
66514         * m4/getusershell.m4: New file.
66515
66516         Module physmem.
66517         * m4/physmem.m4: New file.
66518
66519         Module posixver.
66520         * m4/posixver.m4: New file.
66521
66522         Module quotearg.
66523         * m4/quotearg.m4: New file.
66524
66525         Module quote.
66526         * m4/quote.m4: New file.
66527
66528         Module readutmp.
66529         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66530
66531         Module sig2str.
66532         * m4/sig2str.m4: New file.
66533
66534         Other.
66535         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66536         ulonglong.m4.
66537         * m4/intmax_t.m4: New file.
66538         * m4/d-type.m4: Indentation.
66539         * m4/jm-macros.m4: Update.
66540         * m4/prereq.m4 (jm_PREREQ): Update.
66541         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66542         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66543         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66544         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66545         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66546         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66547         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66548         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66549         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66550         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66551         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66552         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66553         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66554         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66555         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66556         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66557         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66558         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66559         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66560
66561 2002-12-24  Bruno Haible  <bruno@clisp.org>
66562
66563         * MODULES.txt: Update according to m4/ changes.
66564
66565         Module gettext.
66566         * config.rpath: New file, from gettext-0.11.5.
66567
66568         * modules/*: New module descriptions.
66569         * gnulib-tool: New file.
66570         * MODULES.html.sh: New file.
66571
66572 2002-12-21  Karl Berry  <karl@gnu.org>
66573
66574         * doc/fdl.texi: update to version 1.2.
66575
66576 2002-12-19  Karl Berry  <karl@gnu.org>
66577
66578         * config/config.guess: update from prep.
66579
66580 2002-12-18  Bruno Haible  <bruno@clisp.org>
66581
66582         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66583         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66584
66585 2002-12-17  Bruno Haible  <bruno@clisp.org>
66586
66587         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66588         stdlib.h, string.h.
66589
66590 2002-12-17  Bruno Haible  <bruno@clisp.org>
66591
66592         * lib/canon-host.c (strdup): Remove unused declaration.
66593
66594         * lib/fsusage.c: Include full_read.h.
66595         (get_fs_usage): Use full_read instead of safe_read.
66596
66597         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66598
66599 2002-12-12  Karl Berry  <karl@gnu.org>
66600
66601         * config/config.guess: update from prep.
66602
66603 2002-12-11  Bruno Haible  <bruno@clisp.org>
66604
66605         * m4/setenv.m4: New file, from gettext-0.11.5.
66606
66607 2002-12-11  Bruno Haible  <bruno@clisp.org>
66608
66609         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66610         not unsetenv().
66611         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66612         modifications:
66613
66614         2002-12-11  Bruno Haible  <bruno@clisp.org>
66615
66616                 * setenv.c (alloca): Fall back to malloc.
66617                 (freea): New macro.
66618                 (setenv): Use freea() to free memory allocated with alloca().
66619
66620         2002-11-13  Bruno Haible  <bruno@clisp.org>
66621
66622                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66623                 function declarations.
66624                 * unsetenv.c (unsetenv): Likewise.
66625
66626         2002-03-04  Bruno Haible  <bruno@clisp.org>
66627
66628                 Portability to AIX 4.3.3.
66629                 * unsetenv.c: New file, extracted from setenv.c.
66630                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66631
66632         2001-12-20  Bruno Haible  <bruno@clisp.org>
66633
66634                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66635                 use malloc instead. For SunOS 4.
66636
66637         2001-12-11  Bruno Haible  <bruno@clisp.org>
66638
66639                 * setenv.c: Declare alloca.
66640                 (compar_fn_t): New typedef.
66641                 (KNOWN_VALUE, STORE_VALUE): Use it.
66642
66643         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66644         setenv.h.
66645
66646 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66647
66648         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66649         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66650         Choose values that are less likely to collide with system fnmatch
66651         options.
66652         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66653         defined (e.g., a pure POSIX system).
66654         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66655         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66656
66657 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66658
66659         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66660         a pain in practice to deal with generated m4 files.  This change
66661         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66662
66663         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66664         and jm-glibc-io.m4, as they are no longer a special case.
66665         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66666         kludge and the auto-generation stuff.  Check only whether the
66667         functions are declared, not whether they exist, since older hosts
66668         that don't declare the functions can't use the optimization anyway.
66669
66670 2002-12-06  Jim Meyering  <jim@meyering.net>
66671
66672         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66673
66674         Merge in changes from libc's misc/error.c, in preparation
66675         for the merge of gnulib's changes back into libc.
66676
66677         * lib/error.c (_): Define only if not already defined.
66678         Move definition to follow all #include directives.
66679         Include unlocked-io.h only if !_LIBC.
66680         [_LIBC]: Include <libio/libioP.h>.
66681         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66682         (fflush): Tweak definition to use INTUSE.
66683         (putc): Define.
66684
66685 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66686
66687         * lib/alloca.c [defined emacs]: Include "lisp.h".
66688         (xalloc_die) [defined emacs]: New macro.
66689         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66690         [! defined emacs]: Include <xalloc.h>.
66691         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66692         (pointer): Typedef to POINTER_TYPE *.
66693         (malloc): Remove decl; we now always use xmalloc.
66694         (alloca): Use old-style definition, since Emacs needs this.
66695         Check for arithmetic overflow when computing combined size.
66696
66697 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66698
66699         Do not generate unlocked-io.h automatically, since it's easier to
66700         maintain it by hand.
66701
66702         * lib/unlocked-io.h: New file, from GNU diffutils,
66703         but with proper copyright notice and attribution.
66704         * lib/gen-uio: Remove.
66705         * lib/Makefile.am: Add copyright notice.
66706         (libfetish_a_SOURCES): Add unlocked-io.h.
66707         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66708         (DISTCLEANFILES, io_functions): Remove macros.
66709         (EXTRA_DIST): Remove gen_uio.
66710         (unlocked-io.h): Remove rule.
66711
66712 2002-12-04  Jim Meyering  <jim@meyering.net>
66713
66714         Reflect the fact that stat.c and lstat.c are no longer generated.
66715         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66716         (DISTCLEANFILES): Likewise.
66717         (EXTRA_DIST): Likewise.
66718         (all_local): Don't depend on stat.c or lstat.c.
66719         (stat.c, lstat.c): Remove rules.
66720         (EXTRA_DIST): Remove xstat.in.
66721
66722         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66723         * lib/stat.c: New file.  Contents mostly from xstat.in.
66724         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66725         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66726
66727         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66728         too.
66729         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66730
66731 2002-12-03  Jim Meyering  <jim@meyering.net>
66732
66733         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66734         but not semantics, to minimize the differences between these two files.
66735         (safe_read): Change comment to mention SAFE_READ_ERROR.
66736
66737         * lib/safe-read.c (IS_EINTR): Define.
66738         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66739
66740 2002-12-02  Jim Meyering  <jim@meyering.net>
66741
66742         * lib/safe-read.c (EINTR): Define.
66743         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66744         (INT_MAX): Provide fallback.
66745         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66746
66747         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66748
66749 2002-12-02  Bruno Haible  <bruno@clisp.org>
66750
66751         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66752         Define, taken from safe-read.c.
66753         (INT_MAX): Provide fallback.
66754         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66755         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66756
66757         * lib/safe-read.c (EINTR): Remove definition.
66758         (safe_read): Don't use EINTR if it is absent.
66759
66760 2002-12-01  Jim Meyering  <jim@meyering.net>
66761
66762         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66763         zero.
66764         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66765
66766 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66767
66768         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66769         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66770         with `if (! (value < limit)) abort ();', for readability.
66771
66772 2002-11-26  Karl Berry  <karl@gnu.org>
66773
66774         * lib/strdup.c: copy from libc again, with jim's ok.
66775         * lib/.cppi-disable: re-add strdup.c
66776
66777 2002-11-25  Karl Berry  <karl@gnu.org>
66778
66779         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66780         instead of "strtol.c".
66781
66782 2002-11-25  Karl Berry  <karl@gnu.org>
66783
66784         * config/install-sh: update from automake for variable quoting, $0 in
66785         error msgs, etc.
66786
66787         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66788         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66789         entry.
66790
66791 2002-11-25  Jim Meyering  <jim@meyering.net>
66792
66793         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66794
66795 2002-11-24  Karl Berry  <karl@gnu.org>
66796
66797         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66798         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66799
66800 2002-11-24  Jim Meyering  <jim@meyering.net>
66801
66802         Update from coreutils:
66803
66804         * lib/mktime.c: Merge in changes from libc.
66805
66806         Avoid a link-time failure on some Linux systems.
66807         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66808         (otherwise).
66809         (__mon_yday): Declare with the STATIC attribute.
66810         (__mktime_internal): Likewise.
66811         Based on a report from Greg Schafer.
66812
66813 2002-11-23  Jim Meyering  <jim@meyering.net>
66814
66815         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66816         Use `unsigned', not `int', as type of index.
66817
66818         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66819
66820         * lib/fsusage.c: Remove unneeded parentheses around operands of
66821         `defined'.
66822
66823 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66824
66825         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66826         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66827         so that we can be included first.
66828         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66829         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66830         No need to include stddef.h or sys/types.h any more.
66831         Surround local include files with "", not "<>".
66832         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66833         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66834         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66835         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66836         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66837         (ISPRINT): Remove; no longer needed now that we assume C89.
66838
66839         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66840         Preserve errno.
66841
66842         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66843         quotearg_char): Use SIZE_MAX rather than
66844         (size_t) -1 when we are talking about "infinity".
66845
66846         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66847
66848 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66849
66850         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66851         hint that one should use `if (! x) abort ();' rather than `assert
66852         (x);', and anyway it's one less thing to worry about configuring.
66853         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66854         hash_rehash, hash_insert): Use abort rather than assert.
66855
66856 2002-11-22  Bruno Haible  <bruno@clisp.org>
66857
66858         * lib/safe-read.h: Assume C89. Add comments.
66859         (safe_read): Change return type to size_t.
66860         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66861         byte counts > SSIZE_MAX correctly.
66862         * lib/safe-write.h: New file.
66863         * lib/safe-write.c: New file.
66864         * lib/full-read.h: New file.
66865         * lib/full-read.c: New file.
66866         * lib/full-write.h: Assume C89. Add comments.
66867         * lib/full-write.c: Include safe-write.h.
66868         (full_write): Rewritten to use safe_write.
66869         Suggested by Jim Meyering and Paul Eggert.
66870
66871 2002-11-21  Jim Meyering  <jim@meyering.net>
66872
66873         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66874
66875         Merge in changes from the coreutils.
66876
66877         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66878         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66879         <stdint.h>.
66880         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66881         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66882         int.  Work more efficiently if X is the same width as uintmax_t.
66883         Do not compare X to -1, to avoid bogus compiler warning.
66884         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66885         Don't assume that f_frsize and f_bsize are the same type.
66886
66887         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66888         warning on FreeBSD.
66889
66890         * lib/makepath.c (make_path): Restore umask *before* creating the final
66891         component.
66892         (make_path): Minor reformatting.
66893
66894         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66895         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66896         HAVE_MALLOC/HAVE_REALLOC.
66897
66898         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66899         dummy ones.  At least on GNU/Linux systems, `auto' means something
66900         else.
66901         From Michael Stone.
66902
66903 2002-11-21  Bruno Haible  <bruno@clisp.org>
66904
66905         Remove case insensitive option matching.
66906         * lib/argmatch.h (argcasematch): Remove declaration.
66907         (ARGCASEMATCH): Remove macro.
66908         (__xargmatch_internal): Remove case_sensitive argument.
66909         (XARGMATCH): Update.
66910         (XARGCASEMATCH): Remove macro.
66911         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66912         case_sensitive argument.
66913         (argcasematch): Remove function.
66914         (__xargmatch_internal): Remove case_sensitive argument.
66915         (main): Use XARGMATCH instead of XARGCASEMATCH.
66916
66917         * lib/xmalloc.c: Change compile-time error message. Add comment about
66918         required autoconf version.
66919
66920 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66921
66922         Merge argmatch cleanups from Bison.  Assume C89.
66923
66924         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66925         Include stdlib.h, for EXIT_FAILURE.
66926         Always include <string.h>, since we assume C89.
66927         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66928         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66929         Include <stddef.h> instead, since it's all we need for size_t.
66930         (PARAMS): Remove.  All uses removed.
66931         (ARRAY_CARDINALITY): Do not bother to #undef.
66932         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66933         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66934         Remove unnecessary parentheses.
66935         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66936         Insert necessary parentheses.
66937         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
66938         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
66939
66940 2002-11-19  Bruno Haible  <bruno@clisp.org>
66941
66942         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
66943         * lib/mbswidth.h: Include <stddef.h>, for size_t.
66944
66945         * lib/mbswidth.h (PARAMS): Remove macro.
66946         (mbswidth, mbsnwidth): Use ANSI C function declarations.
66947         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
66948
66949         * lib/gcd.h (PARAMS): Remove macro.
66950         (gcd): Use ANSI C function declarations.
66951         * lib/gcd.c (gcd): Likewise.
66952
66953 2002-11-15  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/strcspn.c: Include <stddef.h>.
66956         (strcspn): Use ANSI C function declaration. Change return type to
66957         size_t. Use NULL.
66958         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
66959         (strpbrk): Use NULL.
66960         * lib/strpbrk.h (PARAMS): Remove macro.
66961         (strpbrk): Use ANSI C function declaration.
66962         * lib/strstr.c: Don't include <sys/types.h>.
66963         * lib/strstr.h (PARAMS): Remove macro.
66964         (strstr): Use ANSI C function declarations.
66965
66966 2002-11-14  Karl Berry  <karl@gnu.org>
66967
66968         * config/mkinstalldirs: `do' on separate line, instead of
66969         `for var; do'.
66970
66971 2002-11-06  Bruno Haible  <bruno@clisp.org>
66972
66973         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
66974         * lib/gcd.c (gcd): Likewise.
66975
66976 2002-11-05  Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/gcd.h: New file, from gettext-0.11.5.
66979         * lib/gcd.c: New file, from gettext-0.11.5.
66980
66981 2002-11-05  Bruno Haible  <bruno@clisp.org>
66982
66983         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66984         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66985         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66986         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66987
66988         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
66989         <libintl.h>.
66990         * lib/makepath.c: Include gettext.h instead of <locale.h> and
66991         <libintl.h>.
66992
66993         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
66994         * lib/human.c: Include gettext.h instead of <libintl.h>.
66995         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
66996         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
66997         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
66998         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
66999         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67000         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67001         (textdomain): Remove definition.
67002         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67003
67004         * lib/long-options.c: Remove include of <libintl.h> and definition of
67005         _.
67006         * lib/same.c: Remove include of <libintl.h> and definition of _.
67007
67008 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67009
67010         * lib/config.charset: A few additions for Solaris.
67011
67012 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67013
67014         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67015         * lib/localcharset.c (locale_charset): Declare as extern "C".
67016
67017 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67018
67019         * lib/config.charset: msdos in uk_UA uses CP1125.
67020
67021 2002-11-04  Bruno Haible  <bruno@clisp.org>
67022
67023         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67024         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67025         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67026         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67027         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67028
67029 2002-11-04  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/localcharset.c (locale_charset): Don't return an empty string.
67032
67033 2002-11-04  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67036         aliases.
67037
67038 2002-11-04  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/config.charset: Update for newest glibc. Add canonical names
67041         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67042
67043 2002-11-04  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/config.charset: Add support for NetBSD.
67046
67047 2002-11-04  Bruno Haible  <bruno@clisp.org>
67048
67049         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67050
67051 2002-11-01  Bruno Haible  <bruno@clisp.org>
67052
67053         * configure.in: Add AC_CONFIG_AUX_DIR call.
67054         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67055         test/Makefile.
67056         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67057
67058 2002-09-28  Karl Berry  <karl@gnu.org>
67059
67060         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67061         installed automake until the next release, since changes have been
67062         made.
67063
67064 2002-09-25  Karl Berry  <karl@gnu.org>
67065
67066         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67067         * lib/getopt*: copy from libc/posix.
67068         * lib/gettext.h: copy from gettext.
67069         * lib/.cppi-disable: add strdup.c, gettext.h.
67070
67071 2002-09-25  Karl Berry  <karl@gnu.org>
67072
67073         * config/srclist.txt: enable gettext.h check.
67074         * config/config.{guess,sub}: update from prep.
67075         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67076                 from automake 1.6.3.
67077         See srclist*.
67078
67079 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67080
67081         * regex.c (PATFETCH): Remove the translating fetch.
67082         (PATFETCH_RAW): Rename to PATFETCH.
67083         (set_image_of_range): New fun.
67084         (SET_RANGE_TABLE_WORK_AREA): Use it.
67085         (regex_compile): Don't translate the pattern chars so eagerly.
67086         Only do it when inserting an `exactn' bytecode or when handling
67087         a char-range.
67088         (mutually_exclusive_p): Avoid empty statement.
67089
67090 2002-07-06  Jim Meyering  <meyering@lucent.com>
67091
67092         * m4/README: Don't mention Makefile.am.in.
67093         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67094
67095 2002-07-01  Jim Meyering  <meyering@lucent.com>
67096
67097         * lib/c-stack.c: Include sys/time.h.
67098         From Volker Borchert.
67099
67100 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67101
67102         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67103
67104 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67105
67106         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67107         New macro.  Use it uniformly instead of
67108         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67109         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67110         reported by Vin Shelton.
67111
67112 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67113
67114         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67115         Do not assume SA_SIGINFO behavior.
67116         Bug reported by Jim Meyering on NetBSD 1.5.2.
67117
67118 2002-06-22  Jim Meyering  <meyering@lucent.com>
67119
67120         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67122
67123         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67124         now that configure.ac uses AC_GNU_SOURCE.
67125         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67126         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67127
67128         Update to latest tools.  Suggestions from Paul Eggert.
67129         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67130         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67131         * m4/fnmatch.m4: Likewise.
67132         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67133         to AC_HEADER_STDBOOL
67134
67135 2002-06-22  Jim Meyering  <meyering@lucent.com>
67136
67137         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67138         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67139
67140 2002-06-22  Jim Meyering  <meyering@lucent.com>
67141
67142         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67143
67144         * lib/exitfail.c, exitfail.h: Likewise.
67145         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67146
67147         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67148         of fnmatch.h.
67149         (EXTRA_DIST): Add fnmatch_loop.c.
67150         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67151
67152         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67153         * lib/fnmatch.c: Update from diffutils-2.8.2.
67154         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67155         * lib/fnmatch.h: Remove file.
67156
67157 2002-06-21  Jim Meyering  <meyering@lucent.com>
67158
67159         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67160         * m4/mbrtowc.m4: Likewise.
67161
67162         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67163         * m4/mbswidth.m4: Reflect name change:
67164         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67165         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67166
67167         * m4/lib-link.m4: Update from gettext-0.11.2.
67168         * m4/gettext.m4: Likewise.
67169
67170         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67171         From Alfred M. Szmidt.
67172
67173 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67174
67175         * lib/file-type.h: Report an error if neither S_ISREG nor
67176         S_IFREG is defined, instead of using a test specific to glibc
67177         2.2.  This should be safe, since POSIX requires S_ISREG and
67178         Unix Version 7 had S_IFREG.  We don't need to check for
67179         <sys/types.h> since we don't use any symbols that it defines.
67180
67181 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67182
67183         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67184         $@-t, so that each temporary file name is unique and valid in the first
67185         8 characters, for operation under DOS.
67186
67187 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67188
67189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67190
67191 2002-06-15  Jim Meyering  <meyering@lucent.com>
67192
67193         Work even with DJGPP 2.03, which lacks support for symlinks.
67194         From Richard Dawe.
67195         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67196         is defined.
67197         * lib/lchown.c (S_ISLNK): Likewise.
67198
67199 2002-06-15  Jim Meyering  <meyering@lucent.com>
67200
67201         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67202         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67203         have been included before this file.
67204
67205 2002-06-14  Jim Meyering  <meyering@lucent.com>
67206
67207         * lib/file-type.h: Use the version from diffutils-2.8.2.
67208         * lib/file-type.c: Likewise.
67209
67210 2002-06-07  Jim Meyering  <meyering@lucent.com>
67211
67212         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67213         They're needed at least for NetBSD 1.5.2.
67214         ($statxfs_includes): Include those same headers.
67215         ($statxfs_includes): Include sys/vfs.h if available.
67216         ($statxfs_includes): Likewise for sys/statvfs.h.
67217         Check for the following members in both structs statfs and statvfs:
67218         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67219
67220 2002-06-01  Jim Meyering  <meyering@lucent.com>
67221
67222         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67223         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67224
67225 2002-05-28  Jim Meyering  <meyering@lucent.com>
67226
67227         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67228         Reported by Volker Borchert.
67229
67230 2002-05-27  Jim Meyering  <meyering@lucent.com>
67231
67232         Fix a problem seen only on nonconforming systems whereby ls.c's
67233         use of localtime, and then of gettimeofday would cause trouble:
67234         the localtime call used to initialize rpl_gettimeofday's save
67235         mechanism would clobber ls's current local time information so
67236         that in any long listing the first file would always be listed
67237         with date 1970-01-01.  Analysis by Volker Borchert.
67238
67239         * lib/gettimeofday.c (localtime): Undefine.
67240         (rpl_localtime): New function.
67241
67242 2002-05-27  Jim Meyering  <meyering@lucent.com>
67243
67244         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67245         localtime.
67246
67247         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67248         use the replacement function; it wouldn't resolve at link time.
67249         Reported by Volker Borchert.
67250
67251 2002-05-22  Jim Meyering  <meyering@lucent.com>
67252
67253         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67254         file-type.h.
67255         * lib/file-type.h: New file.
67256         * lib/file-type.c (file_type): New file/function.  Extracted from
67257         diffutils.
67258
67259 2002-04-30  Jim Meyering  <meyering@lucent.com>
67260
67261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67262
67263 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67264
67265         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67266
67267 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67268
67269         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67270         Do not check for alloca.h (no longer used) or stdbool.h (was never
67271         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67272
67273 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67274
67275         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67276
67277 2002-04-29  Jim Meyering  <meyering@lucent.com>
67278
67279         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67280         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67281         Use AC_FUNC_STRNLEN here instead.
67282
67283         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67284         With autoconf-2.53a, it's part of AC_PROG_CC.
67285
67286 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67287
67288         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67290
67291 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67292
67293         * lib/sig2str.h, lib/sig2str.c: New files.
67294         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67295
67296 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67297
67298         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67299         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67300         of 127, since 64 is the largest conceivable number for ancient
67301         nonstandard hosts.
67302         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67303
67304 2002-04-28  Jim Meyering  <meyering@lucent.com>
67305
67306         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67307
67308 2002-04-24  Jim Meyering  <meyering@lucent.com>
67309
67310         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67311         (jm_PREREQ): Use it.
67312
67313         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67314         mach/mach.h fcntl.h.
67315         Check for this function: setlocale.
67316
67317 2002-04-24  Jim Meyering  <meyering@lucent.com>
67318
67319         * lib/gettext.h: New file, from Gettext.
67320         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67321         (libfetish_a_SOURCES): Add gettext.h.
67322
67323 2002-04-16  Jim Meyering  <meyering@lucent.com>
67324
67325         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67326         ut_pid, ut_id, ut_exit.
67327
67328 2002-04-16  Jim Meyering  <meyering@lucent.com>
67329
67330         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67331         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67332         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67333
67334 2002-04-12  Jim Meyering  <meyering@lucent.com>
67335
67336         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67337         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67338         existence of the getmntinfo function.  Needed for Darwin 5.3.
67339
67340         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67341         This is necessary at least on Darwin 5.3.
67342
67343         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67344         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67345         strnlen.o in the library, and that makes some versions of ranlib
67346         object.
67347
67348 2002-04-12  Jim Meyering  <meyering@lucent.com>
67349
67350         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67351
67352 2002-04-09  Jim Meyering  <meyering@lucent.com>
67353
67354         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67355         to be more precise.  Rather than saying we're checking whether the
67356         function `works', say what we're testing.
67357         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67358         Reported by Bruno Haible.
67359
67360 2002-03-10  Jim Meyering  <meyering@lucent.com>
67361
67362         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67363         Suggestion from Santiago Vila.
67364
67365 2002-03-08  Jim Meyering  <meyering@lucent.com>
67366
67367         * lib/rename.c: Mention that this wrapper is needed also on
67368         mips-dec-ultrix4.4 systems.
67369
67370 2002-03-02  Jim Meyering  <meyering@lucent.com>
67371
67372         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67373         not HAVE_CLOCK_SETTIME.
67374
67375 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67376
67377         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67378         Check for clock_settime.
67379
67380 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67381
67382         * lib/nanosleep.h: Rename to....
67383         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67384
67385         * lib/gettime.c: New file.
67386         * lib/settime.c: New file.
67387         * lib/stime.c: Remove.
67388
67389         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67390         timespec.h.  Remove nanosleep.h.
67391
67392 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67393
67394         * m4/acl.m4: New file.
67395         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67396         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67397
67398 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67399
67400         * lib/acl.c, lib/acl.h: New files.
67401         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67402
67403 2002-02-24  Jim Meyering  <meyering@lucent.com>
67404
67405         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67406         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67407         cause trouble.  Reported by Nelson Beebe.
67408
67409 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67410
67411         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67412         compilers that don't know that xalloc_die never returns.
67413
67414 2002-02-20  Jim Meyering  <meyering@lucent.com>
67415
67416         * lib/getdate.c: Regenerate using bison-1.33.
67417
67418 2002-02-17  Jim Meyering  <meyering@lucent.com>
67419
67420         * config/config.guess (main): Don't use `head -1'; it's no longer
67421         portable. Use `sed 1q' instead.
67422
67423 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67424
67425         * m4/codeset.m4: Upgrade to gettext-0.11.
67426         * m4/gettext.m4: Upgrade to gettext-0.11.
67427         * m4/glibc21.m4: Upgrade to gettext-0.11.
67428         * m4/iconv.m4: Upgrade to gettext-0.11.
67429         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67430         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67431         * m4/lib-ld.m4: New file, from gettext-0.11.
67432         * m4/lib-link.m4: New file, from gettext-0.11.
67433         * m4/lib-prefix.m4: New file, from gettext-0.11.
67434         * m4/progtest.m4: Upgrade to gettext-0.11.
67435
67436 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67437
67438         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67439         (jm_PREREQ): Use it.
67440
67441 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67442
67443         * lib/posixver.c, lib/posixver.h: New files.
67444         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67445
67446 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67447             Bruno Haible  <bruno@clisp.org>
67448
67449         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67450         (fwrite_success_callback): New declaration.
67451         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67452         print_unicode_char. Call failure callback instead of error.
67453         (fwrite_success_callback): New function.
67454         (exit_failure_callback): New function.
67455         (fallback_failure_callback): New function.
67456         (print_unicode_char): Call unicode_to_mb.
67457
67458 2002-01-26  Jim Meyering  <meyering@lucent.com>
67459
67460         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67461         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67462
67463 2002-01-26  Jim Meyering  <meyering@lucent.com>
67464
67465         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67466
67467 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67468
67469         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67470
67471 2002-01-22  Jim Meyering  <meyering@lucent.com>
67472
67473         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67474         Otherwise, some versions of automake would omit the rule that makes
67475         Makefile from Makefile.in.
67476
67477 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67478
67479         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67480         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67481         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67482         (memcoll): Set errno to zero if there is no error.
67483
67484         * lib/quotearg.c (quotearg_buffer_restyled):
67485         Fix bug with quoting buffers containing NUL when backslashing escapes.
67486         This bug was exposed by the other changes in this patch.
67487         (quotearg_n_options): New arg ARGSIZE.
67488         All callers changed.
67489         (quoting_options_from_style): New function.
67490         (quotearg_n_style): Use it.
67491         (quotearg_n_style_mem): New function.
67492
67493         * lib/quotearg.h (quotearg_n_style_mem): New function.
67494
67495 2002-01-19  Jim Meyering  <meyering@lucent.com>
67496
67497         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67498         Remove useless quotes: DF_PROG="df".
67499         * m4/strnlen.m4: New file.
67500
67501 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67502
67503         * lib/backupfile.c (ISDIGIT): Comment fix.
67504         * lib/getdate.y (ISDIGIT): Likewise.
67505         * lib/posixtm.c (ISDIGIT, year): Likewise.
67506         * lib/strverscmp.c (ISDIGIT): Likewise.
67507         * lib/userspec.c (ISDIGIT): Likewise.
67508
67509 2002-01-16  Jim Meyering  <meyering@lucent.com>
67510
67511         * lib/getdate.y: Add three semicolons, each just before a closing
67512         brace. Bison (as of version 1.31) no longer papers over that mistake.
67513
67514 2002-01-05  Jim Meyering  <meyering@lucent.com>
67515
67516         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67517
67518 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67519
67520         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67521         not silently exit merely because the output buffer happens to
67522         have nothing pending.
67523
67524 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67525
67526         See the big note in ../ChangeLog.
67527         * lib/human.c (suffixes): Prefer K to k for 1024.
67528         (generate_suffix_backwards): New function.
67529         (human_readable_inexact): Use it.
67530         * lib/xstrtol.c (__xstrtol): If there is no number but there
67531         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67532         Accept 'K' as well as 'k'.
67533
67534 2001-12-15  Jim Meyering  <meyering@lucent.com>
67535
67536         * lib/regex.h (__restrict_arr): Update from libc.
67537
67538         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67539         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67540         (STREQ): Define.
67541
67542 2001-12-14  Jim Meyering  <meyering@lucent.com>
67543
67544         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67545         Suggestion from Bruno Haible.
67546
67547 2001-12-10  Jim Meyering  <meyering@lucent.com>
67548
67549         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67550         xrealloc, Instead, include "xalloc.h".
67551         (initbuffer): Don't cast xmalloc return value to char*.
67552         (readline): Reword comment.
67553         Don't cast xrealloc return value to char*
67554         Return NULL, not 0.
67555
67556 2001-12-09  Jim Meyering  <meyering@lucent.com>
67557
67558         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67559         about `signed and unsigned type in conditional expression'.
67560         * lib/posixtm.c (posix_time_parse): Likewise.
67561
67562         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67563
67564         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67565         to avoid a pedantic warning.
67566
67567         * lib/getstr.c: Don't include assert.h.
67568         (getstr): Remove warning-evoking assertions.
67569         Return -1 if offset parameter is out of bounds.
67570         Change the type of a local from int to size_t.
67571
67572         * lib/strftime.c (my_strftime_localtime_r): Include this function
67573         definition in the `#if ! HAVE_TM_GMTOFF' block.
67574
67575         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67576         Include xalloc.h instead.
67577
67578 2001-12-02  Jim Meyering  <meyering@lucent.com>
67579
67580         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67581         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67582         included.
67583
67584         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67585         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67586
67587 2001-11-30  Akim Demaille  <akim@epita.fr>
67588
67589         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67590         before being defined.
67591
67592 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67593
67594         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67595         First arg is int, not unsigned.
67596         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67597         (SIZE_MAX, UINT_MAX): New macros.
67598         (quotearg_n_options): Abort if N is negative.
67599         Avoid overflow check on hosts where size_t is 64 bits and int
67600         is 32 bits, as overflow is impossible there.
67601         Fix off-by-one typo that caused unnecessary reallocation.
67602
67603 2001-11-27  Jim Meyering  <meyering@lucent.com>
67604
67605         * lib/tempname.c: Merge with version from libc.
67606         * lib/regex.c: Likewise.
67607
67608         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67609         systems for which STDC_HEADERS is 0, it was not included, resulting in
67610         a warning about an integer-to-pointer conversion problem with getenv.
67611         Reported by Volker Borchert.
67612
67613 2001-11-26  Jim Meyering  <meyering@lucent.com>
67614
67615         * lib/gtod.h: Remove file.
67616         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67617         * lib/gettimeofday.c: Don't include gtod.h.
67618         (GTOD_init): Remove function.
67619         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67620         Suggestion from Volker Borchert.
67621
67622 2001-11-23  Jim Meyering  <meyering@lucent.com>
67623
67624         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67625         it.
67626         * lib/hash.c (struct hash_table): Define it here instead.
67627
67628 2001-11-22  Jim Meyering  <meyering@lucent.com>
67629
67630         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67631
67632 2001-11-20  Jim Meyering  <meyering@lucent.com>
67633
67634         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67635         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67636
67637 2001-11-19  Jim Meyering  <meyering@lucent.com>
67638
67639         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67640         directory.  Use "conftestXXXXXX" as the template.
67641         Suggestion from Paul Eggert.
67642
67643         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67644         immediately, so the test doesn't mistakenly hit the max-open-files
67645         limit.
67646
67647 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67648
67649         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67650         (TEMPORARIES): New macro.
67651         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67652         removes an artificial limitation (e.g. HP-UX 10.20, where
67653         TMP_MAX is 17576).
67654
67655 2001-11-18  Jim Meyering  <meyering@lucent.com>
67656
67657         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67658
67659 2001-11-18  Jim Meyering  <meyering@lucent.com>
67660
67661         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67662         on SunOS 4.
67663
67664         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67665         files will be created before anything else.
67666
67667 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67668
67669         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67670         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67671
67672 2001-11-17  Jim Meyering  <meyering@lucent.com>
67673
67674         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67675         Prompted by a report from Bob Proulx.
67676
67677         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67678         Instead, require UTILS_FUNC_MKSTEMP.
67679
67680 2001-11-17  Jim Meyering  <meyering@lucent.com>
67681
67682         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67683         Now, that's done as part of AC_FUNC_STRTOD.
67684
67685 2001-11-17  Jim Meyering  <meyering@lucent.com>
67686
67687         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67688         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67689         rather than group writable.  Patch by Juan F. Codagnone.
67690
67691         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67692         xrealloc, Instead, include "xalloc.h".
67693
67694         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67695         Remove explicit declarations of xmalloc, xrealloc,
67696         and xstrdup.  Instead, include "xalloc.h".
67697
67698         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67699         unlocked-io.h.
67700         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67701         Likewise.
67702         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67703
67704         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67705         Reported by Padraig Brady.
67706
67707         * lib/mkstemp.c: #undef mkstemp.
67708         Include config.h.
67709         (rpl_mkstemp): Rename from mkstemp.
67710         Protoize.
67711
67712 2001-11-16  Jim Meyering  <meyering@lucent.com>
67713
67714         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67715         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67716         determine the amount of total physical memory, use pstat_getstatic.
67717         HPUX-11 doesn't define _SC_PHYS_PAGES.
67718         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67719         If sysconf couldn't be used to determine the amount of available
67720         physical memory, use both pstat_getstatic and pstat_getdynamic.
67721         Based on a patch from Bob Proulx.
67722
67723 2001-11-10  Jim Meyering  <meyering@lucent.com>
67724
67725         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67726         (jm_PREREQ): Use it.
67727
67728 2001-11-09  Jim Meyering  <meyering@lucent.com>
67729
67730         * m4/jm-macros.m4: Require autoconf-2.52f.
67731         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67732         Use these AC_-prefixed names, not the AM_-prefixed ones.
67733
67734         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67735
67736 2001-11-05  Jim Meyering  <meyering@lucent.com>
67737
67738         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67739
67740 2001-11-04  Jim Meyering  <meyering@lucent.com>
67741
67742         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67743         $DEFS.
67744
67745 2001-11-03  Jim Meyering  <meyering@lucent.com>
67746
67747         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67748         of AC_DEFUN.
67749
67750         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67751         know the name of the variable in the macro definition.
67752
67753 2001-11-03  Jim Meyering  <meyering@lucent.com>
67754
67755         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67756         in argmatch_to_argument call.
67757
67758         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67759         argument.
67760
67761         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67762         e.g., a fault due to an attempt to free a NULL pointer.
67763
67764 2001-11-01  Jim Meyering  <meyering@lucent.com>
67765
67766         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67767         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67768
67769 2001-11-01  Jim Meyering  <meyering@lucent.com>
67770
67771         * lib/dirfd.c, lib/dirfd.h: New files.
67772         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67773
67774         * lib/hash.c (hash_print) [TESTING]: Clean up.
67775
67776 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67777
67778         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67779         to avoid a warning if -Wall.
67780
67781 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67782
67783         * README: New file
67784         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67785         (per RMS's instructions, this is now the canonical source)
67786         * lgpl/, gpl/: New directories.
67787
67788 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67789
67790         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67791
67792 2001-10-21  Jim Meyering  <meyering@lucent.com>
67793
67794         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67795         this code would end up calling gettext even in packages built
67796         with --disable-nls.
67797         * lib/getopt.c (_): Likewise.
67798         * lib/regex.c (_): Likewise.
67799
67800 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67801
67802         * m4/error.m4 (jm_PREREQ_ERROR):
67803         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67804         AC_FUNC_STRERROR_R does that.
67805         Check for strerror declaration.
67806
67807         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67808         are supposed to have them these days.
67809         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67810         Merge changes from latest Autoconf CVS.
67811         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67812         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67813         POSIX decided to standardize on the int flavor of strerror_r.
67814
67815 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67816
67817         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67818         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67819         Use strerror_r that is only a macro, even if it is not a function.
67820         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67821         (private_strerror): Use prototypes, not old-style function definition.
67822         (print_errno_message): New function.
67823         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67824         char*-flavored one.
67825         (error_tail, error, error_at_line): Use it.
67826
67827 2001-10-11  Jim Meyering  <meyering@lucent.com>
67828
67829         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67830         and quote_n (1, ... to avoid clobbering a buffer.
67831
67832 2001-10-05  Jim Meyering  <meyering@lucent.com>
67833
67834         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67835         hash-pjw.h.
67836         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67837         * lib/hash-pjw.h: New file.
67838
67839 2001-09-30  Jim Meyering  <meyering@lucent.com>
67840
67841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67842         `struct fsstat' has the `f_fstypename' member.
67843         Use that to define FS_TYPE, which is now used to make
67844         the getfsstat link test tighter.
67845
67846 2001-09-30  Jim Meyering  <meyering@lucent.com>
67847
67848         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67849         Include <sys/ucred.h>, for Apple Darwin.
67850         Include sys/mount.h and sys/fs_types.h only if available.
67851         (FS_TYPE): Define.
67852         (read_filesystem_list): Use FS_TYPE.
67853
67854 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67855
67856         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67857         a boolean context.
67858
67859 2001-09-29  Jim Meyering  <meyering@lucent.com>
67860
67861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67862         [one-argument getmntent function]): Include stdio.h before mntent.h.
67863         SunOS 4.1.x needs it for the declaration of `FILE'.
67864         Patch by Volker Borchert.
67865
67866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67867         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67868         sys/fs_types.h, and make the link-test for getfsstat guard #include
67869         directives with appropriate #if HAVE_*_H tests so that we can
67870         detect getfsstat on Apple Darwin1.3.7 systems.
67871         Reported by Nelson Beebe.
67872         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67873
67874 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67875
67876         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67877         #defines strtoimax.  Also treat the other strto* functions
67878         like strtoimax.
67879
67880         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67881         Check for strtoul and strtoumax,
67882         as those declarations are made even in the signed case.
67883         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67884         Likewise, for strtol and strtoimax.
67885
67886 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67887
67888         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67889         #defines strtoimax.  Also treat the other strto* functions
67890         like strtoimax.
67891
67892         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67893         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67894         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67895
67896 2001-09-26  Jim Meyering  <meyering@lucent.com>
67897
67898         Most macros in unlocked-io.h had the wrong number of arguments.
67899         * lib/gen-uio: New script.
67900         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67901         * lib/unlocked-io.hin: Remove file.
67902         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67903         rather than trying to embed it here.
67904         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67905         Reported by Padraig Brady.
67906
67907 2001-09-25  Volker Borchert  <bt@teknon.de>
67908
67909         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67910         `result'.
67911
67912 2001-09-24  Jim Meyering  <meyering@lucent.com>
67913
67914         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67915
67916 2001-09-23  Jim Meyering  <meyering@lucent.com>
67917
67918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67919         instead of the mere test for existence of mntent.h.  The latter
67920         would get a false-positive on AIX 3.4 systems.
67921         In the outer getmntent if-block, don't die if neither of the getmntent
67922         tests succeeds.  Instead, just fall through and continue with the
67923         remaining tests.
67924
67925 2001-09-23  Jim Meyering  <meyering@lucent.com>
67926
67927         * lib/mountlist.c: Remove useless parentheses in #if directives.
67928         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67929         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67930
67931 2001-09-22  Jim Meyering  <meyering@lucent.com>
67932
67933         * m4/gettext.m4: New file.  From gettext.
67934         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67935         * m4/progtest.m4: Likewise
67936         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
67937         * m4/glibc21.m4: Likewise.
67938
67939         * m4/libintl.m4: Remove.  No longer used.
67940
67941 2001-09-22  Jim Meyering  <meyering@lucent.com>
67942
67943         * lib/localcharset.c: Update from latest gettext.
67944         * lib/config.charset: Likewise.
67945
67946 2001-09-20  Jim Meyering  <meyering@lucent.com>
67947
67948         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
67949         strtoimax.
67950         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
67951         strtoumax.
67952
67953 2001-09-20  Jim Meyering  <meyering@lucent.com>
67954
67955         * lib/xstrtol.c (strtoimax): Guard declaration with
67956         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
67957         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
67958         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
67959         (strtoumax): Likewise, for completeness (it wasn't necessary).
67960
67961 2001-09-17  Paul Eggert  <eggert@twinsun.com>
67962
67963         * lib/strtoimax.c (HAVE_LONG_LONG):
67964         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
67965         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
67966         to work around bug in IBM C compiler.
67967
67968 2001-09-17  Jim Meyering  <meyering@lucent.com>
67969
67970         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
67971         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
67972         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
67973         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
67974         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
67975         whenever the right hand side need not be expanded by the shell.
67976
67977 2001-09-16  Paul Eggert  <eggert@twinsun.com>
67978
67979         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
67980         library.  It's not correct, as some older glibcs are buggy.
67981         fnmatch wasn't fixed until glibc 2.2.
67982
67983         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
67984         special shell magic here.
67985
67986 2001-09-16  Jim Meyering  <meyering@lucent.com>
67987
67988         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
67989         * m4/jm-macros.m4: Require it.
67990
67991 2001-09-16  Jim Meyering  <meyering@lucent.com>
67992
67993         * lib/mkdir.c: New file.
67994
67995 2001-09-15  Jim Meyering  <meyering@lucent.com>
67996
67997         * m4/jm-macros.m4: Check for help2man.
67998
67999 2001-09-11  Jim Meyering  <meyering@lucent.com>
68000
68001         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68002         The body, by Paul Eggert, was moved here from configure.in.
68003         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68004
68005 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68006
68007         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68008         (jm_PREREQ): Use it.
68009
68010 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68011
68012         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68013         Use ssize_t, not int, to store result of readlink.
68014         Check for ssize_t overflow as well as size_t overflow,
68015         as POSIX says the result of readlink is implementation-defined
68016         when ssize_t overflows.
68017         Remove unnecessary cast to char*.
68018         Use free+malloc instead of realloc, as the storage doesn't need
68019         to be preserved and it's clearer and can be more efficient that way.
68020         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68021         * lib/xreadlink.h (xreadlink): Update prototype.
68022
68023 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68024
68025         * lib/xgetcwd.c: Revert some of the previous change; intead,
68026         fix the HAVE_GETCWD_NULL code to behave more like the
68027         !HAVE_GETCWD_NULL code used to.
68028
68029         Include "xalloc.h".
68030         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68031         invoke xalloc_die.
68032
68033 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68034
68035         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68036         sys/param.h, as pathmax.h includes them.
68037
68038 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68039
68040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68041         (jm_PREREQ_XGETCWD): New macro.
68042
68043         * m4/getcwd.m4: New file.
68044
68045 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68046
68047         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68048         like the HAVE_GETCWD_NULL code.
68049         Include pathmax.h if not HAVE_GETCWD.
68050         Do not include xalloc.h.
68051         (INITIAL_BUFFER_SIZE): New symbol.
68052         Do not use xmalloc / xrealloc, since the caller is responsible for
68053         handling errors.  Preserve errno around `free' during failure.
68054         Do not overrun buffer when using getwd.
68055
68056 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68057
68058         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68059         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68060         getcwd (NULL, 0).
68061
68062 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68063
68064         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68065         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68066         spotted by Jim Meyering.
68067
68068 2001-09-03  Jim Meyering  <meyering@lucent.com>
68069
68070         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68071         failure.
68072
68073 2001-09-02  Jim Meyering  <meyering@lucent.com>
68074
68075         * lib/error.c: Update from GNU libc.
68076
68077 2001-09-01  Jim Meyering  <meyering@lucent.com>
68078
68079         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68080         Used by df.
68081
68082 2001-09-01  Jim Meyering  <meyering@lucent.com>
68083
68084         * lib/xreadlink.c: New file.
68085         * lib/xreadlink.h: New file.
68086         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68087         xreadlink.h.
68088
68089         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68090         doesn't conflict with sparc Solaris 7's definition in
68091         /usr/include/sys/int_types.h.
68092
68093         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68094         files.
68095         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68096         and strncasecmp as r-values.  Unixware didn't have declarations.
68097
68098 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68099
68100         * lib/xstrtol.h: Add copyright notice.
68101         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68102         LONGINT_INVALID_SUFFIX_CHAR.
68103
68104 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68105
68106         * lib/xstrtol.c (strtoimax): New decl.
68107
68108 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68109
68110         * lib/xgetcwd.c: Don't include pathmax.h.
68111         Include stdlib.h and unistd.h if available.
68112         Include xalloc.h.
68113         (xmalloc, xstrdup, free): Remove decls.
68114         (xgetcwd): Don't assume sizes fit in unsigned.
68115         Check for overflow when computing sizes.
68116         Simplify reallocation code.
68117
68118 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68119
68120         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68121         a directory's st_size can have an arbitrary value, so the old
68122         usage could waste an arbitrary amount of memory.  All uses
68123         changed.
68124         * lib/savedir.h: Update prototype.
68125
68126 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68127
68128         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68129
68130         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68131         old strtoimax.c.
68132
68133         Also, make the following further changes to make this file's
68134         configuration more similar to that of strtol.c:
68135         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68136         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68137         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68138         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68139         changed to signed values.
68140
68141         And make the following changes as well:
68142         Fix copyright notice, as 1999 was missing.
68143         (verify): New macro.
68144         (strtoimax): Check sizes at compile-time, not run-time.
68145         Prefer strtol to strtoll if both work.
68146         (main): Remove; it was not that useful and was a pain to maintain.
68147
68148         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68149
68150 2001-08-31  Jim Meyering  <meyering@lucent.com>
68151
68152         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68153         Use an initial, malloc'd, buffer of length 128 rather than
68154         a statically allocated one of length 1024.
68155
68156 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68157
68158         Simplify code, partly by assuming autoconf 2.52 semantics.
68159
68160         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68161
68162         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68163         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68164         All uses removed.
68165         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68166         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68167         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68168         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68169         jm_AC_HEADER_INTTYPES_H.
68170         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68171
68172         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68173
68174         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68175         Quote first arg of AC_DEFUN.
68176         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68177         since they are needed to parse the include file even if we need
68178         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68179         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68180         but with opposite signedness.
68181
68182 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68183
68184         Merge 'exclude' changes from tar 1.13.22.
68185         This fixes one or two unlikely storage allocation overflow bugs,
68186         but doesn't change user-visible behavior otherwise.
68187
68188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68189
68190         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68191         (jm_PREREQ_EXCLUDE): New macro.
68192
68193 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68194
68195         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68196         tm to be declared.
68197
68198 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68199
68200         * lib/hash.c: Remove '2001' from copyright notice.
68201
68202 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68203
68204         * lib/full-write.h: New file.
68205         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68206         * lib/full-write.c: Correct credits, as cccp.c no longer
68207         exists and anyway it was so heavily changed from the old cccp
68208         code as to be unrecognizable.  Include full-write.h.
68209         (full_write) Return size_t, with short writes meaning failure.
68210         All callers changed.  This fixes a bug with large buffers
68211         on 64-bit hosts.
68212         * lib/utime.c: Include full-write.h.
68213
68214 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68215
68216         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68217         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68218         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68219         Include if available.
68220         (<xalloc.h>): Include
68221         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68222         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68223         collide with FNM macros.
68224         (struct patopts): New struct.
68225         (struct exclude): Use it, as exclude patterns now come with options.
68226         (new_exclude): Support above changes.
68227         (new_exclude, add_exclude_file):
68228         Initial size must now be a power of two to simplify overflow checking.
68229         (free_exclude, fnmatch_no_wildcards): New function.
68230         (excluded_filename): No longer requires options arg, as the options
68231         are determined by add_exclude.  Now returns bool, not int.
68232         (excluded_filename, add_exclude):
68233         Add support for the fancy new exclusion options.
68234         (add_exclude, add_exclude_file): Now takes int options arg.
68235         Check for arithmetic overflow when computing sizes.
68236         (add_exclude_file): xrealloc might modify errno, so don't
68237         realloc until after errno might be used.
68238
68239         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68240         New macros.
68241         (free_exclude): New decl.
68242         (add_exclude, add_exclude_file): Now takes int options arg.
68243         (excluded_filename): No longer requires options arg, as the options
68244         are determined by add_exclude.  Now returns bool, not int.
68245
68246 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68247
68248         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68249
68250 2001-08-27  Jim Meyering  <meyering@lucent.com>
68251
68252         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68253
68254         * lib/version-etc.c (N_): Remove definition.
68255         Revert most of last change.
68256         Instead, simply don't mark the `Copyright...' string for translation.
68257         Based on advice from Paul Eggert.
68258
68259         * lib/strtoxmax.c: Tweak comment.
68260
68261 2001-08-26  Jim Meyering  <meyering@lucent.com>
68262
68263         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68264
68265         * m4/xstrtoimax.m4: New file.
68266         * m4/xstrtoumax.m4: Add comments explaining why we
68267         AC_REPLACE_FUNCS(strtol).
68268
68269 2001-08-26  Jim Meyering  <meyering@lucent.com>
68270
68271         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68272         of copyright with `%s' so translators don't get an untranslated
68273         message in 2002.
68274         (COPYRIGHT_YEAR): Define.
68275         (version_etc): Use fprintf rather than fputs.
68276         Suggestion from Ulrich Drepper.
68277
68278         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68279
68280         * lib/strtoll.c: New file, from GNU libc.
68281         * lib/xstrtoimax.c: New file.
68282
68283         * lib/xstrtol.h: Add xstrtoimax.
68284         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68285         * lib/strtoimax.c: New file.  Likewise, but first define
68286         STRTOUXMAX_SIGNED.
68287
68288         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68289         ...
68290         * lib/strtoxmax.c: ... then renamed to this.
68291
68292 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68293
68294         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68295         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68296         (jm_AC_TYPE_INTMAX_T): New macro.
68297         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68298
68299         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68300
68301         * m4/longlong.m4: Renamed from ulonglong.m4.
68302         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68303         * m4/uintmax_t.m4: Removed.
68304
68305 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68306
68307         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68308         Port to Solaris 8, where 'sed' requires a space after the 'r'
68309         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68310         Redirect output to $tmp just once.
68311
68312 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68313
68314         * lib/addext.c (<errno.h>): Include.
68315         (errno): Declare if not defined.
68316         (addext): Work correctly when pathconf returns -1 and leaves
68317         errno alone because there is no limit.  Also, work even if
68318         pathconf returns a value greater than SIZE_MAX.
68319
68320 2001-08-12  Jim Meyering  <meyering@lucent.com>
68321
68322         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68323         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68324         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68325         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68326         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68327         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68328         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68329         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68330         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68331         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68332         utime.m4, utimes.m4, xstrtoumax.m4:
68333         Quote the first argument in each use of AC_DEFUN.
68334
68335 2001-08-12  Jim Meyering  <meyering@lucent.com>
68336
68337         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68338         Simply `return getcwd (NULL, 0);'.
68339         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68340         Use 1300 as initial value for length, not PATH_MAX.
68341
68342         * lib/pathmax.h: Clean up cpp syntax.
68343
68344 2001-08-12  Jim Meyering  <meyering@lucent.com>
68345
68346         * lib/gettimeofday.c: New file.
68347         * lib/gtod.h: New file.
68348         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68349
68350 2001-08-05  Jim Meyering  <meyering@lucent.com>
68351
68352         * m4/jm-macros.m4: Require autoconf-2.52.
68353
68354 2001-08-04  Jim Meyering  <meyering@lucent.com>
68355
68356         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68357         stmt, to get in sync with glibc.
68358
68359 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68360
68361         The following changes are from gettext 0.10.39 as maintained by
68362         Bruno Haible.
68363
68364         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68365         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68366         with inverted sense.  All uses changed.
68367
68368         * lib/mbswidth.c: Don't include <limits.h>.
68369         Include <stdlib.h> and <string.h> unconditionally.
68370         (iswcntrl, mbsinit, ISCNTRL): New macros.
68371         (mbsnwidth): Use K&R style function declarations.
68372         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68373         can optimize it when MB_CUR_MAX == 1.
68374         The width of control characters is zero, not 1.
68375
68376 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68377
68378         The following changes are from gettext 0.10.39 as maintained by
68379         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68380
68381         * m4/codeset.m4: Upgrade to serial AM1.
68382         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68383         all uses changed.  Quote first arg of AC_DEFUN.
68384         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68385
68386         * m4/iconv.m4: Upgrade to serial AM2.
68387         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68388         Add --with-libconv-prefix.
68389         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68390         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68391         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68392         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68393         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68394
68395         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68396         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68397         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68398         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68399         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68400         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68401         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68402         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68403         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68404
68405         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68406         string.h any more.
68407
68408         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68409         not the default value.
68410
68411         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68412         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68413         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68414         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68415         Also check for iswcntrl, used for wcwidth fallback.
68416         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68417         to Autoconf 2.13.
68418
68419 2001-08-03  Jim Meyering  <meyering@lucent.com>
68420
68421         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68422         as it was in the original.  Reported by Paul Eggert.
68423
68424 2001-07-16  Jim Meyering  <meyering@lucent.com>
68425
68426         * m4/gettimeofday.m4: New file.
68427         Prompted by a report from Bernhard Baehr.
68428
68429 2001-07-15  Jim Meyering  <meyering@lucent.com>
68430
68431         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68432         stuff. Now it's in ../Makefile.cfg.
68433
68434 2001-07-15  Jim Meyering  <meyering@lucent.com>
68435
68436         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68437         (BUILT_SOURCES): Add unlocked-io.h.
68438         (io_functions): Define.
68439         (unlocked-io.h): New rule.
68440         (DISTCLEANFILES): Add unlocked-io.h.
68441         (all-local): Depend on unlocked-io.h, to ensure it is created.
68442
68443         * lib/unlocked-io.hin: New file
68444
68445         * lib/regex.c: Update from glibc.
68446
68447 2001-07-05  Jim Meyering  <meyering@lucent.com>
68448
68449         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68450         recommendation.
68451         (libfetish_a_SOURCES): Put all .h files here instead.
68452         Remove a thus-exposed (better checks in automake) duplicate and
68453         two unnecessary .h files.
68454
68455 2001-07-04  Jim Meyering  <meyering@lucent.com>
68456
68457         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68458         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68459         distcheck failure.
68460
68461 2001-07-02  Jim Meyering  <meyering@lucent.com>
68462
68463         The following changes were prompted by suggestions from Bruno Haible.
68464
68465         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68466         is now generated.
68467         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68468         definition of EXTRA_DIST.
68469         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68470         ensure that the generated file is created/updated whenever the list
68471         of $(unlocked_functions) is changed.
68472         (jm-glibc-io.m4): New rule.
68473         (unlocked-io.h): New rule -- currently unused.
68474
68475 2001-06-24  Jim Meyering  <meyering@lucent.com>
68476
68477         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68478         unmatched right bracket, rather than kludging it with an extra,
68479         falsely-matching quote in a comment.  Patch by Akim Demaille.
68480
68481 2001-06-11  Jim Meyering  <meyering@lucent.com>
68482
68483         * lib/regex.c: Update from GNU libc.
68484
68485 2001-05-27  Jim Meyering  <meyering@lucent.com>
68486
68487         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68488         Check for ut_type in struct utmp.
68489
68490 2001-05-27  Jim Meyering  <meyering@lucent.com>
68491
68492         * lib/readutmp.h (UT_TYPE): Define.
68493
68494 2001-05-24  Jim Meyering  <meyering@lucent.com>
68495
68496         * lib/argmatch.c: Include "quote.h".
68497         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68498         quote function.  Reported by Göran Uddeborg.
68499
68500 2001-05-22  Jim Meyering  <meyering@lucent.com>
68501
68502         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68503         now that we use the package-supplied version unconditionally.
68504         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68505
68506 2001-05-21  Jim Meyering  <meyering@lucent.com>
68507
68508         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68509         shell syntax errors.
68510
68511 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68512
68513         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68514
68515 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68516
68517         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68518         Don't bother to check library strftime, since
68519         we'll be using our own my_strftime function anyway.
68520         Define my_strftime instead of strftime.
68521
68522 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68523
68524         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68525         which is not yet declared.
68526
68527 2001-05-15  Jim Meyering  <meyering@lucent.com>
68528
68529         * m4/regex.m4: Use proper quoting so brackets appear in the test
68530         program.
68531         Reported by, and with help from, Bruno Haible.
68532
68533 2001-05-13  Jim Meyering  <meyering@lucent.com>
68534
68535         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68536         undefined.
68537
68538 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68539
68540         dirname code cleanup.  base_name now behaves more compatibly
68541         with POSIX basename when given file names that have trailing
68542         slashes, and similarly for dir_name.  Add new primitives
68543         base_len and dir_len.  Put the directory-name-related decls
68544         into dirname.h.
68545
68546         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68547         * lib/backupfile.c (base_name): Likewise.
68548         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68549         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68550         * lib/makepath.c (strip_trailing_slashes): Likewise.
68551         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68552         ISSLASH): Likewise.
68553         * lib/rename.c (strip_trailing_slashes): Likewise.
68554         * lib/same.c (base_name): Likewise.
68555         * lib/stripslash.c (ISSLASH): Likewise.
68556
68557         * lib/addext.c: Include <dirname.h> after size_t is defined.
68558         * lib/backupfile.c: Likewise.
68559
68560         * lib/addext.c (addext): Use base_len to trim redundant
68561         trailing slashes instead of doing it ourselves.
68562         But do not trim the last slash if it is not redundant.
68563
68564         * lib/backupfile.c (find_backup_file_name,
68565         max_backup_version): Use base_len instead of rolling it ourselves.
68566         Handle the case of "" and (on DOS) "C:" correctly.
68567
68568         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68569         needed. Include <string.h>, <dirname.h>.
68570         (base_name): Allow file names ending in slashes, other than names
68571         that are all slashes.  In this case, return the basename followed
68572         by the slashes.  This is more general, and can be used in places
68573         where the original base_name purposely had an assertion failure.
68574         (base_len): New function.
68575
68576         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68577         Do not include <assert.h>; no longer needed.
68578         Include xalloc.h.
68579         (memrchr): Remove decl.
68580         (dir_name_r): Remove.
68581         (dir_len): Renamed from dirlen.  All callers changed.
68582         Rewrite in terms of base_name, for simplicity and consistency.
68583         (dir_name): Never return NULL.  All callers changed.
68584         Do not include <stdlib.h> in test program; no longer needed.
68585         return 0; is fine for test program.
68586
68587         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68588         New macros.
68589         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68590
68591         * lib/path-concat.c (path_concat): Use base_len to compute
68592         base length, not strlen; this means we cannot rely on memcpy
68593         to null-terminate.
68594
68595         * lib/same.c (STREQ): Remove.
68596         (same_name): Handle the case where the basename ends in trailing '/'.
68597
68598         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68599         a slash was stripped.  Do not strip the last slash after a
68600         file system prefix.
68601
68602 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68603
68604         * lib/Makefile.am (libfetish_a_SOURCES):
68605         Add strftime.c, since we now compile it on all hosts.
68606
68607         * lib/strftime.c (my_strftime):
68608         Define to nstrftime if emacs, but only if my_strftime is not defined.
68609         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68610         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68611         Add one more extra argument: a nanoseconds value.
68612         All uses changed.
68613         (ns): New macro.
68614         (my_strftime function): Add %N format.
68615         (emacs_strftimeu): Renamed from emacs_strftime,
68616         with extra ut argument.
68617
68618 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68619
68620         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68621
68622 2001-04-21  Jim Meyering  <meyering@lucent.com>
68623
68624         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68625         doesn't interfere.
68626
68627 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68628
68629         * m4/ftruncate.m4: Check for chsize.
68630         Link with ftruncate.o unconditionally if ftruncate is missing.
68631         This was required when cross-compiling to i586-mingw32msvc.
68632
68633 2001-04-08  Jim Meyering  <meyering@lucent.com>
68634
68635         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68636         recomputed; that's necessary when the offset spans a DST transition.
68637         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68638
68639 2001-04-02  Jim Meyering  <meyering@lucent.com>
68640
68641         * lib/regex.h, regex.c: Update from GNU libc.
68642
68643 2001-03-24  Jim Meyering  <meyering@lucent.com>
68644
68645         * m4/jm-macros.m4: Require autoconf-2.49d.
68646
68647 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68648
68649         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68650
68651 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68652
68653         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68654
68655 2001-03-17  Jim Meyering  <meyering@lucent.com>
68656
68657         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68658         now that the version in autoconf is equivalent.
68659         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68660
68661         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68662         Suggestion from Akim Demaille.
68663
68664         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68665         (jm_PREREQ_TEMPNAME): New function.
68666
68667 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68668
68669         * lib/tempname.c (uint64_t): Define to uintmax_t if
68670         not defined, and if UINT64_MAX is not defined.
68671         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68672         Reported by John David Anglin.
68673
68674 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68675
68676         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68677         resolve alias if codeset is empty.
68678         * lib/config.charset (BeOS): Use wildcard syntax.
68679
68680 2001-03-13  Jim Meyering  <meyering@lucent.com>
68681
68682         * lib/path-concat.c (path_concat)
68683         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68684         concatenating e.g., `C:' and `foo'.
68685         From Bruno Haible.
68686
68687 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68688
68689         * lib/localcharset.c (locale_charset): Don't use
68690         setlocale(LC_CTYPE,NULL). Don't return NULL.
68691         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68692
68693 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68694
68695         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68696         support for DOS/DJGPP.
68697
68698 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68699
68700         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68701         lacks mkstemp.  Compile our own tempname.c if we compile our own
68702         mkstemp.c, as mkstemp relies on tempname.
68703
68704 2001-03-01  Jim Meyering  <meyering@lucent.com>
68705
68706         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68707         AH_VERBATIM really does output its argument verbatim.
68708
68709 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68710
68711         * lib/Makefile.am (libfetish_a_SOURCES):
68712         Add dup-safer.c, fopen-safer.c.
68713         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68714
68715         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68716         * lib/unistd-safer.h: New files.
68717
68718 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68719
68720         The mkstemp replacement is taken from glibc 2.2.2, with some
68721         portability fixes for use outside glibc, as follows:
68722
68723         * lib/tempname.c (struct_stat64): New macro.
68724         (direxists, __gen_tempname): Use it.
68725         This avoids a portability problem with Solaris 8.
68726
68727         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68728         (<stddef.h>, <stdint.h>, <string.h>):
68729         Include only if STDC_HEADERS || _LIBC.
68730         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68731         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68732         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68733         (__set_errno): Define this macro if <errno.h> doesn't.
68734         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68735         Define these macros if <stdio.h> doesn't.
68736         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68737         Define these macros if <sys/stat.h>
68738         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68739         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68740         __xstat64): Define if not _LIBC.
68741         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68742         (__gen_tempname): Invoke gettimeofday only if
68743         HAVE_GETTIMEOFDAY || _LIBC;
68744         otherwise, fall back on plain "time".
68745         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68746
68747         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68748
68749         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68750
68751 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68752
68753         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68754
68755 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68756
68757         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68758         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68759         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68760         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68761
68762 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68763
68764         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68765         Remove workaround macros for hosts that have mbrtowc but not
68766         mbstate_t, as we now insist on proper declarations for both
68767         before using mbrtowc.
68768
68769 2001-02-17  Jim Meyering  <meyering@lucent.com>
68770
68771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68772         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68773         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68774         UnixWare 7.1.1.
68775
68776         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68777         rather than AC_CACHE_VAL.
68778
68779 2001-02-17  Jim Meyering  <meyering@lucent.com>
68780
68781         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68782         around included file name.
68783
68784         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68785
68786         * lib/strftime.c: Update from GNU libc (the only changes were to
68787         comments).
68788
68789 2001-02-17  Jim Meyering  <meyering@lucent.com>
68790
68791         * lib/regex.c: Update from libc.
68792
68793 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68794
68795         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68796         clash.
68797
68798 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68799
68800         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68801         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68802         Reported by Mark Hounschell via Paul Eggert.
68803
68804 2001-02-07  Jim Meyering  <meyering@lucent.com>
68805
68806         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68807
68808 2001-02-05  Jim Meyering  <meyering@lucent.com>
68809
68810         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68811         it includes the patch required for `large file' support with at least
68812         HP-UX's 10.20 /bin/cc.
68813
68814 2001-02-03  Jim Meyering  <meyering@lucent.com>
68815
68816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68817         AS_IF, now that it works once again (mysteriously).
68818         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68819
68820 2001-01-30  Jim Meyering  <meyering@lucent.com>
68821
68822         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68823         * m4/chown.m4: Rename conftestchown to conftest.chown.
68824         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68825         s/conftestdir2/conftest.d2/.
68826         * m4/utimes.m4: s/conftestdata/conftest.data/
68827         Inspired by Pavel Roskin's change in autoconf.
68828
68829 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68830
68831         * lib/config.charset: Update for FreeBSD 4.2.
68832
68833 2001-01-27  Jim Meyering  <meyering@lucent.com>
68834
68835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68836         a use of AS_IF.
68837         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68838
68839 2001-01-26  Jim Meyering  <meyering@lucent.com>
68840
68841         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68842         quotearg.c includes it.
68843
68844 2001-01-26  Jim Meyering  <meyering@lucent.com>
68845
68846         * lib/quotearg.c: Include stddef.h.
68847         * lib/quote.c: Include stddef.h.
68848         Reported by Axel Kittenberger.
68849
68850         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68851         line in double quotes so that it evokes a better diagnostic.
68852         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68853         Reported by Axel Kittenberger.
68854
68855 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68856
68857         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68858         as if it was a `charset'.
68859
68860 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68861
68862         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68863         has const.
68864
68865 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68866
68867         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68868         to avoid a warning.  Add back 'const' to inptr.
68869
68870 2001-01-20  Jim Meyering  <meyering@lucent.com>
68871
68872         Be sure that headers are checked before used in code compiled
68873         for the type checks.
68874         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68875         In place of that, invoke jm_CHECK_ALL_TYPES.
68876         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68877         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68878         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68879         The check for ssize_t was mistakenly run before the test for unistd.h.
68880
68881         The configure-time check for stdbool.h was missing.
68882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68883         (jm_PREREQ_HASH): New function.
68884
68885 2001-01-17  Jim Meyering  <meyering@lucent.com>
68886
68887         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68888         for autoconf-2.49c.
68889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68890
68891 2001-01-16  Jim Meyering  <meyering@lucent.com>
68892
68893         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68894         From Bruno Haible.
68895
68896 2001-01-14  Jim Meyering  <meyering@lucent.com>
68897
68898         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68899         foo and bar.  Create conftestdir/ in the script, not in the C code.
68900         Remove directories in the script, not in the C code.
68901         Remove conftestdir{,2} before trying to create the directory.
68902         Make the entire configure script fail if the mkdir fails.
68903
68904 2001-01-14  Jim Meyering  <meyering@lucent.com>
68905
68906         * lib/rename.c: New file.  From Volker Borchert.
68907         Include stdlib.h, string.h or strings.h, and xalloc.h.
68908         Use strip_trailing_slashes rather than open-coding it.
68909
68910 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68911
68912         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68913
68914 2001-01-03  Jim Meyering  <meyering@lucent.com>
68915
68916         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68917         of local `inptr' to avoid warning with some system declarations of
68918         iconv.
68919
68920 2001-01-02  Volker Borchert  <bt@teknon.de>
68921
68922         * m4/rename.m4: New file.
68923         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68924
68925 2001-01-01  Jim Meyering  <meyering@lucent.com>
68926
68927         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68928         even on systems with utmpx.h.  It's necessary for the declaration of
68929         utmp's ut_user member.  Reported by Andreas Jaeger.
68930
68931         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68932         available. They are required for the declarations of getgrgid and
68933         getpwuid resp.
68934         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68935         Reported by Andreas Jaeger.
68936
68937 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
68938
68939         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
68940         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
68941         so `make install' also works in VPATH builds.
68942
68943 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
68944
68945         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
68946         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
68947         can be used in subdirectories.
68948
68949 2000-12-29  Paul Eggert  <eggert@twinsun.com>
68950
68951         * lib/modechange.c: Do not assume that mode_t uses the
68952         traditional octal encoding.  E.g. "chmod 1 FOO" should set
68953         the other-execute bit of FOO even if S_IXOTH != 1.
68954
68955         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
68956         WOTH, XOTH, ALLM): New macros.
68957         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
68958          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
68959         Use them.
68960         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
68961         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
68962         (mode_compile):
68963         No need to use uintmax_t; unsigned long is long enough.
68964         Don't bother to get suffix since we don't use it.
68965
68966 2000-12-26  Jim Meyering  <meyering@lucent.com>
68967
68968         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
68969         better with autoheader.
68970
68971 2000-12-24  Jim Meyering  <meyering@lucent.com>
68972
68973         * lib/hash.c (is_prime): Return explicit boolean values.
68974         (hash_get_first): Return NULL to appease Irix5.6's 89.
68975         Reported by Nelson Beebe.
68976
68977 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
68978
68979         * lib/localcharset.c (locale_charset): Add support for Win32.
68980
68981 2000-12-18  Paul Eggert  <eggert@twinsun.com>
68982
68983         * lib/physmem.h, lib/physmem.c: New files.
68984
68985         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
68986         (noinst_HEADERS): Add physmem.h.
68987
68988         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
68989         't' for compatibility with Solaris 8 sort.
68990
68991 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
68992
68993         * lib/config.charset: Add support for BeOS.
68994
68995 2000-12-17  Jim Meyering  <meyering@lucent.com>
68996
68997         * m4/dos.m4 (jm_AC_DOS): New file and macro.
68998         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
68999
69000 2000-12-16  Jim Meyering  <meyering@lucent.com>
69001
69002         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69003         N and M) would have treated it like `chown N:N FILE'.
69004
69005         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69006
69007 2000-12-16  Jim Meyering  <meyering@lucent.com>
69008
69009         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69010         SHELLS_FILE to a file name that's useful on djgpp systems.
69011         Include stdlib.h.
69012         (ADDITIONAL_DEFAULT_SHELLS): Define.
69013         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69014         Based mostly on a patch from Prashant TR.
69015
69016 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69017
69018         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69019         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69020         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69021
69022 2000-12-08  Andreas Schwab  <schwab@suse.de>
69023
69024         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69025         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69026
69027 2000-12-07  Jim Meyering  <meyering@lucent.com>
69028
69029         * lib/stripslash.c (ISSLASH): Define.
69030         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69031         `/'.
69032         From Prashant TR.
69033
69034         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69035         (dir_name_r): Declare this function as static.
69036         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69037         manifest itself on a name containing a mix of slashes and
69038         backslashes.
69039         Make this function work with names starting with a DOS-style
69040         drive letter and colon prefix.
69041         (dir_name): Append `.' if necessary.
69042         Based mostly on patches from Prashant TR and Eli Zaretskii.
69043
69044         * lib/dirname.h (dir_name_r): Remove prototype.
69045
69046 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69047
69048         * m4/off_t-format.m4: Remove this file.
69049         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69050
69051 2000-12-06  Jim Meyering  <meyering@lucent.com>
69052
69053         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69054         replacement strtoull, we may well need the replacement strtoul, too.
69055         Check for declarations of strtoul and strtoull.
69056         Check for strtol.  Mainly as a cue to cause automake to include
69057         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69058         Check for limits.h -- strtol.c needs it.
69059
69060 2000-12-05  Jim Meyering  <meyering@lucent.com>
69061
69062         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69063
69064 2000-12-04  Jim Meyering  <meyering@lucent.com>
69065
69066         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69067         Also include memory.h, stdlib.h, unistd.h if appropriate.
69068         Reported by Andreas Jaeger (conflicting declaration of malloc).
69069
69070 2000-12-02  Jim Meyering  <meyering@lucent.com>
69071
69072         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69073         * m4/jm-macros.m4 (jm_MACROS): require it.
69074
69075 2000-12-02  Jim Meyering  <meyering@lucent.com>
69076
69077         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69078
69079 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69080
69081         * lib/memrchr.c: Include <config.h> before any system include file.
69082
69083 2000-11-30  Jim Meyering  <meyering@lucent.com>
69084
69085         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69086
69087 2000-11-30  Jim Meyering  <meyering@lucent.com>
69088
69089         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69090
69091 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69092
69093         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69094
69095 2000-11-26  Jim Meyering  <meyering@lucent.com>
69096
69097         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69098
69099 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69100
69101         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69102         size of (size_t) -1; it's not portable.
69103
69104 2000-11-17  Jim Meyering  <meyering@lucent.com>
69105
69106         * lib/strstr.c: Update from GNU libc.
69107
69108 2000-11-17  Akim Demaille  <akim@epita.fr>
69109
69110         * lib/obstack.h: Formatting changes.
69111         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69112         prevent type checking.
69113         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69114         cast the value to (void *): assigning a `foo *' to a `void *'
69115         variable is valid.
69116         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69117
69118 2000-11-16  Jim Meyering  <meyering@lucent.com>
69119
69120         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69121
69122 2000-11-11  Jim Meyering  <meyering@lucent.com>
69123
69124         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69125
69126 2000-11-10  Jim Meyering  <meyering@lucent.com>
69127
69128         * lib/obstack.h: Update from GNU libc.
69129         * lib/obstack.c: Likewise.
69130
69131 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69132
69133         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69134
69135 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69136
69137         * lib/getusershell.c (setusershell): Use rewind rather than
69138         fseek/fseeko, to avoid configuration hassles with fseeko.
69139         Don't bother opening SHELLS_FILE if shellstream is NULL;
69140         it's not necessary.
69141
69142 2000-11-05  Jim Meyering  <meyering@lucent.com>
69143
69144         * lib/makepath.h (make_dir): Declare.
69145         * lib/makepath.c (make_dir): Remove `static' attribute.
69146         Tweak a comment.
69147
69148 2000-11-04  Jim Meyering  <meyering@lucent.com>
69149
69150         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69151
69152 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69153
69154         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69155         last one in a bucket, advance to the next bucket.
69156
69157 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69158
69159         * lib/fnmatch.c: Do not comment out all the code if we are using
69160         the GNU C library, because in some cases we are replacing buggy
69161         code in the GNU C library itself.
69162
69163 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69164
69165         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69166         (regex_compile): Catch bogus \(\1\).
69167
69168 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69169
69170         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69171         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69172         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69173
69174 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69175
69176         * lib/error.h, getline.h, modechange.h:
69177         Remove "2000" from Copyright line, as the file hasn't been
69178         changed this year other than in the copyright notice.
69179
69180         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69181         was changed this year.
69182
69183 2000-10-29  Jim Meyering  <meyering@lucent.com>
69184
69185         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69186         renaming.
69187         * m4/ls-mntd-fs.m4: Likewise
69188
69189 2000-10-29  Jim Meyering  <meyering@lucent.com>
69190
69191         * lib/xstat.in: Fix grammar in comment.
69192
69193 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69194
69195         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69196         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69197         doesn't define __restrict_arr.
69198
69199 2000-10-28  Jim Meyering  <meyering@lucent.com>
69200
69201         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69202         (jm_PREREQ_MEMCHR): New function.
69203
69204 2000-10-28  Jim Meyering  <meyering@lucent.com>
69205
69206         * lib/memchr.c: Update from libc.
69207         Adjust for portability:
69208         [HAVE_STDLIB_H]: Include stdlib.h.
69209         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69210         Undef __memchr, too.
69211         [!weak_alias]: Define __memchr to memchr.
69212
69213         * lib/regex.c: Update from libc.
69214         * lib/regex.h: Likewise.
69215         * lib/getopt1.c: Likewise.
69216         * lib/memcmp.c: Likewise.
69217
69218         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69219         Avoid using fseek, when possible -- it's broken by design.
69220         Patch by Ulrich Drepper.
69221
69222 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69223
69224         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69225         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69226         Giving in to popular pressure to shut up the compiler with casts.
69227
69228 2000-10-26  Jim Meyering  <meyering@lucent.com>
69229
69230         * lib/strftime.c: Update from libc.
69231
69232 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69233
69234         * regex.c: More `unsigned char' -> `re_char' changes.
69235         Also change several `int' into `re_wchar_t'.
69236         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69237         (PUSH_FAILURE_POINTER): Don't cast any more.
69238         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69239         We want GCC to complain, since this piece of code makes
69240         re_match non-reentrant, which *should* be fixed.
69241         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69242         (EXTEND_BUFFER): Use RETALLOC.
69243         (SET_LIST_BIT): Don't cast.
69244         (re_wchar_t): New type.
69245         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69246         that those two functions will always properly return.
69247         (IMMEDIATE_QUIT_CHECK): Cast to void.
69248         (analyse_first): Use recursion rather than an explicit stack.
69249         (re_compile_fastmap): Can't fail anymore.
69250         (re_search_2): Don't check re_compile_fastmap for failure.
69251         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69252         Now also sets the new value (passed in a new argument).
69253         (re_match_2_internal): Use it.
69254         Also, use a new var `reg' of type size_t when looping through regs
69255         rather than reuse the inappropriate `mcnt'.
69256
69257 2000-10-25  Jim Meyering  <meyering@lucent.com>
69258
69259         * lib/obstack.c: Update from libc.
69260
69261 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69262
69263         * regex.c (regex_compile): Change the way of handling a range from
69264         a char less than 256 to a char not less than 256.
69265
69266 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69267
69268         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69269         NT-Emacs only.
69270         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69271         so that re_search functions only quit when callers expect them to.
69272
69273 2000-10-23  Jim Meyering  <meyering@lucent.com>
69274
69275         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69276         wrong.  That set_locale call must not have any side effects.
69277         From Paul Eggert.
69278
69279 2000-10-22  Jim Meyering  <meyering@lucent.com>
69280
69281         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69282         [CYCLIC]: Remove now-unused definition.
69283
69284         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69285         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69286         Suggestion from Ulrich Drepper.
69287
69288 2000-10-21  Jim Meyering  <meyering@lucent.com>
69289
69290         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69291         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69293
69294 2000-10-21  Jim Meyering  <meyering@lucent.com>
69295
69296         * lib/dirname.c (memrchr): Declare if necessary.
69297         (dir_name): Remove the restriction that there be no
69298         trailing slashes.  Now, this code skips past them, effectively
69299         ignoring them.
69300         [TEST_DIRNAME] (main): New unit tests.
69301
69302         * lib/memrchr.c: New file from GNU libc.
69303         Undef __memrchr, too.
69304         [!weak_alias]: Define __memrchr to memrchr.
69305         Guard weak_alias use with `#ifdef weak_alias'.
69306
69307 2000-10-21  Jim Meyering  <meyering@lucent.com>
69308
69309         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69310         (dir_name): Use dir_name_r.
69311         * lib/dirname.h (dir_name_r): Declare it.
69312
69313 2000-10-17  Jim Meyering  <meyering@lucent.com>
69314
69315         * lib/quote.h (PARAMS): Define and use.
69316         Reported by Akim Demaille.
69317
69318         * lib/getopt.c: Update from libc.
69319
69320 2000-10-16  Jim Meyering  <meyering@lucent.com>
69321
69322         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69323         setlocale.
69324         From Jan Fedak.
69325
69326 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69327
69328         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69329
69330 2000-09-25  Jim Meyering  <meyering@lucent.com>
69331
69332         * lib/md5.h (rol): Define (from GnuPG).
69333
69334         * lib/sha.c: Give credit (GnuPG) where due.
69335         (M): Use rol rather than open-coding it.
69336         Add a FIXME comment.
69337
69338 2000-09-21  Jim Meyering  <meyering@lucent.com>
69339
69340         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69341         Reported by Michael Stone.
69342
69343 2000-09-20  Jim Meyering  <meyering@lucent.com>
69344
69345         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69346         (noinst_HEADERS): Add sha.h.
69347         Based on code from Scott G. Miller and from GnuPG.
69348
69349 2000-09-18  Jim Meyering  <meyering@lucent.com>
69350
69351         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69352         LIBS. Otherwise, everyone ends up linking with -lelf for some
69353         configurations.
69354         Reported by Mike Stone.
69355
69356 2000-09-15  Jim Meyering  <meyering@lucent.com>
69357
69358         * lib/regex.c: Update from libc.
69359
69360 2000-09-10  Jim Meyering  <meyering@lucent.com>
69361
69362         * lib/getopt.c (_getopt_internal): Update from glibc.
69363
69364 2000-09-09  Jim Meyering  <meyering@lucent.com>
69365
69366         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69367         think it should be used as a general replacement for isascii.
69368         * lib/fnmatch.c: Likewise.
69369         * lib/mbswidth.c: Likewise
69370         * lib/regex.c: Likewise.
69371
69372         Don't use atoi.
69373         * lib/userspec.c: Include sys/param.h and limits.h.
69374         Include xstrtol.h.
69375         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69376         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69377         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69378         UID, GID.  Check range.
69379
69380 2000-09-06  Jim Meyering  <meyering@lucent.com>
69381
69382         * lib/getopt.c (_getopt_internal): Update from glibc.
69383
69384 2000-08-30  Jim Meyering  <meyering@lucent.com>
69385
69386         * lib/strftime.c: Merge in changes from GNU libc.
69387
69388 2000-08-26  Jim Meyering  <meyering@lucent.com>
69389
69390         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69391         * m4/fpending.m4: New file.
69392
69393 2000-08-26  Jim Meyering  <meyering@lucent.com>
69394
69395         * lib/closeout.c: Include "__fpending.h".
69396         (close_stdout_status): Return right away if there's nothing to flush.
69397
69398         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69399         * lib/__fpending.c: New file.
69400         * lib/__fpending.h: New file.
69401
69402 2000-08-20  Jim Meyering  <meyering@lucent.com>
69403
69404         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69405         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69406         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69407
69408 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69409
69410         Improve fileutils installation on systems where running
69411         programs (like install) can't be unlinked.
69412         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69413         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69414
69415 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69416
69417         Standardize on "memory exhausted" instead of "Memory exhausted"
69418         or "virtual memory exhausted".
69419         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69420         "virtual memory exhausted".
69421         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69422         our own message.
69423         * lib/userspec.c (parse_user_spec): Likewise.
69424         * lib/bumpalloc.h: comment fix
69425         * lib/same.c, userspec.c: Include xalloc.h.
69426
69427         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69428         not char *const and pointing to a constant array.
69429         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69430         (xrealloc): Comment fix.
69431
69432         * lib/userspec.c (parse_user_spec):
69433         Don't translate a message until just before returning,
69434         to avoid unnecessary translation.
69435
69436 2000-08-07  Jim Meyering  <meyering@lucent.com>
69437
69438         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69439         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69440         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69441         getgroups.c, gethostname.c, getopt.h, group-member.c,
69442         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69443         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69444         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69445         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69446         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69447         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69448         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69449         yesno.c: Back out Copyright date changes for each file with no change
69450         this year.  This eases coordination with other programs using the same
69451         source code modules.  From Paul Eggert.
69452
69453 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69454
69455         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69456         not char, for compatibility with glibc 2.1.3 strftime.c.
69457
69458 2000-08-03  Greg McGary  <greg@mcgary.org>
69459
69460         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69461         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69462         (EXTEND_BUFFER): Use them.
69463
69464 2000-08-01  Jim Meyering  <meyering@lucent.com>
69465
69466         * lib/dirname.c (ISSLASH): Define.
69467         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69468         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69469         both `\' and `/' may be use as path separators.
69470         Based on a patch from Prashant TR.
69471
69472 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69473
69474         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69475         slot vector a constant, since it might get modified.
69476
69477 2000-07-31  Jim Meyering  <meyering@lucent.com>
69478
69479         * lib/xmalloc.c: Use `virtual memory exhausted', not
69480         `Memory exhausted'.
69481         * lib/obstack.c (print_and_abort): Likewise.
69482
69483 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69484
69485         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69486         buffer, so that the caller can always quote one small
69487         component of a "memory exhausted" message in slot 0.
69488         From a suggestion by Jim Meyering.
69489
69490 2000-07-30  Jim Meyering  <meyering@lucent.com>
69491
69492         * lib/makepath.c (make_path): Quote the other instance, too.
69493
69494         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69495         (STATIC_BUF_SIZE): Define.
69496         (quotearg_n_options): Use only statically allocated storage when
69497         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69498         than STATIC_BUF_SIZE.
69499
69500 2000-07-29  Jim Meyering  <meyering@lucent.com>
69501
69502         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69503         * lib/dirname.c (dir_name): Likewise.
69504
69505         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69506         `/'.
69507
69508         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69509         (dir_name): Assert that there are no trailing slashes.
69510
69511 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69512
69513         * lib/mbswidth.h (mbswidth): Add a flags argument.
69514         (mbswidth): New declaration.
69515         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69516         * lib/mbswidth.c (mbswidth): Add a flags argument.
69517         (mbsnwidth): New function.
69518
69519 2000-07-24  Jim Meyering  <meyering@lucent.com>
69520
69521         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69522
69523 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69524
69525         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69526
69527 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69528
69529         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69530         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69531         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69532         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69533         invoke multibyte primitives.
69534
69535 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69536
69537         * lib/quotearg.c:
69538         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69539         so that mbstate_t is always defined.
69540
69541         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69542         be 1 in at least one GCC installation, and this configuration
69543         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69544         performance on hosts that have mbrtowc but have only unibyte
69545         locales, but I assume these hosts are rare.
69546
69547 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69548
69549         * lib/mbswidth.c (_XOPEN_SOURCE):
69550         Don't define; this causes problems on Solaris 7.
69551         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69552
69553 2000-07-23  Jim Meyering  <meyering@lucent.com>
69554
69555         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69556         too: getgrgid, getpwuid, getuid.
69557
69558 2000-07-23  Jim Meyering  <meyering@lucent.com>
69559
69560         * lib/basename.c (base_name): Add an assertion.
69561
69562 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69563
69564         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69565         shadow its mbsinit function.
69566
69567 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69568
69569         * lib/mbswidth.h: New file.
69570         * lib/mbswidth.c: New file.
69571         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69572         (noinst_HEADERS): Add mbswidth.h.
69573
69574 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69575
69576         * lib/config.charset: Add support for FreeBSD. Improve support for
69577         HP-UX and IRIX 6.
69578
69579 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69580
69581         * m4/mbswidth.m4: New file.
69582         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69583
69584 2000-07-15  Jim Meyering  <meyering@lucent.com>
69585
69586         * lib/makepath.c: Include quote.h.
69587         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69588         corresponding argument in a `quote (...)' call.
69589         Give better diagnostics.
69590
69591         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69592         (noinst_HEADERS): Add quote.h.
69593
69594         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69595         from tar's src/misc.c.
69596         * lib/quote.h: New file.  Prototypes for same.
69597
69598 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69599
69600         From a suggestion by Bruno Haible.
69601         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69602         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69603         to decide whether to define the BeOS workaround macro;
69604         this adjusts to the change to AC_MBSTATE_T.
69605
69606 2000-07-14  Jim Meyering  <meyering@lucent.com>
69607
69608         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69609         jm_AC_TYPE_UINTMAX_T.
69610
69611 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69612
69613         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69614
69615         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69616         quotearg_buffer_restyled): Add support for
69617         clocale_quoting_style.  Undo previous change to
69618         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69619         and "{RIGHT QUOTATION MARK}" msgids.
69620
69621 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69622
69623         From a suggestion by Bruno Haible.
69624         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69625         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69626         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69627         and mbstate_t, to a single-part test that simply defines mbstate_t.
69628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69629         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69630
69631 2000-07-10  Jim Meyering  <meyering@lucent.com>
69632
69633         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69634
69635         * m4/gnu-source.m4: Output to confdefs.h directly.
69636         Suggestion from Akim Demaille.
69637
69638 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69639
69640         The old behavior of quoting `like this' doesn't look good with
69641         newer, ISO-style fonts.  See:
69642         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69643
69644         Instead, quote "like this" by default.  Let the translator
69645         tailor the locale-specific quoting behavior by providing
69646         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69647
69648         * lib/quotearg.c (N_): New macro.
69649         (gettext_default): New function.
69650         (quotearg_buffer_restyled): Use
69651         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69652         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69653
69654 2000-07-09  Jim Meyering  <meyering@lucent.com>
69655
69656         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69657         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69658
69659         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69661
69662 2000-07-09  Jim Meyering  <meyering@lucent.com>
69663
69664         * lib/Most files: Update copyright dates to include 2000.
69665
69666 2000-07-08  Jim Meyering  <meyering@lucent.com>
69667
69668         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69669         if not defined.
69670         (xgethostname): Remove now-unnecessary #ifdef.
69671         Move declaration of `err' into loop where it's used.
69672
69673 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69674         and Bruno Haible  <haible@clisp.cons.org>
69675
69676         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69677         only if the test for an object-type mbstate_t fails.  This
69678         prevents us from mistakenly reporting that mbstate_t is a
69679         system object type after we "#define mbstate_t int" to work
69680         around its lack.
69681
69682 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69683         and Bruno Haible  <haible@clisp.cons.org>
69684
69685         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69686
69687 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69688
69689         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69690         to strerror_r.
69691         Include <ctype.h> for use of isalpha.
69692
69693 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69694
69695         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69696         by allocating a larger buffer. Test the gethostname return value for
69697         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69698         returns an error and ENAMETOOLONG isn't defined.
69699
69700 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69701
69702         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69703         dimension.
69704
69705 2000-07-04  Jim Meyering  <meyering@lucent.com>
69706
69707         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69708         of the deprecated AC_CHECKING.
69709
69710 2000-07-04  Jim Meyering  <meyering@lucent.com>
69711
69712         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69713         Reported by Bruno Haible.
69714
69715 2000-07-04  Jim Meyering  <meyering@lucent.com>
69716
69717         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69718         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69719         lacks mbrtowc.
69720
69721 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69722
69723         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69724         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69725
69726 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69727         and Bruno Haible  <haible@clisp.cons.org>
69728
69729         * lib/quotearg.c (mbrtowc):
69730         Assign to *pwc, and return 1 only if result is nonzero.
69731         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69732
69733 2000-07-03  Jim Meyering  <meyering@lucent.com>
69734
69735         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69736
69737 2000-07-03  Jim Meyering  <meyering@lucent.com>
69738
69739         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69740         This is necessary to get a definition of e.g., UTMP_FILE on
69741         HP-UX 10.20.
69742         From Bob Proulx.
69743
69744 2000-07-02  Jim Meyering  <meyering@lucent.com>
69745
69746         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69747
69748         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69749         AC_LIBOBJ(function_name).
69750         * m4/chown.m4: Likewise.
69751         * m4/fnmatch.m4: Likewise.
69752         * m4/ftruncate.m4: Likewise.
69753         * m4/getgroups.m4: Likewise.
69754         * m4/getline.m4: Likewise.
69755         * m4/group-member.m4: Likewise.
69756         * m4/jm-macros.m4: Likewise.
69757         * m4/lstat.m4: Likewise.
69758         * m4/malloc.m4: Likewise.
69759         * m4/memcmp.m4: Likewise.
69760         * m4/nanosleep.m4: Likewise.
69761         * m4/putenv.m4: Likewise.
69762         * m4/realloc.m4: Likewise.
69763         * m4/regex.m4: Likewise.
69764         * m4/stat.m4: Likewise.
69765         * m4/strftime.m4: Likewise.
69766
69767 2000-07-02  Jim Meyering  <meyering@lucent.com>
69768
69769         * lib/quotearg.c (mbstate_t): Don't define here.
69770
69771 2000-07-02  Jim Meyering  <meyering@lucent.com>
69772
69773         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69774
69775 2000-07-01  Jim Meyering  <meyering@lucent.com>
69776
69777         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69778
69779 2000-07-01  Jim Meyering  <meyering@lucent.com>
69780
69781         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69782         problem.
69783
69784 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69785
69786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69787         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69788
69789 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69790
69791         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69792         per change in ../m4/ls-mntd-fs.m4.
69793         (read_filesystem_list): Ignore symbolic links.
69794
69795 2000-06-29  Jim Meyering  <meyering@lucent.com>
69796
69797         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69798         for declaration of strcmp.
69799
69800         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69801
69802         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69803         Avoid warning by casting result to `char *' to remove `const'.
69804
69805 2000-06-28  Jim Meyering  <meyering@lucent.com>
69806
69807         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69808         included by quotearg.c, for which we perform this test.  From
69809         Bruno Haible.
69810
69811 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69812
69813         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69814         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69815         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69816
69817 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69818
69819         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69820
69821 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69822
69823         savedir now sets errno on failure and invokes xmalloc to get memory.
69824         Fix a couple of other minor bugs while we're at it.
69825
69826         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69827         (NAMLEN): Remove macro.
69828         (malloc, realloc): Remove decls.
69829         (stpcpy): Likewise.
69830         ("xalloc.h"): Include.
69831         (NAME_SIZE_DEFAULT): New macro.
69832         (savedir): Use xmalloc / xrealloc to allocate memory.
69833         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69834         Skip "" directory entries.
69835         Use strlen to calculate directory entry length, since the old method
69836         is rarely used these days and isn't worth supporting.
69837         Don't use a pointer after freeing it.
69838         Check for integer overflow when calculating allocation size.
69839         Use memcpy to copy entries, instead of stpcpy.
69840         Set errno properly when returning NULL.
69841         Check for readdir error.
69842
69843 2000-06-26  Jim Meyering  <meyering@lucent.com>
69844
69845         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69846
69847 2000-06-25  Jim Meyering  <meyering@lucent.com>
69848
69849         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69850         Linux header bug when _XOPEN_SOURCE is defined to 500.
69851
69852 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69853
69854         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69855         deficiency.
69856
69857 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69858
69859         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69860         Include xalloc.h.
69861         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69862
69863 2000-06-24  Jim Meyering  <meyering@lucent.com>
69864
69865         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69866         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69867         for which strerror does return char*, but which lacks a conveniently
69868         accessible declaration of the function.  If the compile-test says
69869         strerror_r doesn't work, then resort to a `run'-test that works on
69870         BeOS and segfaults on DEC Unix.
69871
69872 2000-06-24  Jim Meyering  <meyering@lucent.com>
69873
69874         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69875
69876 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69877
69878         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69879         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69880
69881 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69882
69883         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69884         (mbrtowc, mbstate_t): Define substitutes if
69885         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69886         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69887         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69888
69889 2000-06-23  Jim Meyering  <meyering@lucent.com>
69890
69891         * m4/afs.m4: Add missing AC_MSG_RESULT.
69892         Reported by Bruno Haible.
69893
69894         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69895         Suggestion from Bruno Haible.
69896
69897 2000-06-23  Jim Meyering  <meyering@lucent.com>
69898
69899         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69900
69901 2000-06-21  Jim Meyering  <meyering@lucent.com>
69902
69903         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69904
69905 2000-06-21  Jim Meyering  <meyering@lucent.com>
69906
69907         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69908         (noinst_HEADERS): Add getstr.h.
69909
69910         * lib/getline.c (getstr): Move into a separate file.
69911         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69912         the following changes: new parameter, delim2; both delim[12]
69913         parameters have type `int', not `char'.  The latter would lose
69914         with 8-bit delimiters.
69915         * lib/getstr.h: New file.
69916
69917 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69918
69919         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69920         than 1024, return a memory chunk of least possible size, instead
69921         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69922         Use free/xmalloc instead of xrealloc to avoid copying for very long
69923         paths.
69924
69925 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69926
69927         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69928         the empty string.
69929
69930 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69931
69932         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69933         address, not strdup.  Include <stdlib.h> and don't declare free().
69934
69935 2000-06-19  Jim Meyering  <meyering@lucent.com>
69936
69937         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
69938
69939 2000-06-18  Jim Meyering  <meyering@lucent.com>
69940
69941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
69942
69943         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
69944         `checking whether...' message to be consistent with that of the
69945         lstat test.
69946
69947 2000-06-18  Jim Meyering  <meyering@lucent.com>
69948
69949         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
69950         Besides, these days every porting target provides a mkdir function.
69951
69952         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
69953         needed. (this snippet comes from src/system.h).
69954
69955 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
69956
69957         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
69958
69959 2000-06-15  Paul Eggert  <eggert@twinsun.com>
69960
69961         * lib/human.c (adjust_value): New function.
69962         (human_readable_inexact): Apply rounding style even when
69963         printing approximate values.
69964
69965 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69966
69967         * lib/human.c (human_readable_inexact): Allow an input block
69968         size that is not a multiple of the output block size, and vice versa.
69969         Reported by Piergiorgio Sartor.
69970
69971 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69972
69973         * lib/getdate.y (get_date): Apply relative times after time
69974         zone indicator, not before.  Reported by Todd A. Jacobs.
69975
69976 2000-06-13  Jim Meyering  <meyering@lucent.com>
69977
69978         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
69979
69980         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
69981
69982 2000-06-12  Paul Eggert  <eggert@twinsun.com>
69983
69984         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
69985
69986 2000-06-12  Jim Meyering  <meyering@lucent.com>
69987
69988         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
69989         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
69990         optional argument.
69991         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
69992         the optional argument, `lib'.
69993
69994 2000-06-08  Jim Meyering  <meyering@lucent.com>
69995
69996         * m4/largefile.m4: Remove file (now that it's part of autoconf).
69997
69998 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69999
70000         Rewrite largefile configuration so that we don't need to run
70001         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70002         AC_CANONICAL_HOST in configure.in -- jmm]
70003
70004         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70005         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70006         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70007         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70008         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70009         All uses changed.
70010         Instead of inspecting the output of getconf, try to compile the
70011         test program without and with the macro definition.
70012         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70013         for getconf.  Instead, check for the needed flags by compiling
70014         test programs.
70015
70016 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70017
70018         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70019
70020 2000-06-04  Jim Meyering  <meyering@lucent.com>
70021
70022         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70023         SunOS 4.1.4 for which gid_t is an unsigned type.
70024
70025 2000-06-03  Jim Meyering  <meyering@lucent.com>
70026
70027         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70028         now that autoconf requires that.
70029
70030         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70031         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70032         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70033
70034 2000-06-03  Jim Meyering  <meyering@lucent.com>
70035
70036         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70037
70038 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70039
70040         * m4/glibc21.m4: New file.
70041         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70042
70043 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70044
70045         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70046         newer, don't install charset.alias.
70047         * lib/config.charset: Change the Linux/glibc rules so they become empty
70048         on glibc-2.1 or newer.
70049
70050 2000-06-02  Jim Meyering  <meyering@lucent.com>
70051
70052         * lib/mountlist.c: Back out last change.  Instead, do this...
70053         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70054         me_dummy member using the same `ignore'-testing code.
70055         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70056         fs_type strings.
70057         From Mark D. Roth.
70058
70059 2000-05-29  Jim Meyering  <meyering@lucent.com>
70060
70061         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70062         mounts with the `ignore' attribute.  Based on a patch from
70063         Mark D. Roth.
70064
70065 2000-05-28  Jim Meyering  <meyering@lucent.com>
70066
70067         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70068         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70069         * m4/stat.m4: Likewise.
70070         * m4/lstat.m4: Likewise.
70071         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70072
70073         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70074         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70075
70076 2000-05-26  Jim Meyering  <meyering@lucent.com>
70077
70078         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70079
70080 2000-05-24  Jim Meyering  <meyering@lucent.com>
70081
70082         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70083         autoconf requires that.
70084         * m4/lib-check.m4: Likewise.
70085         * m4/jm-macros.m4: Likewise.
70086         * m4/strftime.m4: Likewise.
70087
70088         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70089         AC_CHECK_DECLS, now that autoconf requires that.
70090
70091 2000-05-22  Jim Meyering  <meyering@lucent.com>
70092
70093         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70094         * m4/lstat.m4: Likewise.
70095
70096 2000-05-22  Jim Meyering  <meyering@lucent.com>
70097
70098         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70099
70100 2000-05-20  Jim Meyering  <meyering@lucent.com>
70101
70102         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70103         (jm_PREREQ): Use it.
70104
70105 2000-05-18  Jim Meyering  <meyering@lucent.com>
70106
70107         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70108         back, too, since it may have been modified by allocate_entry.
70109         (hash_delete): Rewrite to use neither the assignment operator
70110         nor the comma operator in an if-expression.
70111
70112 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70113
70114         * lib/closeout.c:
70115         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70116         Remove; no longer needed.
70117         "quotearg.h": Add include.
70118         (file_name): Do not bother to explicitly initialize to NULL; it's less
70119         efficient on some hosts.
70120         (close_stdout_status): Remove test as to whether stdout was already
70121         closed; it breaks for the case "echo x | sort >&-".
70122         Quote file name colons.
70123         Do not assume that _("write error") lacks format strings.
70124
70125 2000-05-15  Jim Meyering  <meyering@lucent.com>
70126
70127         * lib/version-etc.c (version_etc_copyright): Update the copyright
70128         string used in all --version output.
70129
70130 2000-05-14  Jim Meyering  <meyering@lucent.com>
70131
70132         * lib/closeout.c (close_stdout_set_file_name): New function.
70133         (close_stdout_status): Use new file-scoped global.
70134         Return right away if fstat says the stdout file descriptor is invalid.
70135         * lib/closeout.h (close_stdout_set_file_name): Declare.
70136
70137 2000-05-10  Jim Meyering  <meyering@lucent.com>
70138
70139         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70140         (close_stdout_set_status): New function.
70141         * lib/closeout.h (close_stdout_set_status): Declare.
70142
70143 2000-05-09  Jim Meyering  <meyering@lucent.com>
70144
70145         * m4/gettext.m4: Rename this...
70146         * m4/libintl.m4: ...to this.
70147
70148 2000-05-08  Jim Meyering  <meyering@lucent.com>
70149
70150         * lib/long-options.c: Don't include closeout.h.
70151         (parse_long_options): Don't call close_stdout for --version.
70152
70153 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70154
70155         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70156         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70157         2.1.3 bug.  This avoids a clash when files like regex.c define
70158         _GNU_SOURCE.
70159
70160 2000-05-06  Jim Meyering  <meyering@lucent.com>
70161
70162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70163         (AC_REPLACE_FUNCS): Add strnlen.
70164
70165         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70166         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70167
70168         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70169         AC_SEARCH_LIBS call for nanosleep.
70170         (LIB_NANOSLEEP): Set and AC_SUBST.
70171
70172 2000-05-06  Jim Meyering  <meyering@lucent.com>
70173
70174         * lib/strnlen.c: Undefine __strnlen and strnlen.
70175         [!weak_alias]: Define __strnlen to strnlen.
70176
70177         * lib/atexit.c: New file, from libiberty.
70178
70179 2000-05-06  Jim Meyering  <meyering@lucent.com>
70180
70181         * lib/closeout.c (close_stdout_status): Also check for errors on the
70182         stderr stream.
70183
70184 2000-05-05  Jim Meyering  <meyering@lucent.com>
70185
70186         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70187         AC_SEARCH_LIBS call for clock_gettime.
70188         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70189
70190         * m4/search-libs.m4: Update from autoconf.
70191
70192         su doesn't work on Solaris 2.6.
70193         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70194         <shadow.h>.  Reported by Dragos Harabor.
70195
70196 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70197
70198         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70199         memcpy instead of xmalloc, xrealloc, path_concat.
70200         (locale_charset): Treat empty environment variables as absent.
70201         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70202
70203 2000-05-04  Jim Meyering  <meyering@lucent.com>
70204
70205         * lib/getopt.c: Update from glibc.
70206         * lib/obstack.c: Likewise.
70207         * lib/obstack.h: Likewise.
70208         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70209         file
70210
70211         * lib/regex.h: Likewise.
70212         * lib/strndup.c: Likewise.
70213         * lib/strnlen.c: New file, from glibc.
70214
70215 2000-05-03  Jim Meyering  <meyering@lucent.com>
70216
70217         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70218
70219 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70220
70221         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70222         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70223         compile-time test, rather than inspecting host and OS, to
70224         decide whether to define _LARGEFILE_SOURCE.
70225
70226 2000-05-01  Jim Meyering  <meyering@lucent.com>
70227
70228         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70229
70230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70231         Based on a patch from Bruno Haible.
70232
70233 2000-05-01  Jim Meyering  <meyering@lucent.com>
70234
70235         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70236
70237 2000-04-29  Jim Meyering  <meyering@lucent.com>
70238
70239         * lib/path-concat.c: Declare strdup only if it's not defined.
70240         * lib/canon-host.c: Likewise.
70241
70242 2000-04-28  Jim Meyering  <meyering@lucent.com>
70243
70244         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70245         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70246         is included first, then limits.h is included by locale.h by libintl.h.
70247         From John David Anglin.
70248
70249 2000-04-25  Jim Meyering  <meyering@lucent.com>
70250
70251         * lib/makepath.c (S_IRWXUGO): Define.
70252         (make_path): Always perform explicit chmod if MODE specifies any
70253         of the `special' permission bits.  Prompted by a bug report against
70254         install from Mate Wierdl and Joost van Baal.
70255
70256 2000-04-18  Jim Meyering  <meyering@lucent.com>
70257
70258         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70259         (jm_PREREQ): Use it.
70260
70261 2000-04-18  Jim Meyering  <meyering@lucent.com>
70262
70263         * lib/README: New file.
70264
70265         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70266         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70267
70268 2000-04-17  Jim Meyering  <meyering@lucent.com>
70269
70270         Get it right :-)
70271         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70272         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70273         Suggestion from Akim Demaille.
70274
70275 2000-04-17  Jim Meyering  <meyering@lucent.com>
70276
70277         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70278         the definition of it to rpl_strftime also defined-away the system's
70279         declaration.
70280
70281 2000-04-15  Jim Meyering  <meyering@lucent.com>
70282
70283         Use `C' to denote so-called `contiguous' files, the same way
70284         that tar does.
70285         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70286         (ftypelet): Use S_ISCTG.
70287         From Michael Deutschmann.
70288
70289 2000-04-14  Jim Meyering  <meyering@lucent.com>
70290
70291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70292         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70293         clobbered.
70294
70295 2000-04-14  Jim Meyering  <meyering@lucent.com>
70296
70297         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70298
70299 2000-04-13  Jim Meyering  <meyering@lucent.com>
70300
70301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70302         AH_VERBATIM to insert required #ifndef into config.h.in.
70303         Suggestion from Akim Demaille.
70304
70305 2000-04-12  Jim Meyering  <meyering@lucent.com>
70306
70307         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70308         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70309         Christian Krackowizer.
70310
70311         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70312         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70313         (AC_SYS_LARGEFILE): Require.
70314         (AM_C_PROTOTYPES): Require.
70315
70316 2000-04-08  Jim Meyering  <meyering@lucent.com>
70317
70318         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70319         names don't conflict.  Reported by Eli Zaretskii.
70320
70321 2000-04-07  Jim Meyering  <meyering@lucent.com>
70322
70323         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70324         sys/types.h, to work around system header problems on AIX 3.2.5.
70325         From Bruno Haible.
70326
70327 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70328
70329         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70330         bug.  Deal with the different error behavior of Irix iconv.
70331
70332 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70333
70334         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70335         IRIX if the installer said otherwise.
70336
70337 2000-04-05  Jim Meyering  <meyering@lucent.com>
70338
70339         Portability tweaks required for ultrix4.3.
70340         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70341         (jm_CHECK_DECLS): Add getutent to the list of functions.
70342         (_jm_DECL_HEADERS): Add utmpx.h.
70343         From John David Anglin.
70344
70345         * m4/strftime.m4: Back out the 2000-04-02 change.
70346         Instead of that change, simply undefine putenv in the test program.
70347
70348 2000-04-05  Jim Meyering  <meyering@lucent.com>
70349
70350         Portability tweaks required for ultrix4.3.
70351         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70352         getutent.
70353         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70354         * lib/canon-host.c: Declare strdup.
70355         * lib/path-concat.c: Likewise.
70356         From John David Anglin.
70357
70358 2000-04-04  Jim Meyering  <meyering@lucent.com>
70359
70360         Be more DOS 8.3-friendly.
70361         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70362         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70363         * lib/Makefile.am: Reflect renaming.
70364         Reported by Eli Zaretskii.
70365
70366         Use a temporary file name that won't clash with `charset.alias'
70367         in the DOS 8.3 name space.
70368         * lib/Makefile.am (charset_tmp): Define.
70369         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70370         (uninstall-local): Likewise.
70371         Reported by Eli Zaretskii.
70372
70373 2000-04-03  Jim Meyering  <meyering@lucent.com>
70374
70375         * m4/gettext.m4: Fix typo in comment.
70376
70377         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70378         textutils/configure.in).  Suggestion from Paul Eggert.
70379         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70380
70381 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70382
70383         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70384         variable in the shell rather than using putenv, which isn't
70385         portable.  This avoids the configure-time inter-test dependency
70386         on the potentially-renamed putenv function.
70387
70388 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70389
70390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70391         before checking struct stat.st_blksize, so that
70392         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70393
70394 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70395
70396         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70397         since strftime.c uses HAVE_STRFTIME to decide whether to use
70398         the underlying strftime.
70399
70400 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70401
70402         * lib/time/strftime.c (my_strftime): Make sure we call the system
70403         strftime, not ourselves, when invoking the underlying strftime.
70404
70405 2000-03-24  Jim Meyering  <meyering@lucent.com>
70406
70407         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70408         (charset_alias): Define.
70409         (install-exec-local): Factor out common code.
70410         (uninstall-local): Split lines longer than 80.
70411         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70412         (SUFFIXES): Define.
70413         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70414         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70415
70416 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70417
70418         * lib/config.charset: Output a line containing "Packages using this
70419         file".
70420         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70421         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70422         ref-del.sed): New rules.
70423
70424 2000-03-17  Jim Meyering  <meyering@lucent.com>
70425
70426         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70427         Otherwise, include <strings.h>
70428
70429 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70430
70431         * lib/unicodeio.c (utf8_wctomb): New function.
70432         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70433         format instead of in UCS-4 with platform dependent endianness.
70434
70435 2000-03-10  Jim Meyering  <meyering@lucent.com>
70436
70437         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70438         From Marco Franzen.
70439
70440 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70441
70442         * lib/savedir.c (savedir): Work even if directory size is
70443         negative; this can happen with some screwy NFS configurations.
70444
70445 2000-03-06  Jim Meyering  <meyering@lucent.com>
70446
70447         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70448         if it's NULL (because we ran out of memory).  From Bruno Haible.
70449
70450 2000-03-05  Jim Meyering  <meyering@lucent.com>
70451
70452         * lib/localcharset.c ("path-concat.h"): Include.
70453         (get_charset_aliases): Use path_concat instead of ANSI string
70454         concatenation.
70455
70456         * lib/unicodeio.h (PARAMS): Define.
70457         Use it to guard prototype.
70458
70459 2000-03-04  Jim Meyering  <meyering@lucent.com>
70460
70461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70462         for lib/localcharset.c.
70463
70464 2000-03-04  Jim Meyering  <meyering@lucent.com>
70465
70466         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70467         installing into it.
70468         (uninstall-local): Uncomment this rule so `make distcheck' works
70469         once again.
70470
70471         * lib/unicodeio.c (<errno.h>): Include it.
70472         (errno): Declare if not defined.
70473
70474         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70475
70476         * lib/config.charset: New version, incorporating remarks from a linux
70477         i18n mailing list.  From Bruno Haible.
70478
70479 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70480
70481         * m4/codeset.m4: New file.
70482         * m4/iconv.m4: New file.
70483         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70484
70485 2000-03-03  Jim Meyering  <meyering@lucent.com>
70486
70487         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70488
70489 2000-03-02  Jim Meyering  <meyering@lucent.com>
70490
70491         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70492         the messages come out on separate lines.
70493
70494         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70495         rather than jm_CHECK_DECLARATIONS.
70496         * m4/decl.m4: Remove now-unused file.
70497
70498         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70499         geteuid.
70500
70501 2000-03-02  Jim Meyering  <meyering@lucent.com>
70502
70503         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70504
70505 2000-03-01  Jim Meyering  <meyering@lucent.com>
70506
70507         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70508         * lib/unicodeio.c: Likewise.
70509
70510 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70511
70512         * lib/config.charset: New file.
70513         * lib/localcharset.c: New file.
70514         * lib/unicodeio.h, lib/unicodeio.c: New files.
70515         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70516         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70517         (noinst_HEADERS): Add unicodeio.h.
70518         (all-local, install-exec-local, charset.alias): New targets.
70519
70520 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70521
70522         * lib/quotearg.c (ALERT_CHAR): New macro.
70523         (quotearg_buffer_restyled): Use it.
70524
70525 2000-02-27  Jim Meyering  <meyering@lucent.com>
70526
70527         * m4/check-decl.m4: Add getenv to the list.
70528
70529 2000-02-27  Jim Meyering  <meyering@lucent.com>
70530
70531         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70532         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70533
70534         * lib/backupfile.c: Guard inclusion of stdlib.h with
70535         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70536         Declare malloc if needed.
70537
70538         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70539         `#ifndef HAVE_DECL..'
70540         now that autoconf always defines the HAVE_DECL_ symbols.
70541         * lib/human.c: Likewise.
70542         * lib/same.c: Likewise.
70543         * lib/strtoumax.c: Likewise.
70544
70545         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70546         declaration check was not run.
70547         * lib/hash.c: Likewise.
70548         * lib/human.c: Likewise.
70549         * lib/same.c: Likewise.
70550         * lib/strtoumax.c: Likewise.
70551
70552         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70553         `.', then first look up the entire `.'-containing string as a login
70554         name.
70555
70556 2000-02-23  Jim Meyering  <meyering@lucent.com>
70557
70558         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70559         in place of my hack.
70560
70561 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70562
70563         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70564         (textint): New typedef.
70565         (parser_control): Member year changed from int to textint.
70566         All uses changed.
70567         (YYSTYPE): Removed; replaced by %union with int and textint members.
70568         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70569         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70570         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70571         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70572         (date, number, to_year): Use width of number in digits, not its value,
70573         to determine whether it's a 2-digit year, or a 2-digit time.
70574         (yylex): Store number of digits of numeric tokens.
70575         Reported by John Kendall.
70576
70577         (parser_control): Changed from struct parser_control to typedef (for
70578         consistency).  All uses changed.
70579
70580         (tID): Removed; not used.
70581         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70582
70583 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70584
70585         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70586         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70587
70588 2000-02-12  Jim Meyering  <meyering@lucent.com>
70589
70590         * lib/userspec.c (ISDIGIT): Define it.
70591         (isdigit): Remove definition.
70592         (is_number): Use ISDIGIT, not isdigit.
70593         <libintl.h>: Include.
70594         (_ and N_): Define.
70595         (parse_user_spec): Mark translatable strings.
70596
70597 2000-02-10  Jim Meyering  <meyering@lucent.com>
70598
70599         With these changes, nanosleep.[ch] are finally enough like the other
70600         lib/* replacement files to compile on a few more losing systems.
70601
70602         * lib/nanosleep.h: Don't include config.h.
70603         Remove prototype from declaration of nanosleep.
70604         (PARAMS): Remove now-unneeded definition.
70605         * lib/nanosleep.c: #undef nanosleep.
70606         (rpl_nanosleep): Rename from nanosleep.
70607
70608 2000-02-10  Jim Meyering  <meyering@lucent.com>
70609
70610         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70611         gnu_nanosleep to rpl_nanosleep.
70612
70613 2000-02-09  Jim Meyering  <meyering@lucent.com>
70614
70615         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70616         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70617
70618 2000-02-08  Akim Demaille  <akim@epita.fr>
70619
70620         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70621         `[' and `]' and remove uses of `changequote'.
70622         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70623         (AC_SYS_LARGEFILE): Likewise.
70624         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70625         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70626         of changequote.
70627         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70628         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70629         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70630         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70631
70632 2000-02-05  Jim Meyering  <meyering@lucent.com>
70633
70634         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70635         Remove explicit use of AC_HEADER_TIME.  It is required by
70636         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70637         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70638         in autoconf whereby the expansion of the latter ended up preceding
70639         the expansion of its prerequisite, AC_HEADER_TIME.
70640         Reported by Volker Borchert.
70641
70642 2000-02-03  Jim Meyering  <meyering@lucent.com>
70643
70644         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70645
70646 2000-02-03  Jim Meyering  <meyering@lucent.com>
70647
70648         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70649         rather than with `#if HAVE_UTMPNAME'.
70650
70651 2000-02-02  Jim Meyering  <meyering@lucent.com>
70652
70653         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70654         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70655         Reported by Eli Zaretskii.
70656
70657 2000-02-01  Jim Meyering  <meyering@lucent.com>
70658
70659         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70660
70661 2000-01-31  Jim Meyering  <meyering@lucent.com>
70662
70663         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70664         functions.  Add the time.h and sys/time.h headers along with the
70665         AC_REQUIRE'ment of AC_HEADER_TIME.
70666
70667 2000-01-31  Jim Meyering  <meyering@lucent.com>
70668
70669         * lib/nanosleep.h (nanosleep): Guard declaration with
70670         `#if ! HAVE_DECL_NANOSLEEP'.
70671         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70672         the declaration in that vendor's sys/timers.h.
70673         Reported by Christian Krackowizer.
70674
70675         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70676         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70677         (ISPRINT): Likewise.
70678         Reported by Tom Tromey.
70679
70680 2000-01-30  Jim Meyering  <meyering@lucent.com>
70681
70682         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70683
70684         * m4/prereq.m4 (utmp_includes): Define.
70685         Check for ut_user and ut_name members in both struct utmpx
70686         and struct utmp.
70687
70688 2000-01-30  Jim Meyering  <meyering@lucent.com>
70689
70690         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70691         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70692         header files where only utmpx.ut_user is declared.
70693
70694         * lib/readutmp.h (UT_USER): Define.
70695
70696 2000-01-29  Jim Meyering  <meyering@lucent.com>
70697
70698         * m4/lib-check.m4: New file containing library-related checks from
70699         fileutils and sh-utils (textutils had none).
70700
70701 2000-01-28  Jim Meyering  <meyering@lucent.com>
70702
70703         * m4/perl.m4: Change format of warning message to look more like that
70704         from the missing script.  Suggestion from François Pinard.
70705
70706 2000-01-25  Jim Meyering  <meyering@lucent.com>
70707
70708         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70709         well as time.h in the compile check.
70710         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70711         Fix typo in cross-compiling case: s/yes/no/.
70712
70713 2000-01-23  Jim Meyering  <meyering@lucent.com>
70714
70715         * m4/jm-macros.m4: Move df-related tests here from
70716         fileutils/configure.in
70717
70718         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70719         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70720
70721         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70722         s/space/ac_fsusage_space/.
70723         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70724
70725         * m4/ftruncate.m4: New file (derived from part of
70726         fileutils/configure.in).
70727         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70728         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70729
70730         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70731         AC_SUBST these here, rather than just in sh-util/configure.in, so
70732         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70733         all the same.
70734         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70735         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70736         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70737         (AC_SUBST(POW_LIBM)): Likewise.
70738         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70739
70740 2000-01-23  Jim Meyering  <meyering@lucent.com>
70741
70742         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70743         obstack.c.
70744
70745 2000-01-22  Jim Meyering  <meyering@lucent.com>
70746
70747         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70748
70749         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70750
70751         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70752         configure.in
70753         (AC_CHECK_HEADERS): Likewise for sh-utils.
70754         (AC_CHECK_HEADERS): Likewise for textutils.
70755         Merge the three lists of headers.
70756
70757         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70758         from fileutils' configure.in.
70759
70760         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70761         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70762         check-decl.m4.
70763
70764         * m4/check-decl.m4: Use #if rather than #ifdef.
70765         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70766         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70767         (_jm_DECL_HEADERS): Define new function.
70768         (jm_CHECK_DECLARATIONS): Require it.
70769
70770 2000-01-22  Jim Meyering  <meyering@lucent.com>
70771
70772         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70773         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70774         Required for some AIX systems.  Reported by Christian Krackowizer.
70775         [TESTING] (main): New function.
70776
70777         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70778         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70779         letters.
70780
70781         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70782         iswprint.
70783
70784         * lib/strverscmp.c (ISDIGIT): Define.
70785         (strverscmp): Use ISDIGIT, not isdigit.
70786
70787 2000-01-19  Jim Meyering  <meyering@lucent.com>
70788
70789         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70790         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70791         defines `struct timespec' in <sys/time.h>
70792
70793         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70794         Thanks to Akim for explaining.
70795
70796 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70797
70798         * lib/nanosleep.c (nanosleep):
70799         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70800         POSIX.1 doesn't require SA_INTERRUPT and some systems
70801         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70802         it's been part of POSIX.1 since day 1 (in 1988).
70803
70804 2000-01-17  Jim Meyering  <meyering@lucent.com>
70805
70806         * lib/interlock: Remove unused file.  Reported by François Pinard.
70807
70808 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70809
70810         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70811         alert, backslash, formfeed, and vertical tab unnecessarily in
70812         shell quoting style.
70813
70814 2000-01-16  Jim Meyering  <meyering@lucent.com>
70815
70816         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70817         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70818         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70819         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70820
70821 2000-01-16  Jim Meyering  <meyering@lucent.com>
70822
70823         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70824         because the latter didn't work.
70825
70826 2000-01-15  Jim Meyering  <meyering@lucent.com>
70827
70828         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70829         (AC_REPLACE_FUNCS): Add memcpy and memset.
70830         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70831         Add strpbrk.
70832         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70833
70834 2000-01-12  Jim Meyering  <meyering@lucent.com>
70835
70836         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70837         (jm_PREREQ): Use it.
70838         (jm_PREREQ_READUTMP): New macro.
70839         (jm_PREREQ): Use it.
70840
70841 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70842
70843         Quote multibyte characters correctly.
70844         * m4/c-bs-a.m4: New file.
70845         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70846         (jm_PREREQ): Use it.
70847
70848 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70849
70850         * m4/uintmax_t.m4: Port to autoconf 2.13.
70851
70852 2000-01-08  Jim Meyering  <meyering@ascend.com>
70853
70854         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70855         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70856
70857 2000-01-04  Jim Meyering  <meyering@ascend.com>
70858
70859         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70860         jm_STRUCT_DIRENT_D_TYPE.
70861         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70862         jm_STRUCT_DIRENT_D_INO.
70863         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70864         jm_STRUCT_UTIMBUF.
70865         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70866         renamings.
70867         * m4/utime.m4: Likewise.
70868
70869         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70870         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70871
70872 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70873
70874         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70875         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70876
70877 2000-01-02  Jim Meyering  <meyering@ascend.com>
70878
70879         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70880         remember if this is necessary.
70881
70882 1999-12-26  Jim Meyering  <meyering@ascend.com>
70883
70884         * m4/jm-macros.m4: Use it here.
70885         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70886
70887 1999-12-23  Jim Meyering  <meyering@ascend.com>
70888
70889         * m4/jm-macros.m4: Check for clock_gettime (moved from
70890         fileutils/configure.in)
70891         Check for gettimeofday.
70892
70893 1999-12-20  Jim Meyering  <meyering@ascend.com>
70894
70895         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70896         autoconf-2.14a-1999-12-20.
70897
70898 1999-12-19  Jim Meyering  <meyering@ascend.com>
70899
70900         * m4/lstat-slash.m4: New file.
70901         * m4/jm-macros.m4: Use the new macro:
70902         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70903
70904 1999-12-07  Jim Meyering  <meyering@ascend.com>
70905
70906         * m4/perl.m4: Require that File::Compare be available, too.
70907         Too many systems seem to lack it.
70908
70909         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70910         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70911
70912 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70913
70914         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70915         problem with the QNX 4.25 shell, which doesn't propagate exit
70916         status of failed commands inside shell assignments.
70917
70918 1999-11-17  Jim Meyering  <meyering@ascend.com>
70919
70920         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70921
70922 1999-11-07  Jim Meyering  <meyering@ascend.com>
70923
70924         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70925
70926 1999-11-06  Jim Meyering  <meyering@ascend.com>
70927
70928         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70929         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70930
70931 1999-11-05  Jim Meyering  <meyering@ascend.com>
70932
70933         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70934         configure.in of textutils, fileutils, and sh-utils into this one
70935         (shared between those packages) file.
70936         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
70937         AC_STRUCT_ST_BLKSIZE.
70938
70939 1999-11-03  Jim Meyering  <meyering@ascend.com>
70940
70941         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
70942         of AC_CHECK_TYPE checks includes unistd.h.
70943         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
70944         Suggestion from Akim Demaille.
70945
70946 1999-10-30  Jim Meyering  <meyering@ascend.com>
70947
70948         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
70949         m4-quoted string.
70950         * m4/ls-mntd-fs.m4: Likewise.
70951         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
70952         * m4/jm-winsz1.m4: Likewise.
70953
70954         * m4/const.m4: Remove file, since the fix made it into the experimental
70955         version of autoconf.
70956         * m4/mktime.m4: Likewise.
70957
70958         * m4/check-type.m4: Remove file, now that the latest version of
70959         AC_CHECK_TYPE takes a third arg to specify additional #includes.
70960
70961         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
70962         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
70963         AC_CHECK_TYPE.
70964
70965 1999-10-04  Jim Meyering  <meyering@ascend.com>
70966
70967         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
70968
70969 1999-09-22  Paul Eggert  <eggert@twinsun.com>
70970
70971         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
70972         2.95.1 bug with HP-UX 10.20.
70973
70974 1999-09-17  Jim Meyering  <meyering@ascend.com>
70975
70976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
70977         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
70978         due to missing strdup (against sh-utils-2.0).
70979
70980 1999-08-29  Jim Meyering  <meyering@ascend.com>
70981
70982         * m4/jm-macros.m4: Require jm_BISON.
70983         * m4/bison.m4: New file.
70984
70985 1999-08-17  Paul Eggert  <eggert@twinsun.com>
70986
70987         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
70988         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
70989
70990 1999-08-05  Jim Meyering  <meyering@ascend.com>
70991
70992         * m4/getline.m4: Rename test file from conftestdata to conftest.data
70993         to avoid conflicts with `conftest' on 8+3 filesystems.
70994         Suggestion from Eli Zaretskii.
70995
70996 1999-08-04  Jim Meyering  <meyering@ascend.com>
70997
70998         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
70999         fileutils and sh-utils (textutils's getline test was inadequate).
71000         (AM_FUNC_GETLINE): Run this test.
71001         (AC_CHECK_FUNCS): Check for getdelim.
71002         Reported by Bob Proulx.
71003
71004 1999-08-02  Jim Meyering  <meyering@ascend.com>
71005
71006         * m4/jm-macros.m4: Add a comment.
71007
71008 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71009
71010         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71011         <inttypes.h> defines strtoumax as a macro (and not as a
71012         function).
71013
71014 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71015
71016         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71017         that we can shift, multiply and divide unsigned long long
71018         values; Ultrix cc can't do it.
71019
71020 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71021
71022         * m4/mktime.m4: New file, which is a preview of what should appear
71023         in the next public autoconf release.
71024
71025 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71026
71027         * m4/lfs.m4: Remove this file.
71028         * m4/largefile.m4: New file.  It contains the old contents of
71029         lfs.m4, except that all names with prefix AC_LFS have been
71030         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71031         compatible with future autoconf versions.  Also, some minor m4
71032         quoting problems have been fixed.
71033
71034 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71035
71036         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71037         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71038         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71039         and simplify the shell code.
71040
71041 1999-08-01  Jim Meyering  <meyering@ascend.com>
71042
71043         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71044         m4.
71045
71046 1999-07-20  Jim Meyering  <meyering@ascend.com>
71047
71048         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71049
71050 1999-07-15  Jim Meyering  <meyering@ascend.com>
71051
71052         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71053
71054 1999-05-22  Jim Meyering  <meyering@ascend.com>
71055
71056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71057
71058 1999-05-20  Jim Meyering  <meyering@ascend.com>
71059
71060         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71061         Add a colon after each `then' in case $4 is empty.
71062
71063 1999-05-16  Jim Meyering  <meyering@ascend.com>
71064
71065         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71066
71067 1999-05-10  Jim Meyering  <meyering@ascend.com>
71068
71069         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71070
71071         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71072         AC_FUNC_MKTIME.
71073
71074 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71075
71076         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71077
71078 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71079
71080         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71081         not CPPFLAGS, so that linking works correctly in IRIX.
71082
71083 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71084
71085         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71086
71087 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71088
71089         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71090         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71091         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71092         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71093         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71094
71095         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71096
71097 1999-04-20  Jim Meyering  <meyering@ascend.com>
71098
71099         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71100         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71101         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71102
71103 1999-04-18  Jim Meyering  <meyering@ascend.com>
71104
71105         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71106         * m4/jm-macros.m4: Use it.
71107
71108 1999-04-06  Jim Meyering  <meyering@ascend.com>
71109
71110         * m4/strftime.m4: Remove test for %f.
71111
71112 1999-03-29  Jim Meyering  <meyering@ascend.com>
71113
71114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71115         superset of the AC_TYPE_* checks in the textutils, fileutils,
71116         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71117         AC_TYPE_PID_T.
71118
71119 1999-03-28  Jim Meyering  <meyering@ascend.com>
71120
71121         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71122         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71123         replaced e.g., in the *.sh files of the sh-utils.
71124
71125 1999-03-20  Jim Meyering  <meyering@ascend.com>
71126
71127         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71128         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71129         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71130
71131 1999-03-19  Jim Meyering  <meyering@ascend.com>
71132
71133         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71134
71135 1999-03-12  Jim Meyering  <meyering@ascend.com>
71136
71137         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71138
71139 1999-03-07  Jim Meyering  <meyering@ascend.com>
71140
71141         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71142         declared.
71143
71144 1999-02-17  Jim Meyering  <meyering@ascend.com>
71145
71146         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71147         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71148
71149 1999-02-07  Jim Meyering  <meyering@ascend.com>
71150
71151         * m4/group-member.m4: New file -- extracted from sh-utils'
71152         configure.in.
71153
71154         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71155         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71156
71157 1999-02-06  Jim Meyering  <meyering@ascend.com>
71158
71159         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71160         * m4/fnmatch.m4: Likewise.
71161         * m4/getgroups.m4: Likewise.
71162         * m4/lstat.m4: Likewise.
71163         * m4/malloc.m4: Likewise.
71164         * m4/putenv.m4: Likewise.
71165         * m4/realloc.m4: Likewise.
71166         * m4/regex.m4: Likewise.
71167         * m4/stat.m4: Likewise.
71168         * m4/strftime.m4: Likewise.
71169         Suggestion from Alain Magloire.
71170
71171         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71172         * m4/fnmatch.m4: Likewise.
71173         * m4/getgroups.m4: Likewise.
71174         * m4/getline.m4: Likewise.
71175         * m4/lstat.m4: Likewise.
71176         * m4/malloc.m4: Likewise.
71177         * m4/memcmp.m4: Likewise.
71178         * m4/putenv.m4: Likewise.
71179         * m4/realloc.m4: Likewise.
71180         * m4/regex.m4: Likewise.
71181         * m4/stat.m4: Likewise.
71182         * m4/strftime.m4: Likewise.
71183         Suggestion from Alain Magloire.
71184
71185         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71186         an argument.
71187
71188         * m4/regex.m4: Add a run-time Test for proper operation of
71189         re_compile_pattern.
71190
71191 1999-01-31  Jim Meyering  <meyering@ascend.com>
71192
71193         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71194
71195 1999-01-30  Jim Meyering  <meyering@ascend.com>
71196
71197         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71198
71199         * m4/jm-mktime.m4: Make this a wrapper around the official
71200         AM_FUNC_MKTIME rather than my private copy, now that the official one
71201         is up to date.
71202         * m4/mktime.m4: Remove file.
71203
71204         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71205         * m4/uptime.m4: Likewise.
71206         * m4/uintmax_t.m4: Likewise.
71207
71208 1999-01-28  Jim Meyering  <meyering@ascend.com>
71209
71210         * m4/jm-macros.m4: Use jm_AFS.
71211         * m4/afs.m4: New file (from fileutils' configure.in).
71212
71213         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71214         * m4/chown.m4: Likewise.
71215         * m4/d-ino.m4: Likewise.
71216         * m4/d-type.m4: Likewise.
71217         * m4/fnmatch.m4: Likewise.
71218         * m4/getgroups.m4: Likewise.
71219         * m4/gettext.m4: Likewise.
71220         * m4/jm-mktime.m4: Likewise.
71221         * m4/jm-winsz2.m4: Likewise.
71222         * m4/lcmessage.m4: Likewise.
71223         * m4/ls-mntd-fs.m4: Likewise.
71224         * m4/malloc.m4: Likewise.
71225         * m4/memcmp.m4: Likewise.
71226         * m4/putenv.m4: Likewise.
71227         * m4/realloc.m4: Likewise.
71228         * m4/st_mtim.m4: Likewise.
71229         * m4/strftime.m4: Likewise.
71230
71231 1999-01-16  Jim Meyering  <meyering@ascend.com>
71232
71233         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71234         (ARGMATCH_DIE_DECL): Define.
71235
71236 1999-01-12  Jim Meyering  <meyering@ascend.com>
71237
71238         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71239         Reported by Lars Hecking.
71240
71241 1999-01-10  Jim Meyering  <meyering@ascend.com>
71242
71243         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71244         gross kludge.
71245         * m4/inttypes_h.m4: Likewise.
71246         * m4/lstat.m4: Likewise.
71247         * m4/malloc.m4: Likewise.
71248         * m4/readdir.m4: Likewise.
71249         * m4/realloc.m4: Likewise.
71250         * m4/st_dm_mode.m4: Likewise.
71251         * m4/stat.m4: Likewise.
71252         * m4/utimbuf.m4: Likewise.
71253         * m4/utimes.m4: Likewise.
71254
71255         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71256         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71257         comments in config.h.in are meaningful.
71258
71259         * m4/jm-macros.m4: Require autoconf-2.13 here.
71260
71261         * m4/regex.m4: By default, don't use the included regex.c on systems
71262         with glibc 2.  Suggestion from Uli Drepper.
71263
71264 1999-01-02  Jim Meyering  <meyering@ascend.com>
71265
71266         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71267
71268 1998-12-18  Jim Meyering  <meyering@ascend.com>
71269
71270         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71271         Based on a suggestion from Lars Hecking.
71272
71273 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71274
71275         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71276
71277 1998-11-16  Jim Meyering  <meyering@ascend.com>
71278
71279         * m4/lfs.m4: Double-quote the `uname...` expression.
71280
71281 1998-11-14  Jim Meyering  <meyering@ascend.com>
71282
71283         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71284         * m4/stat.m4: Likewise.
71285
71286 1998-11-03  Jim Meyering  <meyering@ascend.com>
71287
71288         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71289         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71290
71291 1998-10-18  Jim Meyering  <meyering@ascend.com>
71292
71293         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71294
71295 1998-10-17  Jim Meyering  <meyering@ascend.com>
71296
71297         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71298         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71299         calls for those previously hard-coded headers.  Instead, take a new
71300         parameter.
71301         (jm_CHECK_DECLARATIONS): Reflect interface change.
71302         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71303         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71304
71305         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71306
71307 1998-10-14  Jim Meyering  <meyering@ascend.com>
71308
71309         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71310         instead of "TZ=America/Vancouver".  From Paul Eggert.
71311
71312 1998-10-11  Jim Meyering  <meyering@ascend.com>
71313
71314         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71315         This adds a test for a recently added compatibility fix for mktime.c.
71316         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71317
71318 1998-09-27  Jim Meyering  <meyering@ascend.com>
71319
71320         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71321
71322         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71323         ../configure.in, including a change from Gordon Matzigkeit to allow
71324         cross-compiling for the Hurd.
71325
71326         * m4/glibc.m4: New file/macro to test for the GNU C Library
71327         versions 1 and 2.  From Gordon Matzigkeit.
71328         Indent.
71329
71330 1998-09-21  Jim Meyering  <meyering@ascend.com>
71331
71332         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71333
71334 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71335
71336         Port nanosecond-resolution times to UnixWare 2.1.2 and
71337         pedantic Solaris 2.6.
71338
71339         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71340         AC_STRUCT_ST_MTIM.
71341         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71342         Generate name of ns member, instead of just 1 or undef.
71343         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71344
71345 1998-08-15  Jim Meyering  <meyering@ascend.com>
71346
71347         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71348         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71349         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71350         instead of jm_TYPE_SSIZE_T.
71351
71352 1998-08-12  Jim Meyering  <meyering@ascend.com>
71353
71354         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71355
71356 1998-08-02  Jim Meyering  <meyering@ascend.com>
71357
71358         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71359         in acconfig.h manually.
71360
71361 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71362
71363         * m4/st_mtim.m4: New file.
71364
71365 1998-07-28  Jim Meyering  <meyering@ascend.com>
71366
71367         * m4/utimes.m4: Undef stat.
71368
71369 1998-07-25  Jim Meyering  <meyering@ascend.com>
71370
71371         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71372         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71373
71374 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71375
71376         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71377         uid and gid actually remain unchanged.
71378
71379 1998-07-07  Jim Meyering  <meyering@ascend.com>
71380
71381         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71382
71383 1998-07-04  Jim Meyering  <meyering@ascend.com>
71384
71385         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71386         to prove that this macro can be used in packages without regex.c.
71387
71388 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71389
71390         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71391         is to be used.
71392
71393 1998-07-03  Jim Meyering  <meyering@ascend.com>
71394
71395         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71396
71397         * m4/gettext.m4: New file -- from gettext-0.10.35.
71398         * m4/lcmessage.m4: Likewise.
71399         * m4/progtest.m4: Likewise.
71400
71401         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71402         * m4/jm-macros.m4: Require the new macro.
71403
71404 1998-06-29  Jim Meyering  <meyering@ascend.com>
71405
71406         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71407         for the definition of NGROUPS (used in a system header included
71408         by sys/mount.h).
71409
71410 1998-06-28  Jim Meyering  <meyering@ascend.com>
71411
71412         * m4/ls-mntd-fs.m4: New file.
71413         * m4/fstypename.m4: New file.
71414
71415         * m4/jm-macros.m4: Require the new macro.
71416         * m4/jm-glibc-io.m4: New file.
71417
71418 1998-05-19  Jim Meyering  <meyering@ascend.com>
71419
71420         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71421         * m4/lchown.m4: New file.
71422
71423         * m4/Makefile.am.in: New file.
71424         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71425
71426 1998-05-14  Jim Meyering  <meyering@ascend.com>
71427
71428         * m4/Makefile.am (EXTRA_DIST): Add them.
71429         * m4/jm-macros.m4: New file.
71430         * m4/utimbuf.m4: New file.
71431
71432 1998-05-12  Jim Meyering  <meyering@ascend.com>
71433
71434         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71435
71436 1998-05-11  Jim Meyering  <meyering@ascend.com>
71437
71438         * m4/isc-posix.m4: New file.
71439
71440 1998-05-10  Jim Meyering  <meyering@ascend.com>
71441
71442         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71443
71444 1998-05-09  Jim Meyering  <meyering@ascend.com>
71445
71446         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71447         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71448         with automake.
71449
71450         * m4/ssize_t.m4: New file.
71451         * m4/mktime.m4: Remove file -- the new automake has this now.
71452
71453 1998-04-26  Jim Meyering  <meyering@ascend.com>
71454
71455         * m4/assert.m4: New file.
71456         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71457
71458 1998-04-05  Jim Meyering  <meyering@ascend.com>
71459
71460         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71461         (jm_PREREQ): Use it here.
71462
71463 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71464
71465         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71466         in acconfig.h.
71467
71468 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71469
71470         * m4/prereq.m4: New file.
71471         * m4/error.m4: New file.
71472         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71473
71474 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71475
71476         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71477         cache-check for the same variable -- that defeated the purpose of
71478         the test; the test program was never run.  This was a problem only
71479         on systems with losing getline functions -- HP-UX 10.20 is one.
71480         Reported by Bjorn Helgaas.
71481
71482 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71483
71484         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71485
71486 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71487
71488         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71489
71490         * m4/const.m4: New file.  Use an initializer in this declaration
71491         typedef int charset[2]; const charset x;
71492         Reported by Bob Glickstein.
71493
71494 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71495
71496         * m4/chown.m4: Fix reversed types on -1 args to chown.
71497         From Kaveh Ghazi.
71498
71499 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71500
71501         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71502         Add lseek and memchr.
71503
71504         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71505         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71506         have a 20-character limit on names.
71507
71508 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71509
71510         * m4/inttypes_h.m4: New file.
71511         * m4/uintmax_t.m4: New file.
71512         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71513
71514
71515         -----
71516
71517         Local Variables:
71518         coding: utf-8
71519         End:
71520
71521         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71522
71523         Copying and distribution of this file, with or without
71524         modification, are permitted provided the copyright notice
71525         and this notice are preserved.